Re: [PATCH 1/1] modules: add ro_after_init support

2016-06-28 Thread Rusty Russell
Jessica Yu writes: > Add ro_after_init support for modules by adding a new page-aligned section > in the module layout (after rodata) for ro_after_init data and enabling RO > protection for that section after module init runs. > > Signed-off-by: Jessica Yu I would prefer a "bool after_init" flag

Re: [PATCH 1/1] modules: add ro_after_init support

2016-06-14 Thread Kees Cook
On Mon, Jun 13, 2016 at 5:13 PM, Jessica Yu wrote: > Add ro_after_init support for modules by adding a new page-aligned section > in the module layout (after rodata) for ro_after_init data and enabling RO > protection for that section after module init runs. > > Signed-off-by: Jessica Yu This lo

[PATCH 1/1] modules: add ro_after_init support

2016-06-13 Thread Jessica Yu
Add ro_after_init support for modules by adding a new page-aligned section in the module layout (after rodata) for ro_after_init data and enabling RO protection for that section after module init runs. Signed-off-by: Jessica Yu --- include/linux/module.h | 2 ++ include/uapi/linux/elf.h | 1