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

2021-01-08 Thread Hyunwook (Wooky) Baek
Hi Borisslav, My sincere apologies for it. We actually tested the patch but I made a bad mistake while generating the patch file to email. I will send a PATCH V2 after testing the email version patch file from the scratch. Regards, Wooky On Fri, Jan 8, 2021 at 9:20 AM Borislav Petkov wrote: > >

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

2021-01-08 Thread Borislav Petkov
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 ultimately lead to a kernel panic. > > Signed-o

[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/kernel/sev-