[PATCH] mtd: phram: Add the kernel lock down check

Miquel Raynal miquel.raynal at bootlin.com
Thu Dec 5 02:45:32 PST 2024


On 14/11/2024 at 16:44:41 +01, Takashi Iwai <tiwai at suse.de> wrote:

> 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 <fvogt at suse.com>
> Suggested-by: Fabian Vogt <fvogt at suse.com>
> Signed-off-by: Takashi Iwai <tiwai at suse.de>

Applied to mtd/next.

Thanks,
Miquèl



More information about the linux-mtd mailing list