WSL2-Linux-Kernel/drivers/net/arcnet
David Howells 06a5128a29 Annotate hardware config module parameters in drivers/net/arcnet/
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/net/arcnet/.

Suggested-by: Alan Cox <gnomes@lxorguk.ukuu.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Michael Grzeschik <m.grzeschik@pengutronix.de>
cc: netdev@vger.kernel.org
2017-04-20 12:02:32 +01:00
..
Kconfig arcnet/com20020: add LEDS_CLASS dependency 2015-11-03 11:29:56 -05:00
Makefile com20020_cs: Move the PCMCIA Arcnet driver 2011-08-27 00:58:44 -07:00
arc-rawmode.c arcnet: arc-rawmode: reorder module functions 2015-09-23 11:23:44 +02:00
arc-rimi.c arcnet: Add com9026.h to standardize COM9026_REG_<foo> 2015-09-23 08:44:27 +02:00
arcdevice.h arcnet: add netif_carrier_on/off for reconnect 2015-10-26 09:10:56 +01:00
arcnet.c lib/vsprintf.c: remove %Z support 2017-02-27 18:43:47 -08:00
capmode.c arcnet: capmode: remove extra function 2015-09-23 11:23:45 +02:00
com90io.c Annotate hardware config module parameters in drivers/net/arcnet/ 2017-04-20 12:02:32 +01:00
com90xx.c Annotate hardware config module parameters in drivers/net/arcnet/ 2017-04-20 12:02:32 +01:00
com9026.h arcnet: Add com9026.h to standardize COM9026_REG_<foo> 2015-09-23 08:44:27 +02:00
com20020-isa.c Annotate hardware config module parameters in drivers/net/arcnet/ 2017-04-20 12:02:32 +01:00
com20020-pci.c arcnet: com20020-pci: add led trigger support 2015-10-26 09:10:56 +01:00
com20020.c arcnet: com20020: add enable and disable device on open/close 2015-10-26 09:10:56 +01:00
com20020.h arcnet: com20020-pci: add led trigger support 2015-10-26 09:10:56 +01:00
com20020_cs.c arcnet: com20020: Use arcnet_<I/O> routines 2015-09-23 08:44:26 +02:00
rfc1051.c arcnet: Move files out of include/linux 2015-09-23 08:44:25 +02:00
rfc1201.c arcnet: Move files out of include/linux 2015-09-23 08:44:25 +02:00