Re: [PATCH v4.1 07/10] x86/entry/vdso: include GNU_PROPERTY and GNU_STACK PHDRs
From: Andrew Cooper
Date: Wed Jan 07 2026 - 07:11:01 EST
On 06/01/2026 9:18 pm, H. Peter Anvin wrote:
> Currently the vdso doesn't include .note.gnu.property or a GNU noexec
> stack annotation (the -z noexecstack in the linker script is
> ineffective because we specify PHDRs explicitly.)
>
> The motivation is that the dynamic linker currently do not check
> these.
>
> However, this is a weak excuse: the vdso*.so are also supposed to be
> usable at link libraries, and there is no reason why the dynamic
> linker might not want or need to check these in the future, so add
> them back in -- it is trivial enough.
>
> Use symbolic constants for the PHDR permission flags.
>
> [ v4: drop unrelated formatting changes ]
> [ v4.1: drop one last bogus formatting change (Brian Gerst) ]
>
> Signed-off-by: H. Peter Anvin (Intel) <hpa@xxxxxxxxx>
The v4/v4.1 notes will presumably want dropping before committing?