Re: [RFC PATCH] binfmt_elf: Extract .note.gnu.property from an ELF file

2019-07-04 Thread Pavel Machek
Hi! > > +static int scan(u8 *buf, u32 buf_size, int item_size, test_item_fn > > test_item, > > + next_item_fn next_item, u32 *arg, u32 type, u32 *pos) > > +{ > > + int found = 0; > > + u8 *p, *max; > > + > > + max = buf + buf_size; > > + if (max < buf) > > +

Re: [RFC PATCH] binfmt_elf: Extract .note.gnu.property from an ELF file

2019-07-02 Thread Dave Martin
On Fri, Jun 28, 2019 at 10:22:03AM -0700, Yu-cheng Yu wrote: > This patch was part of the Intel Control-flow Enforcement (CET) series at: > > https://lkml.org/lkml/2019/6/6/1014. > > In the discussion, we decided to look at only an ELF header's > PT_GNU_PROPERTY, which is a shortcut pointing

Re: [RFC PATCH] binfmt_elf: Extract .note.gnu.property from an ELF file

2019-07-01 Thread Yu-cheng Yu
On Mon, 2019-07-01 at 21:49 +0200, Jann Horn wrote: > On Fri, Jun 28, 2019 at 7:30 PM Yu-cheng Yu wrote: > [...] > > In the discussion, we decided to look at only an ELF header's > > PT_GNU_PROPERTY, which is a shortcut pointing to the file's > > .note.gnu.property. > > > > The Linux gABI extensi

Re: [RFC PATCH] binfmt_elf: Extract .note.gnu.property from an ELF file

2019-07-01 Thread Jann Horn
On Fri, Jun 28, 2019 at 7:30 PM Yu-cheng Yu wrote: [...] > In the discussion, we decided to look at only an ELF header's > PT_GNU_PROPERTY, which is a shortcut pointing to the file's > .note.gnu.property. > > The Linux gABI extension draft is here: > > https://github.com/hjl-tools/linux-abi/wi

[RFC PATCH] binfmt_elf: Extract .note.gnu.property from an ELF file

2019-06-28 Thread Yu-cheng Yu
This patch was part of the Intel Control-flow Enforcement (CET) series at: https://lkml.org/lkml/2019/6/6/1014. In the discussion, we decided to look at only an ELF header's PT_GNU_PROPERTY, which is a shortcut pointing to the file's .note.gnu.property. The Linux gABI extension draft is here