Re: [PATCH AUTOSEL 6.2 2/6] efi: efivars: prevent double registration

From: Sasha Levin
Date: Wed Mar 01 2023 - 13:59:15 EST


On Wed, Mar 01, 2023 at 05:31:15PM +0100, Ard Biesheuvel wrote:
On Wed, 1 Mar 2023 at 17:29, Sasha Levin <sashal@xxxxxxxxxx> wrote:

From: Johan Hovold <johan+linaro@xxxxxxxxxx>

[ Upstream commit 0217a40d7ba6e71d7f3422fbe89b436e8ee7ece7 ]

Add the missing sanity check to efivars_register() so that it is no
longer possible to override an already registered set of efivar ops
(without first deregistering them).

This can help debug initialisation ordering issues where drivers have so
far unknowingly been relying on overriding the generic ops.

Signed-off-by: Johan Hovold <johan+linaro@xxxxxxxxxx>
Signed-off-by: Ard Biesheuvel <ardb@xxxxxxxxxx>
Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

NAK this is not a bugfix.

Ack, I'll drop it. Thanks!

--
Thanks,
Sasha