[PATCH] nplt: Fix MADV_GUARD_INSTALL logic for thread without guard page (BZ 33356)

Michael Hudson-Doyle michael.hudson@canonical.com
Wed Sep 3 21:19:59 GMT 2025


On Wed, 3 Sept 2025 at 04:19, Adhemerval Zanella <
adhemerval.zanella@linaro.org> wrote:

> The main issue is that setup_stack_prot fails to account for cases where
> the cached thread stack lacks a guard page, which can cause madvise to
> fail. Update the logic to also handle whether MADV_GUARD_INSTALL is
> supported when resizing the guard page.
>

My colleague who ran into the problem reports that this patch fixes the
problem, thanks!

Cheers,
mwh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20250904/c81c95c3/attachment.htm>


More information about the Libc-alpha mailing list