forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: David Howells <[email protected]> cc: Jaroslav Kysela <[email protected]> cc: Takashi Iwai <[email protected]> cc: Andrew Veliath <[email protected]> cc: [email protected]
- Loading branch information
Showing
12 changed files
with
61 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1303,17 +1303,17 @@ static int __initdata mpu_irq = -1; | |
static int __initdata mss_base = -1; | ||
static int __initdata mpu_base = -1; | ||
|
||
module_param(io, int, 0); | ||
module_param_hw(io, int, ioport, 0); | ||
MODULE_PARM_DESC(io, "I/O base address (0x220 0x240)"); | ||
module_param(irq, int, 0); | ||
module_param_hw(irq, int, irq, 0); | ||
MODULE_PARM_DESC(irq, "IRQ line (5 7 9 10 11)"); | ||
module_param(dma, int, 0); | ||
module_param_hw(dma, int, dma, 0); | ||
MODULE_PARM_DESC(dma, "dma line (0 1 3)"); | ||
module_param(mpu_irq, int, 0); | ||
module_param_hw(mpu_irq, int, irq, 0); | ||
MODULE_PARM_DESC(mpu_irq, "MPU-401 IRQ line (5 7 9 10 0)"); | ||
module_param(mss_base, int, 0); | ||
module_param_hw(mss_base, int, ioport, 0); | ||
MODULE_PARM_DESC(mss_base, "MSS emulation I/O base address (0x530 0xE80)"); | ||
module_param(mpu_base, int, 0); | ||
module_param_hw(mpu_base, int, ioport, 0); | ||
MODULE_PARM_DESC(mpu_base,"MPU-401 I/O base address (0x300 0x310 0x320 0x330)"); | ||
MODULE_AUTHOR("Riccardo Facchetti <[email protected]>"); | ||
MODULE_DESCRIPTION("Audio Excel DSP 16 Driver Version " VERSION); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters