diff options
| author | Takashi Iwai <[email protected]> | 2024-11-14 15:44:41 +0000 |
|---|---|---|
| committer | Miquel Raynal <[email protected]> | 2024-12-05 10:11:44 +0000 |
| commit | b3c782868ecebd0c1661a6aa2bdc84cd3cbb1ef3 (patch) | |
| tree | 94f169e99fa5e5af75500c459296b26bedee9bf0 /scripts/generate_rust_target.rs | |
| parent | mtd: phram: only call platform_driver_unregister if phram_setup fails (diff) | |
| download | kernel-b3c782868ecebd0c1661a6aa2bdc84cd3cbb1ef3.tar.gz kernel-b3c782868ecebd0c1661a6aa2bdc84cd3cbb1ef3.zip | |
mtd: phram: Add the kernel lock down check
The phram MTD driver may map any memory pages no matter whether it's
reserved or whatever used for systems, which basically allows user
bypassing the lock down.
Add the check and abort the probe if the kernel is locked down for
LOCKDOWN_DEV_MEM.
Reported-by: Fabian Vogt <[email protected]>
Suggested-by: Fabian Vogt <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Acked-by: Richard Weinberger <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions
