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

2016-07-25 Thread Kees Cook
On Mon, Jul 25, 2016 at 2:25 AM, 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 Acked-b

Re: modules: add ro_after_init support

2016-07-25 Thread Jessica Yu
+++ Jessica Yu [25/07/16 05:25 -0400]: 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

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

2016-07-25 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 | 6 +++-- include/uapi/linux/elf.h |

Re: modules: add ro_after_init support

2016-07-21 Thread Jessica Yu
+++ Kees Cook [21/07/16 16:03 -0700]: On Wed, Jun 29, 2016 at 9:56 PM, Rusty Russell wrote: Jessica Yu writes: +++ Rusty Russell [29/06/16 10:38 +0930]: 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_

Re: modules: add ro_after_init support

2016-07-21 Thread Kees Cook
On Wed, Jun 29, 2016 at 9:56 PM, Rusty Russell wrote: > Jessica Yu writes: >> +++ Rusty Russell [29/06/16 10:38 +0930]: >>>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 enabli

Re: modules: add ro_after_init support

2016-06-29 Thread Rusty Russell
Jessica Yu writes: > +++ Rusty Russell [29/06/16 10:38 +0930]: >>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.

Re: modules: add ro_after_init support

2016-06-29 Thread Jessica Yu
+++ Rusty Russell [29/06/16 10:38 +0930]: 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

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: modules: add ro_after_init support

2016-06-14 Thread Jessica Yu
+++ Kees Cook [14/06/16 14:33 -0700]: 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. Sig

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