Re: [PATCH v2 0/2] module: Add module name to modinfo

2017-05-23 Thread Jessica Yu
+++ Kees Cook [25/04/17 21:43 -0700]: On Tue, Apr 25, 2017 at 7:32 PM, Jessica Yu wrote: +++ Kees Cook [21/04/17 15:35 -0700]: The mod structure is accessed for the "name" field prior to validating sanity in check_modstruct_version(). This becomes very obvious once struct layout randomization

Re: [PATCH v2 0/2] module: Add module name to modinfo

2017-04-25 Thread Kees Cook
On Tue, Apr 25, 2017 at 7:32 PM, Jessica Yu wrote: > +++ Kees Cook [21/04/17 15:35 -0700]: > >> The mod structure is accessed for the "name" field prior to validating >> sanity in check_modstruct_version(). This becomes very obvious once >> struct layout randomization is happening, so instead add

Re: [PATCH v2 0/2] module: Add module name to modinfo

2017-04-25 Thread Jessica Yu
+++ Kees Cook [21/04/17 15:35 -0700]: The mod structure is accessed for the "name" field prior to validating sanity in check_modstruct_version(). This becomes very obvious once struct layout randomization is happening, so instead add the module name to modinfo and use that until the mod struct ha

[PATCH v2 0/2] module: Add module name to modinfo

2017-04-21 Thread Kees Cook
The mod structure is accessed for the "name" field prior to validating sanity in check_modstruct_version(). This becomes very obvious once struct layout randomization is happening, so instead add the module name to modinfo and use that until the mod struct has been sanity-checked. -Kees v2: - adj