Re: [PATCH v19 22/25] ELF: Introduce arch_setup_elf_property()

Kees Cook
2021-02-04T20:33:13Z

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 <yu-cheng.yu@intel.com>

Reviewed-by: Kees Cook <keescook@chromium.org>

--
Kees Cook