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

Richard Weinberger richard at nod.at
Thu Nov 14 07:50:27 PST 2024


----- Ursprüngliche Mail -----
> Von: "Takashi Iwai" <tiwai at suse.de>
> An: "linux-mtd" <linux-mtd at lists.infradead.org>
> CC: "joern" <joern at lazybastard.org>, "Miquel Raynal" <miquel.raynal at bootlin.com>, "richard" <richard at nod.at>, "Vignesh
> Raghavendra" <vigneshr at ti.com>, "linux-kernel" <linux-kernel at vger.kernel.org>, "Fabian Vogt" <fvogt at suse.com>
> Gesendet: Donnerstag, 14. November 2024 16:44:41
> Betreff: [PATCH] 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 <fvogt at suse.com>
> Suggested-by: Fabian Vogt <fvogt at suse.com>
> Signed-off-by: Takashi Iwai <tiwai at suse.de>

Good catch!

Acked-by: Richard Weinberger <richard at nod.at>

Thanks,
//richard



More information about the linux-mtd mailing list