[tip: x86/urgent] x86/sev-es: Handle string port IO to kernel memory properly

2021-01-11 Thread tip-bot2 for Hyunwook (Wooky) Baek
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 7024f60d655272bd2ca1d3a4c9e0a63319b1eea1 Gitweb: https://git.kernel.org/tip/7024f60d655272bd2ca1d3a4c9e0a63319b1eea1 Author:Hyunwook (Wooky) Baek AuthorDate:Sat, 09 Jan 2021 23:11:02 -08:00

[tip: x86/seves] x86/sev-es: Handle string port IO to kernel memory properly

2021-01-11 Thread tip-bot2 for Hyunwook (Wooky) Baek
The following commit has been merged into the x86/seves branch of tip: Commit-ID: 36648d64ac3420b3cfa741b12b14633fad9651e4 Gitweb: https://git.kernel.org/tip/36648d64ac3420b3cfa741b12b14633fad9651e4 Author:Hyunwook (Wooky) Baek AuthorDate:Sat, 09 Jan 2021 23:11:02 -08:00

[PATCH V2] x86/sev-es: Fix SEV-ES #VC handler for string port IO

2021-01-09 Thread Hyunwook (Wooky) Baek
Don't assume dest/source buffers are userspace addresses when manually copying data for string I/O or MOVS MMIO, as {get,put}_user() will fail if handed a kernel address and ultimately lead to a kernel panic. Signed-off-by: Hyunwook (Wooky) Baek Acked-by: David Rientjes --- This pat

Re: [PATCH] x86/sev-es: Fix SEV-ES #VC handler for string port IO

2021-01-08 Thread Hyunwook (Wooky) Baek
: > > On Thu, Jan 07, 2021 at 06:51:07PM -0800, Hyunwook (Wooky) Baek wrote: > > Don't assume dest/source buffers are userspace addresses when manually > > copying data for string I/O or MOVS MMIO, as {get,put}_user() will fail > > if handed a kernel address and ulti

[PATCH] x86/sev-es: Fix SEV-ES #VC handler for string port IO

2021-01-07 Thread Hyunwook (Wooky) Baek
Don't assume dest/source buffers are userspace addresses when manually copying data for string I/O or MOVS MMIO, as {get,put}_user() will fail if handed a kernel address and ultimately lead to a kernel panic. Signed-off-by: Hyunwook (Wooky) Baek Acked-by: David Rientjes --- arch/x86/kerne

MOK variable config table: Kernel Panic in SEV-enabled VMs

2020-12-14 Thread Hyunwook (Wooky) Baek
Hello, We found SEV-enabled VMs crash with the latest CentOS and Rhel images in Google Cloud (centos-8-v20201112 and rhel-8-v20201112), because the MOK var table patch (https://lkml.org/lkml/2020/8/25/1344) is making a #GP with SEV-enabled VMs, but the patch is backported to those images. It looks