Thread (14 messages) 14 messages, 5 authors, 2025-03-19

Re: [PATCH v4 0/5] implement lightweight guard pages

From: Lorenzo Stoakes <hidden>
Date: 2024-10-28 22:22:41
Also in: linux-alpha, linux-arch, linux-kselftest, linux-mips, linux-mm, lkml

On Mon, Oct 28, 2024 at 11:24:13AM -0700, SeongJae Park wrote:
On Mon, 28 Oct 2024 14:13:26 +0000 Lorenzo Stoakes [off-list ref] wrote:
quoted
Userland library functions such as allocators and threading implementations
often require regions of memory to act as 'guard pages' - mappings which,
when accessed, result in a fatal signal being sent to the accessing
process.

The current means by which these are implemented is via a PROT_NONE mmap()
mapping, which provides the required semantics however incur an overhead of
a VMA for each such region.

With a great many processes and threads, this can rapidly add up and incur
a significant memory penalty. It also has the added problem of preventing
merges that might otherwise be permitted.

This series takes a different approach - an idea suggested by Vlasimil
Babka (and before him David Hildenbrand and Jann Horn - perhaps more - the
Nit.  s/Vlasimil/Vlastimil/ ;)
Ugh oops sorry Vlastimil! This was a silly typo... Andrew would you mind fixing
this up? I'll edit my local file for this so if I respin this will be corrected.

Thanks!

Thanks,
SJ

[...]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help