Skip to content

Commit b8612e5

Browse files
bwhacksrustyrussell
authored andcommitted
Documentation/module-signing.txt: Note need for version info if reusing a key
Signing a module should only make it trusted by the specific kernel it was built for, not anything else. If a module signing key is used for multiple ABI-incompatible kernels, the modules need to include enough version information to distinguish them. Signed-off-by: Ben Hutchings <[email protected]> Cc: [email protected] Signed-off-by: Rusty Russell <[email protected]>
1 parent bca014c commit b8612e5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/module-signing.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,3 +271,9 @@ Since the private key is used to sign modules, viruses and malware could use
271271
the private key to sign modules and compromise the operating system. The
272272
private key must be either destroyed or moved to a secure location and not kept
273273
in the root node of the kernel source tree.
274+
275+
If you use the same private key to sign modules for multiple kernel
276+
configurations, you must ensure that the module version information is
277+
sufficient to prevent loading a module into a different kernel. Either
278+
set CONFIG_MODVERSIONS=y or ensure that each configuration has a different
279+
kernel release string by changing EXTRAVERSION or CONFIG_LOCALVERSION.

0 commit comments

Comments
 (0)