Get the latest tech news

Magic Buffers and io_uring Registered Buffers


There’s a really cool little mmap gadget that maps the same underlying memory region into two contiguous virtual memory address ranges. When you write past the end of the first mapped region, the remaining bytes end up in the second mapped region (and at the start of the first one).

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of magic buffers

magic buffers

Photo of registered buffers

registered buffers