Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions

@insanitybit
Submissions

comment 6mo ago · link · parent

You can use arenas in Rust, it's just not as trivial to swap allocators generally. But there are plenty of crates for it.

comment 6mo ago · link · parent

I don't see any reason why the approach wouldn't hold just fine, if not better, as the codebase scaled. Indeed this appears to be exactly what the author has done, they mention that they made heavy use of crates.

comment 6mo ago · link · parent

It's very easy to just instruct the LLM to build using isolated crates, to maintain boundaries, focus on "ports and adapters", etc, and not run into this - in my experience.

I haven't had any issues with this getting out of hand on >10KLOC vibed rust codebases.

comment 6mo ago · link · parent

He's tweeting his experiences. Calling this "sprinting" and "evangelizing" is just rhetoric. Posting about a project you're working on is hardly amateurish.

comment 6mo ago · link · parent

io-uring is in a different league imo. I'd say that it's second only to user namespaces in terms of attack surface.

That said, putting stuff in a docker container is kinda a light lift that cuts a bunch of attack surface.

comment 6mo ago · link · parent

io-uring is a security nightmare. Constant privescs and a powerful primitive for syscall smuggling. Worth considering disabling it outright (already the case for most containers afaik).

comment 6mo ago · link · parent

I'm not and I'm doing it right now.

comment 6mo ago · link · parent

Okay, so what is Cloudflare's "DVD" equivalent? And what about AI necessitates smaller teams?

comment 6mo ago · link · parent

You don't need unprivileged user namespaces for this one if you're in a position to get the target kernel module loaded. But yeah, user namespaces are basically the single most significant privesc path in the kernel, maybe io-uring is second. Disabling both (or very carefully deciding what can use them) is one of the best ways to reduce your attack surface.

I don't have any guides but you can determine which kernel modules are already loaded in your system and then just compile those in and block module loading.

Otherwise, shove everything into a container, ideally gvisor, and you've reduced attack surface by a large chunk again via seccomp.

comment 6mo ago · link · parent

An exploit was already published.

comment 6mo ago · link · parent

Trivially. Kernel modules autoload through various unprivileged mechanisms.

comment 6mo ago · link · parent

> The old “quiet patch before disclosure” model may simply not work anymore in the LLM era.

It never did. Trawling the Linux commit history is a tried and true method for finding n-days.

comment 6mo ago · link · parent

Spender didn't publish any exploit afaik

comment 6mo ago · link · parent

The commit for the fix was public. Someone noticed. An exploit was published.

comment 6mo ago · link · parent

I assume because the rxrpc module is not loaded / provided and because unprivileged user namespaces are not allowed, which should be sufficient to mitigate. Curious if someone else has more details though.

comment 6mo ago · link · parent

We already find bugs constantly in Linux and they go unaddressed, no one even keeps up with syzkaller reports lol

AI is neat because it's higher signal but yeah no, we're not getting anywhere close to "safe linux", AI or not.

comment 6mo ago · link · parent

Larger target.

comment 6mo ago · link · parent

New vulns are introduced to Linux every day. Fuzzers trigger every single day on Linux. No, nothing will improve here from AI.

comment 6mo ago · link · parent

Nothing about fedramp requires that you enable any of the features you're talking about. Linking to a public preview of an Azure product that doesn't even run with enforcement on is not great supporting evidence.

comment 6mo ago · link · parent

Syscalls and kernel module loading can both be logged, I assume that's sufficient here.

comment 6mo ago · link · parent

lol no one does that (edit: or, rather, that is extremely uncommon, even in "serious" environments, for a ton of reasons).

comment 6mo ago · link · parent

Sort of obvious, like dietary differences? They attempt a specific vegan control, but what if you aren't vegan but also dislike the taste of meat? What if you don't have a diagnosed health condition, but have a family history so you avoid eggs?

This isn't that complicated. Observational studies just have these weaknesses. We're past the point of observation here, as I said, and it's time to try intervention testing.

comment 6mo ago · link · parent

Maybe a sort of interesting study but it's observational and full of speculative mechanistic fluff, and I don't think it controls well enough. We're kinda past the point of egg studies, just study the mechanisms speculated on in an intervention study, right?

comment 6mo ago · link · parent

Ha, no, I did not write that crate. I think my use of this username probably predates rust, certainly that crate.

Postfix macros had some very tricky issues and it would have delayed things a lot to figure out the right resolution.

comment 6mo ago · link · parent

I was a proponent of the postfix macro solution. `.await!` or `.await!()`, essentially. The idea was that this could be generalized, it was closer to existing syntax, etc.

I was worried about features that I still don't love like `.match` etc (I'm more open to these now).

Post-fix macros would have been very complex. Scoping alone is complex.

`.await` kinda just works. It does everything you want and the one cost is that it looks like a property access but it isn't. A trivial cost in retrospect that I was a huge baby about, and I'll always feel bad about that.

comment 6mo ago · link · parent

I'm not prominent but I disagreed with it at the time and I was wrong.

comment 6mo ago · link · parent

I assume he means deterministic here, meaning that the translation program always produces the same output for a given input.

But none of these properties are what let you perform a successful port. The port is going to rely entirely on oracle testing.

comment 6mo ago · link · parent

Why does the deterministic nature matter? The interesting part is having oracle tests, not determinism. If someone is deterministic and wrong you use oracle tests to catch that.
12345
164