Message ID | 20200205181935.3712-22-yu-cheng.yu@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Control-flow Enforcement: Shadow Stack | expand |
On Wed, Feb 05, 2020 at 10:19:29AM -0800, Yu-cheng Yu wrote: > An ELF file's .note.gnu.property indicates architecture features of > the file. Introduce feature definitions for Control-flow Enforcement > Technology (CET): Shadow Stack and Indirect Branch Tracking. > > Signed-off-by: Yu-cheng Yu <yu-cheng.yu@intel.com> Why not merge with patch 20? -Kees > --- > include/uapi/linux/elf.h | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h > index c37731407074..61251ecabdd7 100644 > --- a/include/uapi/linux/elf.h > +++ b/include/uapi/linux/elf.h > @@ -444,4 +444,11 @@ typedef struct elf64_note { > Elf64_Word n_type; /* Content type */ > } Elf64_Nhdr; > > +/* .note.gnu.property types */ > +#define GNU_PROPERTY_X86_FEATURE_1_AND 0xc0000002 > + > +/* Bits of GNU_PROPERTY_X86_FEATURE_1_AND */ > +#define GNU_PROPERTY_X86_FEATURE_1_IBT 0x00000001 > +#define GNU_PROPERTY_X86_FEATURE_1_SHSTK 0x00000002 > + > #endif /* _UAPI_LINUX_ELF_H */ > -- > 2.21.0 >
diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h index c37731407074..61251ecabdd7 100644 --- a/include/uapi/linux/elf.h +++ b/include/uapi/linux/elf.h @@ -444,4 +444,11 @@ typedef struct elf64_note { Elf64_Word n_type; /* Content type */ } Elf64_Nhdr; +/* .note.gnu.property types */ +#define GNU_PROPERTY_X86_FEATURE_1_AND 0xc0000002 + +/* Bits of GNU_PROPERTY_X86_FEATURE_1_AND */ +#define GNU_PROPERTY_X86_FEATURE_1_IBT 0x00000001 +#define GNU_PROPERTY_X86_FEATURE_1_SHSTK 0x00000002 + #endif /* _UAPI_LINUX_ELF_H */
An ELF file's .note.gnu.property indicates architecture features of the file. Introduce feature definitions for Control-flow Enforcement Technology (CET): Shadow Stack and Indirect Branch Tracking. Signed-off-by: Yu-cheng Yu <yu-cheng.yu@intel.com> --- include/uapi/linux/elf.h | 7 +++++++ 1 file changed, 7 insertions(+)