aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorHyunwook (Wooky) Baek <[email protected]>2021-01-09 23:11:02 -0800
committerBorislav Petkov <[email protected]>2021-01-11 20:01:52 +0100
commit7024f60d655272bd2ca1d3a4c9e0a63319b1eea1 (patch)
tree3bf2c1c34dbeec98425e8da054e5e7410dc61438 /tools/perf/scripts/python/exported-sql-viewer.py
parent7c53f6b671f4aba70ff15e1b05148b10d58c2837 (diff)
x86/sev-es: Handle string port IO to kernel memory properly
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. When invoking INSB/OUTSB instructions in kernel space in a SEV-ES-enabled VM, the kernel crashes with the following message: "SEV-ES: Unsupported exception in #VC instruction emulation - can't continue" Handle that case properly. [ bp: Massage commit message. ] Fixes: f980f9c31a92 ("x86/sev-es: Compile early handler code into kernel image") Signed-off-by: Hyunwook (Wooky) Baek <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Acked-by: David Rientjes <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions