π
#Linux might surprise you by allowing writes to "unwritable"
#memory because, apparently, rules are just friendly suggestions in the
#kernel world. π It's like the
#rebellious #teen of operating systems, sticking it to
#virtual #memory restrictions just to impress niche projects like Julia and rr. π
https://offlinemark.com/an-obscure-quirk-of-proc/ #unwritable #tricks #HackerNews #ngated
Linux Internals: How /proc/self/mem writes to unwritable memory - offlinemark
Introduction An obscure quirk of the /proc/*/mem pseudofile is its βpunch throughβ semantics. Writes performed through this file will succeed even if the destination virtual memory is marked unwritable. In fact, this behavior is intentional and actively used by projects such as the Julia JIT compiler and rr debugger. This behavior raises some questions: Is [β¦]
offlinemark
Linux Internals: How /proc/self/mem writes to unwritable memory - offlinemark
Introduction An obscure quirk of the /proc/*/mem pseudofile is its βpunch throughβ semantics. Writes performed through this file will succeed even if the destination virtual memory is marked unwritable. In fact, this behavior is intentional and actively used by projects such as the Julia JIT compiler and rr debugger. This behavior raises some questions: Is [β¦]
offlinemark