linux/kernel/module.c
Ben Hutchings 1d307756e9 module: Invalidate signatures on force-loaded modules
[ Upstream commit bca014caaa ]

Signing a module should only make it trusted by the specific kernel it
was built for, not anything else.  Loading a signed module meant for a
kernel with a different ABI could have interesting effects.
Therefore, treat all signatures as invalid when a module is
force-loaded.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: stable@vger.kernel.org
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-08-22 12:23:18 -04:00

3889 lines
98 KiB