Live data from Hacker News

OpenBSD 6.0 released

undeadly.org

21–30 of 139 posts

Re: OpenBSD 6.0 released

#21
post #2

This seems like a big deal: One thing to note: this will be the last version of OpenBSD to be pressed on CD. The project will now focus on internet-only distribution, giving much more flexibility in the release schedule.

It does? I was under the impression the only reason anyone still did that was to give something physical to donators.

Don't forget the awesome stickers!

Re: OpenBSD 6.0 released

#22
post #6

Earlier quoted context omitted.

It does? I was under the impression the only reason anyone still did that was to give something physical to donators.

Perhaps I'm the only person using computers in 2016 who only installs OpenBSD via CD :-)

I only do to enjoy the pleasure of old ways. Interacting with CDs and CD drives reminds me of when it was cutting edge. Tray mechanics, the speed intake of spinning motors. Even the latency and seek sounds. And somehow, the (almost since it's on DVD RW) immutability. In some ways, the sheer speed of SSD is ... boring when you're not in a hurry.

ps: a bit like vynil lovers who take their player out for similar reasons.

Re: OpenBSD 6.0 released

#23

Earlier quoted context omitted.

If I understand correctly, this also means that the main excuse for it not being supported on DigitalOcean is now alleviated. :- )

Doesn't DigitalOcean use KVM?

I stand corrected, seems it's KVM.

Seems some other people were confused. I've been told in other places that it's Xen. OpenBSD has had working virtio-blk and virtio-net drivers since about 5.3/5.4/5.5 IIRC. hmm...

Re: OpenBSD 6.0 released

#24
One big step in this release is the mandating of W^X by default.

> "Unfortunately there is important third-party code, such as just-in-time compilers, that still uses mmap(2) to make memory both writable and executable, so for the time being, we have to arrange ourselves with it."

If a program wants to JIT on OpenBSD, how should it do it in a secure, OpenBSD-approved way?

Re: OpenBSD 6.0 released

#25
post #2

This seems like a big deal: One thing to note: this will be the last version of OpenBSD to be pressed on CD. The project will now focus on internet-only distribution, giving much more flexibility in the release schedule.

It does? I was under the impression the only reason anyone still did that was to give something physical to donators.

CDs are read-only, whereas a USB stick has (generally insecure) firmware that can be modified. So in a setting where the user is concerned about persistent USB malware, it can make sense to use them.

It's a niche concern of course, but I suspect it's a little bit more common in the OpenBSD community than in many others. Of course it shouldn't be too hard for those users to build their own install boot CDs with the tarballs for installation, just skip the big package sets and install them later if the whole won't fit on the disc.

Re: OpenBSD 6.0 released

#26

One big step in this release is the mandating of W^X by default. > "Unfortunately there is important third-party code, such as just-in-time compilers, that still uses mmap(2) to make memory both writable and executable, so for the time being, we have to arrange ourselves with it." If a program wants to JIT on OpenBSD, how should it do it in a secure, OpenBSD-approved way?

Use mprotect(2) on the region of memory that the program wants to make executable. http://man.openbsd.org/OpenBSD-current/man2/mprotect.2

This is good portable programming practise anyway...

Re: OpenBSD 6.0 released

#27
post #7

Yay! I get to spend 5 hours figuring out how to update the syntax for my pf.conf rules.

Gets PF for free, complains.

Gmail is free, would you be happy if they updated it and your email didn't work anymore? I love OpenBSD but they constantly change the rule syntax for pf, which invalidates huge swaths of forum posts and other online documentation, even published books. The man page doesn't contain every conceivable explanation and example for every scenario either, nor could it, so that is also not a solution. Whether or not the price is free, the use is not, as it requires hours of valuable time to implement.

Re: OpenBSD 6.0 released

#28
post #26

One big step in this release is the mandating of W^X by default. > "Unfortunately there is important third-party code, such as just-in-time compilers, that still uses mmap(2) to make memory both writable and executable, so for the time being, we have to arrange ourselves with it." If a program wants to JIT on OpenBSD, how should it do it in a secure, OpenBSD-approved way?

Use mprotect(2) on the region of memory that the program wants to make executable. http://man.openbsd.org/OpenBSD-current/man2/mprotect.2 This is good portable programming practise anyway...

So they should create a writeable mmapping, write the code into it, then change it to W^X using mprotect?

How does this stop an attacker doing the same via ROP?

ADDED: The approach that comes to my mind is that they could have two processes. One process has the sourcecode, and pages where it can write code. The other process can execute the code. The code updates performance counters which the JITing process can read, so the JITter has feedback to know what to optimise.

However, this sounds a large architectural change, prevents programs JITting programs they generate on the fly, and causes the JIT to lack behind somewhat.

On the Mill CPU (disclaimer: I'm on the Mill team) the CPU can change processes ("turfs" in Mill terms) using a "portal" function call. This alleviates somewhat the performance concerns, as the JITted program can call into the JITer process synchronously and cheaply.

Re: OpenBSD 6.0 released

#29
post #27

Earlier quoted context omitted.

Gets PF for free, complains.

Gmail is free, would you be happy if they updated it and your email didn't work anymore? I love OpenBSD but they constantly change the rule syntax for pf, which invalidates huge swaths of forum posts and other online documentation, even published books. The man page doesn't contain every conceivable explanation and example for every scenario either, nor could it, so that is also not a solution. Whether or not the pri…

You have to ACT proactively to upgrade OpenBSD, unlike gmail.

Re: OpenBSD 6.0 released

#30
post #6

Earlier quoted context omitted.

It does? I was under the impression the only reason anyone still did that was to give something physical to donators.

Perhaps I'm the only person using computers in 2016 who only installs OpenBSD via CD :-)

I install it from the ramdisk, much better.
Post reply on HN