[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAESSSuBCVU9os04BFQO7+y9EeFos_xVau4rFkdVArL=Ux38Nhg@mail.gmail.com>
Date: Fri, 16 Dec 2011 17:46:06 -0800
From: Abhijit Hoskeri <abhijithoskeri@...il.com>
To: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Out of tree modules now taint the kernel, print warnings like the
other kinds of taint.
Hi,
Out of tree modules now taint the kernel, print warnings like the
other kinds of taint.
commit f78b85df0b5fab5ea25f4b747aff60412d8b9b43
Author: Abhijit Hoskeri <abhijithoskeri@...il.com>
Date: Fri Dec 16 16:00:49 2011 -0800
Out of tree modules taint the kernel, but unlike other forms of
taint, there is no warning.
Print a warning to match other forms of kernel taint.
Signed-off-by: Abhijit Hoskeri <abhijithoskeri@...il.com>
diff --git a/kernel/module.c b/kernel/module.c
index 178333c..9e084c4 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -2487,8 +2487,10 @@ static int check_modinfo(struct module *mod,
struct load_info *info)
return -ENOEXEC;
}
- if (!get_modinfo(info, "intree"))
+ if (!get_modinfo(info, "intree")) {
+ printk(KERN_WARNING "%s: out of tree module taints
kernel\n", mod->name);
add_taint_module(mod, TAINT_OOT_MODULE);
+ }
if (get_modinfo(info, "staging")) {
add_taint_module(mod, TAINT_CRAP);
Regards,
Abhijit
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists