2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-03 11:13:56 +08:00
linux-next/sound/pci
David Howells 6192c41fc6 Annotate hardware config module parameters in sound/pci/
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 sound/pci/.

Suggested-by: Alan Cox <gnomes@lxorguk.ukuu.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Jaroslav Kysela <perex@perex.cz>
cc: Takashi Iwai <tiwai@suse.com>
cc: alsa-devel@alsa-project.org
2017-04-20 12:02:32 +01:00
..
ac97 scripts/spelling.txt: add "swith" pattern and fix typo instances 2017-02-27 18:43:46 -08:00
ali5451 ALSA: ali5451: Fix out-of-bound position reporting 2016-09-21 14:38:02 +02:00
asihpi ALSA: asihpi: fix kernel memory disclosure 2016-10-18 14:08:25 +02:00
au88x0 ALSA: pci: don't opencode IS_REACHABLE() 2016-11-13 21:33:41 +01:00
aw2 ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
ca0106 ALSA: pci: Constify snd_rawmidi_ops 2017-01-12 12:50:26 +01:00
cs46xx scripts/spelling.txt: add "overwriten" pattern and fix typo instances 2017-02-27 18:43:47 -08:00
cs5535audio ALSA: cs5535audio: fix unused warnings on resume/suspend 2016-12-28 16:05:12 +01:00
ctxfi ALSA: ctxfi: Fix the incorrect check of dma_set_mask() call 2017-03-20 10:08:19 +01:00
echoaudio ALSA: pci: Constify snd_rawmidi_ops 2017-01-12 12:50:26 +01:00
emu10k1 ALSA: emu10k1: constify snd_emux_operators structure 2017-02-19 22:07:29 +01:00
hda ALSA: hda - Adding a group of pin definition to fix headset problem 2017-03-23 09:39:55 +01:00
ice1712 scripts/spelling.txt: add "an union" pattern and fix typo instances 2017-02-27 18:43:46 -08:00
korg1212 lib/vsprintf.c: remove %Z support 2017-02-27 18:43:47 -08:00
lola ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
lx6464es ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
mixart ALSA: mixart: fix a comment typo 2016-12-28 16:11:34 +01:00
nm256 ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
oxygen ALSA: oxygen: constify snd_pcm_ops structures 2016-09-02 11:50:42 +02:00
pcxhr lib/vsprintf.c: remove %Z support 2017-02-27 18:43:47 -08:00
riptide Annotate hardware config module parameters in sound/pci/ 2017-04-20 12:02:32 +01:00
rme9652 ALSA: pci: Constify snd_rawmidi_ops 2017-01-12 12:50:26 +01:00
trident ALSA: pci: don't opencode IS_REACHABLE() 2016-11-13 21:33:41 +01:00
vx222 ALSA: vx: Fix possible transfer overflow 2017-01-04 18:01:35 +01:00
ymfpci Annotate hardware config module parameters in sound/pci/ 2017-04-20 12:02:32 +01:00
ad1889.c ALSA: ad1889: constify snd_pcm_ops structures 2016-09-02 11:50:24 +02:00
ad1889.h
ak4531_codec.c ALSA: pci: Drop superfluous ifdef CONFIG_PROC_FS 2015-05-29 08:00:06 +02:00
als300.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
als4000.c Annotate hardware config module parameters in sound/pci/ 2017-04-20 12:02:32 +01:00
atiixp_modem.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
atiixp.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
azt3328.c ALSA: pci: don't opencode IS_REACHABLE() 2016-11-13 21:33:41 +01:00
azt3328.h
bt87x.c ALSA: bt87x: constify snd_pcm_ops structures 2016-09-02 11:51:03 +02:00
cmipci.c Annotate hardware config module parameters in sound/pci/ 2017-04-20 12:02:32 +01:00
cs4281.c ALSA: pci: Constify snd_rawmidi_ops 2017-01-12 12:50:26 +01:00
cs5530.c ASoC: sb16: Simplify snd_sb16dsp_pcm() 2015-01-02 16:28:35 +01:00
ens1370.c Annotate hardware config module parameters in sound/pci/ 2017-04-20 12:02:32 +01:00
ens1371.c
es1938.c ALSA: pci: don't opencode IS_REACHABLE() 2016-11-13 21:33:41 +01:00
es1968.c ALSA: pci: don't opencode IS_REACHABLE() 2016-11-13 21:33:41 +01:00
fm801.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
intel8x0.c ALSA: intel8x0: Drop superfluous VM checks 2016-04-06 07:46:28 +02:00
intel8x0m.c ALSA: pci: Drop superfluous ifdef CONFIG_PROC_FS 2015-05-29 08:00:06 +02:00
Kconfig ALSA: jack: Allow building the jack layer without input device 2016-02-23 09:03:07 +01:00
maestro3.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
Makefile ALSA: Add the driver for Digigram Lola PCI-e boards 2011-05-03 16:31:05 +02:00
rme32.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
rme96.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
sis7019.c ALSA: remove deprecated use of pci api 2015-04-16 12:19:52 +02:00
sis7019.h
sonicvibes.c Annotate hardware config module parameters in sound/pci/ 2017-04-20 12:02:32 +01:00
via82xx_modem.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
via82xx.c Annotate hardware config module parameters in sound/pci/ 2017-04-20 12:02:32 +01:00