Re: [PATCH AUTOSEL 6.1 07/29] efi: pstore: Return proper errors on UEFI failures

From: Guilherme G. Piccoli
Date: Mon Jun 17 2024 - 12:53:39 EST


On 17/06/2024 10:24, Sasha Levin wrote:
> From: "Guilherme G. Piccoli" <gpiccoli@xxxxxxxxxx>
>
> [ Upstream commit 7c23b186ab892088f76a3ad9dbff1685ffe2e832 ]
>
> Right now efi-pstore either returns 0 (success) or -EIO; but we
> do have a function to convert UEFI errors in different standard
> error codes, helping to narrow down potential issues more accurately.
>
> So, let's use this helper here.
>
> Signed-off-by: Guilherme G. Piccoli <gpiccoli@xxxxxxxxxx>
> Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>
> Signed-off-by: Ard Biesheuvel <ardb@xxxxxxxxxx>
> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

Following Ard's comment for the other releases, let's not backport this one.

Thanks,


Guilherme