From: Rusty Russell Date: Fri, 9 May 2008 06:25:28 +0000 (+1000) Subject: module: don't ignore vermagic string if module doesn't have modversions X-Git-Tag: v2.6.26-rc2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91e37a793b5a9436a2d12b2f0a8f52db3a133e1d;p=pandora-kernel.git module: don't ignore vermagic string if module doesn't have modversions Linus found a logic bug: we ignore the version number in a module's vermagic string if we have CONFIG_MODVERSIONS set, but modversions also lets through a module with no __versions section for modprobe --force (with tainting, but still). We should only ignore the start of the vermagic string if the module actually *has* crcs to check. Rather than (say) having an entertaining hissy fit and creating a config option to work around the buggy code. Signed-off-by: Rusty Russell Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed