Hacker News
points by p-e-w 3 days ago | 0 comments
How can it be surprising that a software made from 40+ million lines of memory-unsafe code has hundreds of critical bugs?
[–] wahern 3 days ago
More than half of those lines are from drivers, drivers which wouldn't be relevant to a VM environment. Core kernel code for any particular architecture is less than 10 million, but some of that is filesystems or subsystems not in use or available to an unprivileged user on a typical server, so possibly maybe 5 million or less. And the article says they only targeted 2.8 million SLoC.
[–] hoppp 3 days ago
There are always more left.
[–] ChickeNES 3 days ago
And memory safety doesn't prevent logic errors (or using 4 as a private key for that matter)
[–] tancop 3 days ago
No, but type safety does. You can't forget to lock an object before using it when that lock is part of the type. Or pass a raw user controlled path to a function that expects a validated one. If you want to do it on purpose you need to write unsafe code that's clearly visible to anyone reviewing your patch.
[–] pixl97 3 days ago
This said memory unsafe code just likely has more bugs because of all the footguns it has on top of all the other security work you need to do with it.
[–] 0xbadcafebee 3 days ago
Funny how OpenBSD is "memory-unsafe" yet doesn't have these issues. Could it be that the programmer might have something to do with it?
[–] icepush 3 days ago
As an OpenBSD lover and frequent user I will tell you it does not support but a significant fraction of the hardware Linux does, and has many features that are reduced in functionality or just gone compared to Linux.

Is it bulletproof? Definitely! But you need the genius of Albert Einstein as well as the patience of Mother Theresa to actually use it in production.

[–] wahern 3 days ago
For most server setups OpenBSD's hardware support is adequate, and this is especially true for VMs. It's laptops, peripherals, and bleeding edge, high-performance or specialized devices where driver support is a PITA. But that's not something I've encountered running my own private servers. It would be nice to have something like ZFS, but mostly that's a peace of mind and convenience thing--would be nice to be able to stream backups somewhere rather than push around dumps and tarballs, though I have a script for that.
[–] Muromec 3 days ago
Can't have a bug in a feature you never implemented and can't have another arising from unexpected interaction of two features you didn't implement.

It's the one security practice that actuuuualy works

[–] cyberax 3 days ago
Is anyone spending millions of dollars on checking OpenBSD?

But it also got its share of use-after-free and OOB access vulnerabilities this year: https://feedly.com/cve/vendors/openbsd

[–] 0xbadcafebee 3 days ago
The orders of magnitude fewer security vulns for OpenBSD are not due to less testing. Everybody has always known OpenBSD is more secure, and it's not from using a different language. The reason is the code. Linux was not designed to be secure. OpenBSD was. It's that simple.
[–] imtringued 3 days ago
Yep, the reason why OpenBSD has had 5 times as many security vulnerability reports in 2026 than in 2025 has to do with the fact that OpenBSD is more secure and the reason is the code.

It was designed to have its vulnerabilities discovered in the year of agentic AI.

I wonder why 70% of the vulnerabilities in that list are attributable to OpenSSH, which is not exactly known to be a popular project.

[–] doublepg23 3 days ago
literally just got a syspatch email bruh
[–] esseph 3 days ago
> Funny how OpenBSD is "memory-unsafe" yet doesn't have these issues.

First of all... Do you really believe that to be true?

[–] imtringued 3 days ago
We finally got the sufficiently smart C programmers and you still think that humans are part of that group?