Re: [PATCH] mtd: phram: Add the kernel lock down check
From: Miquel Raynal
Date: Thu Dec 05 2024 - 05:47:27 EST
On 14/11/2024 at 16:44:41 +01, Takashi Iwai <tiwai@xxxxxxx> 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@xxxxxxxx>
> Suggested-by: Fabian Vogt <fvogt@xxxxxxxx>
> Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
Applied to mtd/next.
Thanks,
Miquèl