Get the latest tech news

Linux Internals: How /proc/self/mem writes to unwritable memory (2021)


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 […]

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of self

self

Photo of /proc

/proc

Photo of linux internals

linux internals

Related news:

News photo

Show HN: Kula – Lightweight, self-contained Linux server monitoring tool

News photo

From 2017: Frances Gabe, Creator of the Only Self-Cleaning Home, Dies at 101

News photo

Wikipedia hit by self-propagating JavaScript worm that vandalized pages