Skip to content
Commit c7ee8aeb authored by Luis Chamberlain's avatar Luis Chamberlain
Browse files

module: add stop-grap sanity check on module memcpy()



The integrity of the struct module we load is important, and although
our ELF validator already checks that the module section must match
struct module, add a stop-gap check before we memcpy() the final minted
module. This also makes those inspecting the code what the goal is.

While at it, clarify the goal behind updating the sh_addr address.
The current comment is pretty misleading.

Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
parent 46752820
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment