2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 07:04:00 +08:00
linux-next/drivers/staging
David Howells ea38fd72fb Annotate hardware config module parameters in drivers/staging/vme/
When the kernel is running in secure boot mode, we lock down the kernel to
prevent userspace from modifying the running kernel image.  Whilst this
includes prohibiting access to things like /dev/mem, it must also prevent
access by means of configuring driver modules in such a way as to cause a
device to access or modify the kernel image.

To this end, annotate module_param* statements that refer to hardware
configuration and indicate for future reference what type of parameter they
specify.  The parameter parser in the core sees this information and can
skip such parameters with an error message if the kernel is locked down.
The module initialisation then runs as normal, but just sees whatever the
default values for those parameters is.

Note that we do still need to do the module initialisation because some
drivers have viable defaults set in case parameters aren't specified and
some drivers support automatic configuration (e.g. PNP or PCI) in addition
to manually coded parameters.

This patch annotates drivers in drivers/staging/vme/.

Suggested-by: Alan Cox <gnomes@lxorguk.ukuu.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Martyn Welch <martyn@welchs.me.uk>
cc: Manohar Vanga <manohar.vanga@gmail.com>
cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
cc: devel@driverdev.osuosl.org
2017-04-20 12:02:32 +01:00
..
android sched/headers: Prepare to move the task_lock()/unlock() APIs to <linux/sched/task.h> 2017-03-02 08:42:38 +01:00
bcm2835-audio Staging: bcm2835-audio: fixed a code style issue: 2017-02-16 10:20:07 -08:00
board
clocking-wizard
comedi sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
dgnc sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
emxx_udc staging: emxx_udc: Fix CamelCase variable name 2017-01-03 16:42:22 +01:00
fbtft staging: fbtft: fix unaligned parentheses 2017-02-05 18:31:04 +01:00
fsl-mc staging: fsl-mc: fix warning in DT ranges parser 2017-03-01 09:23:56 +01:00
fwserial
gdm724x staging: gdm724x: fix incorrect type in assignment 2017-02-09 13:10:21 +01:00
goldfish
greybus sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
gs_fpgaboot scripts/spelling.txt: add "followings" pattern and fix typo instances 2017-02-27 18:43:47 -08:00
iio Staging: iio: adc: ad7816: fix symbolic permissions coding style issue 2017-01-28 12:22:07 +00:00
ks7010 staging/iio driver patches for 4.11-rc1 2017-02-22 12:14:01 -08:00
lustre net: Work around lockdep limitation in sockets that use sockets 2017-03-09 18:23:27 -08:00
media Annotate hardware config module parameters in drivers/staging/media/ 2017-04-20 12:02:32 +01:00
most staging: most: dim2_hdm octal permissions fix 2017-02-09 13:10:20 +01:00
mt29f_spinand
netlogic net: Remove usage of net_device last_rx member 2017-01-18 17:22:49 -05:00
nvec staging:nvec:nvec_ps2.c: Prefering kzalloc(sizeof(*ser_dev)...) over kzalloc(sizeof(struct serio)...) 2017-02-14 09:26:26 -08:00
octeon staging: octeon: remove unused variable 2017-03-08 09:45:07 +01:00
octeon-usb
olpc_dcon staging: olpc_dcon: olpc_dcon_xo_1_5: Remove multiple blank lines. 2017-01-10 17:40:15 +01:00
rtl8188eu sched/headers: Prepare for new header dependencies before moving code to <linux/sched/signal.h> 2017-03-02 08:42:29 +01:00
rtl8192e staging/iio driver patches for 4.11-rc1 2017-02-22 12:14:01 -08:00
rtl8192u scripts/spelling.txt: add "swithc" pattern and fix typo instances 2017-02-27 18:43:46 -08:00
rtl8712 sched/headers: Prepare for new header dependencies before moving code to <linux/sched/signal.h> 2017-03-02 08:42:29 +01:00
rts5208 staging: rts5208: remove unncessary result set and check, just return SUCCESS 2017-02-03 13:01:36 +01:00
skein staging: skein: fix checkpatch block comments warning 2017-01-20 14:39:12 +01:00
sm750fb Staging: sm750fb: sm750.c - style fix 2017-02-12 13:22:08 +01:00
speakup Annotate hardware config module parameters in drivers/staging/speakup/ 2017-04-20 12:02:32 +01:00
unisys staging/iio driver patches for 4.11-rc1 2017-02-22 12:14:01 -08:00
vc04_services staging/vc04_services: add CONFIG_OF dependency 2017-03-06 14:38:49 +01:00
vme Annotate hardware config module parameters in drivers/staging/vme/ 2017-04-20 12:02:32 +01:00
vt6655 staging:vt6656:baseband.h: fix function definition argument without identifier name issue 2017-02-10 15:06:44 +01:00
vt6656 staging: vt6656: rxtx.c Removed multiple dereferencing 2017-02-16 10:23:09 -08:00
wilc1000 scripts/spelling.txt: add "deintialize(d)" pattern and fix typo instances 2017-02-27 18:43:47 -08:00
wlan-ng staging/iio driver patches for 4.11-rc1 2017-02-22 12:14:01 -08:00
xgifb staging:xgifb:vb_setmode.h: Add missing identifier names 2017-02-12 13:55:28 -08:00
Kconfig staging: bcm2835-audio: initial staging submission 2017-01-27 09:44:31 +01:00
Makefile staging: bcm2835-audio: initial staging submission 2017-01-27 09:44:31 +01:00