Re: [PATCH v19 22/25] ELF: Introduce arch_setup_elf_property()
From: Kees Cook <hidden>
Date: 2021-02-04 20:35:11
Also in:
linux-arch, linux-doc, linux-mm, lkml
From: Kees Cook <hidden>
Date: 2021-02-04 20:35:11
Also in:
linux-arch, linux-doc, linux-mm, lkml
On Wed, Feb 03, 2021 at 02:55:44PM -0800, Yu-cheng Yu wrote:
An ELF file's .note.gnu.property indicates arch features supported by the file. These features are extracted by arch_parse_elf_property() and stored in 'arch_elf_state'. Introduce x86 feature definitions and arch_setup_elf_property(), which enables such features. The first use-case of this function is Shadow Stack. ARM64 is the other arch that has ARCH_USE_GNU_PROPERTY and arch_parse_elf_ property(). Add arch_setup_elf_property() for it. Signed-off-by: Yu-cheng Yu <redacted>
Reviewed-by: Kees Cook <redacted> -- Kees Cook