From: Rusty Russell Date: Mon, 21 Jan 2013 06:33:02 +0000 (+1030) Subject: module: printk message when module signature fail taints kernel. X-Git-Tag: upstream/snapshot3+hdmi~5660^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64748a2c9062da0c32b59c1b368a86fc4613b1e1;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git module: printk message when module signature fail taints kernel. Reported-by: Chris Samuel Signed-off-by: Rusty Russell --- diff --git a/kernel/module.c b/kernel/module.c index eab0827..e69a5a6 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -3192,8 +3192,13 @@ again: #ifdef CONFIG_MODULE_SIG mod->sig_ok = info->sig_ok; - if (!mod->sig_ok) + if (!mod->sig_ok) { + printk_once(KERN_NOTICE + "%s: module verification failed: signature and/or" + " required key missing - tainting kernel\n", + mod->name); add_taint_module(mod, TAINT_FORCED_MODULE); + } #endif /* Now module is in final location, initialize linked lists, etc. */