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)
commit91f9d330cc14932084c37751997213cb0e7ea882
tree8a7494e64787ea72ce4ed86c5298a1b1b7195111
parent6a4c264313c4ae32dc53821a9c57e0dc9696fb81
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