Re: [PATCH v2 1/3] module: verify address is read-only

2017-02-26 Thread Jessica Yu
+++ Eddie Kovsky [17/02/17 22:58 -0700]: Implement a mechanism to check if a module's address is in the rodata or ro_after_init sections. It mimics the exsiting functions that test if an address is inside a module's text section. It would be helpful to explain in the changelog the motivation or

Re: [PATCH v2 1/3] module: verify address is read-only

2017-02-21 Thread Stephen Hemminger
On Tue, 21 Feb 2017 12:32:16 -0800 Kees Cook wrote: > On Mon, Feb 20, 2017 at 9:14 AM, Stephen Hemminger > wrote: > > On Fri, 17 Feb 2017 21:58:42 -0800 > > "Eddie Kovsky" wrote: > > > >> Implement a mechanism to check if a module's address is in > >> the rodata or ro_after_init sections. It

Re: [PATCH v2 1/3] module: verify address is read-only

2017-02-21 Thread Kees Cook
On Mon, Feb 20, 2017 at 9:14 AM, Stephen Hemminger wrote: > On Fri, 17 Feb 2017 21:58:42 -0800 > "Eddie Kovsky" wrote: > >> Implement a mechanism to check if a module's address is in >> the rodata or ro_after_init sections. It mimics the exsiting functions >> that test if an address is inside a m

Re: [PATCH v2 1/3] module: verify address is read-only

2017-02-20 Thread Stephen Hemminger
On Fri, 17 Feb 2017 21:58:42 -0800 "Eddie Kovsky" wrote: > Implement a mechanism to check if a module's address is in > the rodata or ro_after_init sections. It mimics the exsiting functions > that test if an address is inside a module's text section. > > Signed-off-by: Eddie Kovsky I don't se

[PATCH v2 1/3] module: verify address is read-only

2017-02-17 Thread Eddie Kovsky
Implement a mechanism to check if a module's address is in the rodata or ro_after_init sections. It mimics the exsiting functions that test if an address is inside a module's text section. Signed-off-by: Eddie Kovsky --- include/linux/module.h | 7 +++ kernel/module.c| 44 ++