News for hackers. Stuff that matters.
Re:Hidden dependencies in Linux binaries by rini17 on Sunday April 14, 2024 @02:42PM (#40033311)
Someone got a microservice hammer, so everything looks like a nail eh?

What is really needed, is sane memory model where you can easily call any function with buffers (pointer + size) and it is allowed to access only these buffers and nothing else(note). Not this mess coming from C where this is difficult by design.

(note)since HN likes to split hairs: except for its private storage and other well thought exceptions

Re:Hidden dependencies in Linux binaries by ptx on Sunday April 14, 2024 @03:07PM (#40033517)
This would be what's known as software-based fault isolation, right? Here's a paper from 1993: https://dl.acm.org/doi/abs/10.1145/168619.168635

I don't understand why this idea keeps failing to take hold even though it's constantly reintroduced in various forms. Surely now, 30 years after that paper was published, we can bear the "slightly increased execution time for distrusted modules" in return for (as the paper suggests) faster communication between isolated modules?

Re:Hidden dependencies in Linux binaries by o11c on Sunday April 14, 2024 @03:30PM (#40033691)
So basically like that one Rust hardware project that gets posted periodically?

You could probably do it pretty decently in C via `pkey_mprotect` (probably with `dlmopen`).

https://www.man7.org/linux/man-pages/man7/pkeys.7.html

Re:Hidden dependencies in Linux binaries by quotemstr on Sunday April 14, 2024 @05:23PM (#40034604)
It'd be nice if dlmopen weren't broken and made a linker namespace so separate that it couldn't even share pthreads with another.