Re:Imposing memory security in C [video]
by kstrauser on Thursday February 27, 2025 @01:33PM
(#43197046)
Oh, nifty! I guarantee you anyone else discussing this has put more than my 5 minutes' worth of thought into it.
Yeah, if you allow reuse then it wouldn't be a guarantee. I think it'd be closer to the effects of ASLR, where it's still possible to accidentally still break things, just vastly less likely.
Re:Imposing memory security in C [video]
by naasking on Friday February 28, 2025 @10:17AM
(#43206533)
> For long-running programs, the allocator will run out of virtual address space and then you need something to resolve that -- either you do some form of garbage collection or you compromise on safety and just start reusing memory
Or you destroy the current process after you marshall the data that should survive into a newly forked process. Side benefit: this means you get live upgrade support for free, because what is a live upgrade but migrating state to a new process with updated code?
[1]: https://www.usenix.org/system/files/sec21summer_wickman.pdf