Re: [PATCH v3 1/2] module: verify address is read-only

From: Jessica Yu
Date: Fri Mar 24 2017 - 20:42:47 EST


+++ Kees Cook [23/03/17 14:13 -0700]:
On Wed, Mar 22, 2017 at 7:55 PM, Eddie Kovsky <ewk@xxxxxxxxxxxx> 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.

Functions that take a module as an argument will be able to
verify that the module is in a read-only section.

Signed-off-by: Eddie Kovsky <ewk@xxxxxxxxxxxx>

Awesome! I'll be glad to have these.

Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>

Jessica, if this looks good to you, should this go via modules or via
my tree? If mine, can I have your Ack?

Sure, would be happy to let you take this patch through your tree. I
only had a few minor comments left, so I think just one more small
respin and it'll be good to go.

Thanks!

Jessica