Earlier quoted context omitted.
Government agencies probably already have half of these exploits in their private toolbox for years now. Finding and patching them is good, but there probably needs to be some systematic change to prevent them rather than just patching bugs when they get found.
Something something microkernels + capability-based security.
You gave me a u32. I gave you root. (io_uring ZCRX freelist LPE)
121–130 of 152 posts
Re: You gave me a u32. I gave you root. (io_uring ZCRX freelist LPE)
#122Earlier quoted context omitted.
> To err is human Yes, which is precisely why I write in Rust, because the compiler errs less than I do.
It may, but it still requires careful annotations. So you should hope that you have not made an error there and described the wrong structure for the code.
On the other hand, when you're relying on your ability to "actually write quite good C code"...you'd better hope that you have not made an error there. In practice, some of the most widely used C libraries in the world still seem to have bugs like this, so I don't really understand why you'd think that's a winning strategy.
Re: You gave me a u32. I gave you root. (io_uring ZCRX freelist LPE)
#123What is happening? I see multiple outages and CVEs is being reported on HN's front page. I've never seen these many security/incident related posts on HN's front page.
A mix of AI and hybrid warfare.
Re: You gave me a u32. I gave you root. (io_uring ZCRX freelist LPE)
#124Earlier quoted context omitted.
Let's say you want to call win32 (or Mac) OS functions, all of a sudden you're doing all kinds of wonky pointer stuff because that's how these operating systems have been architected. Doing unsafe stuff is pretty inevitable if you want to do anything non-hello-world-ish.
A tiny fraction of programs need to use win32 or Mac OS functions beyond the standard library or other safe wrappers for said functions.
Re: You gave me a u32. I gave you root. (io_uring ZCRX freelist LPE)
#125Earlier quoted context omitted.
> 95% of rust is safe rust. Based on the raw number of assorted crates, which has no bearing on kernel code. The more relevant question is, can a performant, cross-architecture, kernel ring-buffer be written in safe Rust?
Hubris, an embedded RTOS-like used in production by Oxide, has ~4% unsafe code in the kernel last I checked. There’s a ring buffer implementation that has one unsafe, for unchecked indexing: https://github.com/oxidecomputer/hubris/blob/master/lib/ring... (this of course does not mean that it is the one ring buffer to rule them all, but it’s to demonstrate that yes, it is at least possible to have one with minimum uns…
The entirety of safe Rust is built upon unsafe Rust that's abstracted like this. The fact that you sometimes need unsafe isn't a mark against Rust, but literally the entire premise of the language and the exact problem it's designed to solve.
Re: You gave me a u32. I gave you root. (io_uring ZCRX freelist LPE)
#126Re: You gave me a u32. I gave you root. (io_uring ZCRX freelist LPE)
#127Earlier quoted context omitted.
In some sense, I wonder if non-open-source is "safer" since LLMs can't mass scan the code for exploits.
Maybe for a while, but there's nothing stopping LLMs from examining disassembler output.
Re: You gave me a u32. I gave you root. (io_uring ZCRX freelist LPE)
#128Earlier quoted context omitted.
Something something microkernels + capability-based security.
I've seen microkernels mentioned a few times between these LPE posts and I'm curious about why. Would they be fundamentally more secure against forgetting to add bounds checking, or assuming user-provided input buffers should be writable without checking?
Re: You gave me a u32. I gave you root. (io_uring ZCRX freelist LPE)
#129Earlier quoted context omitted.
Maybe for a while, but there's nothing stopping LLMs from examining disassembler output.
That's significantly more challenging for an LLM (and a human)
Re: You gave me a u32. I gave you root. (io_uring ZCRX freelist LPE)
#130What is happening? I see multiple outages and CVEs is being reported on HN's front page. I've never seen these many security/incident related posts on HN's front page.
A mix of AI and hybrid warfare.