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

From: Kees Cook
Date: Fri Apr 21 2017 - 18:35:49 EST


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:
- adjusted for more odd name load failure cases; jeyu