[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0d53c80f-46e3-4e78-8d8b-cc36085229e4@citrix.com>
Date: Wed, 7 Jan 2026 12:10:52 +0000
From: Andrew Cooper <andrew.cooper3@...rix.com>
To: "H. Peter Anvin" <hpa@...or.com>, "Jason A. Donenfeld" <Jason@...c4.com>,
"Peter Zijlstra (Intel)" <peterz@...radead.org>,
Theodore Ts'o <tytso@....edu>,
Thomas Weißschuh <thomas.weissschuh@...utronix.de>,
Xin Li <xin@...or.com>, Andy Lutomirski <luto@...nel.org>,
Ard Biesheuvel <ardb@...nel.org>, Borislav Petkov <bp@...en8.de>,
Brian Gerst <brgerst@...il.com>, Dave Hansen <dave.hansen@...ux.intel.com>,
Ingo Molnar <mingo@...hat.com>, James Morse <james.morse@....com>,
Jarkko Sakkinen <jarkko@...nel.org>, Josh Poimboeuf <jpoimboe@...nel.org>,
Kees Cook <kees@...nel.org>, Nam Cao <namcao@...utronix.de>,
Oleg Nesterov <oleg@...hat.com>, Perry Yuan <perry.yuan@....com>,
Thomas Gleixner <tglx@...utronix.de>, Thomas Huth <thuth@...hat.com>,
Uros Bizjak <ubizjak@...il.com>, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, linux-sgx@...r.kernel.org, x86@...nel.org
Cc: Andrew Cooper <andrew.cooper3@...rix.com>
Subject: Re: [PATCH v4.1 07/10] x86/entry/vdso: include GNU_PROPERTY and
GNU_STACK PHDRs
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@...or.com>
The v4/v4.1 notes will presumably want dropping before committing?
Powered by blists - more mailing lists