]> git.baikalelectronics.ru Git - kernel.git/commit
module: make it possible to have unsafe, tainting module params
authorJani Nikula <jani.nikula@intel.com>
Tue, 26 Aug 2014 20:52:23 +0000 (06:22 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 27 Aug 2014 12:24:08 +0000 (21:54 +0930)
commit855cd71ed927c3691e01ef916ca16a67987f7d30
tree8a7494e64787ea72ce4ed86c5298a1b1b7195111
parent88f26b3686ce6e8a9d3362f9159847587fe37703
module: make it possible to have unsafe, tainting module params

Add flags field to struct kernel_params, and add the first flag: unsafe
parameter. Modifying a kernel parameter with the unsafe flag set, either
via the kernel command line or sysfs, will issue a warning and taint the
kernel.

Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Jean Delvare <khali@linux-fr.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Li Zhong <zhong@linux.vnet.ibm.com>
Cc: Jon Mason <jon.mason@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/tty/serial/8250/8250_core.c
include/linux/moduleparam.h
kernel/params.c