All of lore.kernel.org
 help / color / mirror / Atom feed
* Backport f79936545fb12 ("x86/sev-es: Allow copy_from_kernel_nofault() in earlier boot")
@ 2023-11-10 17:05 Adam Dunlap
  2023-11-12 18:45 ` Sasha Levin
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Dunlap @ 2023-11-10 17:05 UTC (permalink / raw)
  To: stable, Peter Gonda, Jacob Xu, Dave Hansen

commit f79936545fb122856bd78b189d3c7ee59928c751 upstream.

This patch fixes a boot failure that happens with VMs running with
SEV-ES or SEV-SNP when the guest kernel is compiled with a gcc version
past 12.3 (or possibly earlier) due to undefined behavior. As far as I
know, the UB has existed ever since SEV-ES guest support was merged in
(I believe 5.9), but only started causing boot failures with the
updated compiler. Thus, I propose backporting this patch to stable
branches since 5.9.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Backport f79936545fb12 ("x86/sev-es: Allow copy_from_kernel_nofault() in earlier boot")
  2023-11-10 17:05 Backport f79936545fb12 ("x86/sev-es: Allow copy_from_kernel_nofault() in earlier boot") Adam Dunlap
@ 2023-11-12 18:45 ` Sasha Levin
  0 siblings, 0 replies; 2+ messages in thread
From: Sasha Levin @ 2023-11-12 18:45 UTC (permalink / raw)
  To: Adam Dunlap; +Cc: stable, Peter Gonda, Jacob Xu, Dave Hansen

On Fri, Nov 10, 2023 at 09:05:19AM -0800, Adam Dunlap wrote:
>commit f79936545fb122856bd78b189d3c7ee59928c751 upstream.
>
>This patch fixes a boot failure that happens with VMs running with
>SEV-ES or SEV-SNP when the guest kernel is compiled with a gcc version
>past 12.3 (or possibly earlier) due to undefined behavior. As far as I
>know, the UB has existed ever since SEV-ES guest support was merged in
>(I believe 5.9), but only started causing boot failures with the
>updated compiler. Thus, I propose backporting this patch to stable
>branches since 5.9.

Looks like its already queued for 5.15+, and needed some minor massaging
to get to 5.10.

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-12 18:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-10 17:05 Backport f79936545fb12 ("x86/sev-es: Allow copy_from_kernel_nofault() in earlier boot") Adam Dunlap
2023-11-12 18:45 ` Sasha Levin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.