[PATCH] nplt: Fix MADV_GUARD_INSTALL logic for thread without guard page (BZ 33356)
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Mon Sep 8 12:08:44 GMT 2025
On 02/09/25 16:07, Florian Weimer wrote:
> * Adhemerval Zanella:
>
>> 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.
>>
>> Checked on x86_64-linux-gnu with 6.8.0 and 6.15 kernels.
>
> Typo in commit subject, should be nptl.
Ack, are you ok with this change?
More information about the Libc-alpha
mailing list