lkml.org 
[lkml]   [2011]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
SubjectOut 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@gmail.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@gmail.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


\
 
 \ /
  Last update: 2011-12-17 02:49    [W:0.105 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site