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

2017-04-21 Thread Kees Cook
On Thu, Apr 20, 2017 at 11:27 PM, Jessica Yu wrote: > +++ Kees Cook [12/04/17 16:16 -0700]: > >> Accessing the mod structure (e.g. for mod->name) prior to having completed >> check_modstruct_version() can result in writing garbage to the error logs >> if the layout of the mod structure loaded from

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

2017-04-20 Thread Jessica Yu
+++ Kees Cook [12/04/17 16:16 -0700]: Accessing the mod structure (e.g. for mod->name) prior to having completed check_modstruct_version() can result in writing garbage to the error logs if the layout of the mod structure loaded from disk doesn't match the running kernel's mod structure layout. T

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

2017-04-12 Thread Kees Cook
Accessing the mod structure (e.g. for mod->name) prior to having completed check_modstruct_version() can result in writing garbage to the error logs if the layout of the mod structure loaded from disk doesn't match the running kernel's mod structure layout. This kind of mismatch will become much mo