linux_dsm_epyc7002/sound/oss
David Howells 232b0b0829 Annotate hardware config module parameters in sound/oss/
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/oss/.

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: Andrew Veliath <andrewtv@usa.net>
cc: alsa-devel@alsa-project.org
2017-04-20 12:02:32 +01:00
..
dmasound 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
.gitignore oss: remove maui_boot.h from .gitignore and dontdiff 2012-09-01 08:36:09 -07:00
ad1848_mixer.h
ad1848.c Annotate hardware config module parameters in sound/oss/ 2017-04-20 12:02:32 +01:00
ad1848.h
aedsp16.c Annotate hardware config module parameters in sound/oss/ 2017-04-20 12:02:32 +01:00
audio.c sound: Remove unnecessary semicolon 2012-10-06 16:47:53 +02:00
bin2hex.c
CHANGELOG
coproc.h
dev_table.c sound: Deparenthesize negative error returns 2015-03-24 11:41:37 +01:00
dev_table.h
dmabuf.c 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
hex2hex.c
kahlua.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
Kconfig sound/oss: remove VIRT_TO_BUS dependency 2015-12-09 14:40:51 +01:00
Makefile x86, platforms: Remove SGI Visual Workstation 2014-02-27 08:07:39 -08:00
midi_ctrl.h
midi_synth.c
midi_synth.h
midibuf.c 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
mpu401.c Annotate hardware config module parameters in sound/oss/ 2017-04-20 12:02:32 +01:00
mpu401.h
msnd_classic.c
msnd_classic.h
msnd_pinnacle.c Annotate hardware config module parameters in sound/oss/ 2017-04-20 12:02:32 +01:00
msnd_pinnacle.h
msnd.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
msnd.h
opl3_hw.h
opl3.c Annotate hardware config module parameters in sound/oss/ 2017-04-20 12:02:32 +01:00
os.h Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
pas2_card.c Annotate hardware config module parameters in sound/oss/ 2017-04-20 12:02:32 +01:00
pas2_midi.c
pas2_mixer.c sound/oss: Remove uncompilable DBG macro use 2014-04-04 18:20:10 +02:00
pas2_pcm.c sound/oss: Remove uncompilable DBG macro use 2014-04-04 18:20:10 +02:00
pas2.h sound: Move prototype declaration to header file oss/pas2.h from oss/pas2_card.c 2014-02-07 18:24:42 +01:00
pss.c Annotate hardware config module parameters in sound/oss/ 2017-04-20 12:02:32 +01:00
README.FIRST
sb_audio.c sound: oss/sb_audio: use swap() in sb_audio_close() 2015-06-12 20:46:29 +02:00
sb_card.c Annotate hardware config module parameters in sound/oss/ 2017-04-20 12:02:32 +01:00
sb_card.h
sb_common.c sound/oss: Remove uncompilable DBG macro use 2014-04-04 18:20:10 +02:00
sb_ess.c sound/sb_ess: white space cleanups 2015-02-25 20:08:21 +01:00
sb_ess.h
sb_midi.c sound/sb_midi: a couple indenting fixes 2015-02-25 20:08:27 +01:00
sb_mixer.c sound: Remove unnecessary semicolon 2012-10-06 16:47:53 +02:00
sb_mixer.h
sb.h
sequencer.c sound/oss: fix deadlock in sequencer_ioctl(SNDCTL_SEQ_OUTOFBAND) 2015-04-18 09:05:55 +02:00
sleep.h sound: oss: remove last sleep_on users 2014-01-14 16:12:07 +01:00
sound_calls.h
sound_config.h 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
sound_firmware.h sound: oss: Use kernel_read_file_from_path() for mod_firmware_load() 2016-07-26 10:38:03 +02:00
sound_timer.c sound: oss: avoid time_t usage 2016-06-17 16:31:19 +02:00
soundcard.c sound/oss: Remove uncompilable DBG macro use 2014-04-04 18:20:10 +02:00
soundvers.h
swarm_cs4297a.c 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
sys_timer.c sound: oss: avoid time_t usage 2016-06-17 16:31:19 +02:00
trix.c Annotate hardware config module parameters in sound/oss/ 2017-04-20 12:02:32 +01:00
tuning.h
uart401.c Annotate hardware config module parameters in sound/oss/ 2017-04-20 12:02:32 +01:00
uart6850.c Annotate hardware config module parameters in sound/oss/ 2017-04-20 12:02:32 +01:00
ulaw.h
v_midi.c sound: Deparenthesize negative error returns 2015-03-24 11:41:37 +01:00
v_midi.h
vidc_fill.S
vidc.c
vidc.h
waveartist.c Annotate hardware config module parameters in sound/oss/ 2017-04-20 12:02:32 +01:00
waveartist.h

The modular sound driver patches were funded by Red Hat Software 
(www.redhat.com). The sound driver here is thus a modified version of 
Hannu's code. Please bear that in mind when considering the appropriate
forums for bug reporting. 

Alan Cox