Re: [PATCH 1/2] x86/pat: fix x86_has_pat_wp()

From: Dave Hansen
Date: Mon Jun 20 2022 - 11:27:50 EST


On 6/20/22 03:41, Juergen Gross wrote:
>> But I'm only guessing - this needs a *lot* more elaboration and
>> explanation why exactly this is needed.
>
> I will correct the code and update the commit message.

It would also be great to cover the end-user-visible impact of the bug
and the fix. It _looks_ like it will probably only affect an SEV
system's ability to read some EFI data. That will presumably be pretty
bad because it ends up reading from an encrypted mapping instead of a
decrypted one.

The

pr_warn("failed to early memremap...

is (counterintuitively) what is wanted here.

Right?