News for hackers. Stuff that matters.
Re:System memory allocator free operation zeroes out dealloc... by dividuum on Thursday September 22, 2022 @10:37AM (#32939373)
It’s not really an OS problem: it’s the userland allocator that needs to implement this. So on Linux that would mostly be a glibc change to how malloc/free is implemented. The OS itself doesn’t know whether or not a processes memory page is logically „in use“. It only knows that once the process returns it (using for example munmap). But once you do that, any access crashes the process already.
Re:System memory allocator free operation zeroes out dealloc... by noobermin on Thursday September 22, 2022 @12:25PM (#32941167)
I hope you won't call me stallman but in my brain libc should be considered part of the OS, but yes, it would be clearer if I said "libc's should do it."