android_kernel_samsung_sm8650/arch/x86
Joerg Roedel 62b97630d4 UPSTREAM: x86/sev: Check IOBM for IOIO exceptions from user-space
Upstream commit: b9cb9c45583b911e0db71d09caa6b56469eb2bdf

Check the IO permission bitmap (if present) before emulating IOIO #VC
exceptions for user-space. These permissions are checked by hardware
already before the #VC is raised, but due to the VC-handler decoding
race it needs to be checked again in software.

Bug: 309733863
Fixes: 25189d08e5 ("x86/sev-es: Add support for handling IOIO exceptions")
Reported-by: Tom Dohrmann <erbse.13@gmx.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Tested-by: Tom Dohrmann <erbse.13@gmx.de>
Cc: <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit def94eb9a8)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: Ia520acc67da21353148fd07a3a8e48ee8a97d364
2023-12-12 18:32:28 +00:00
..
boot UPSTREAM: x86/sev: Check IOBM for IOIO exceptions from user-space 2023-12-12 18:32:28 +00:00
coco x86/tdx: Fix race between set_memory_encrypted() and load_unaligned_zeropad() 2023-07-19 16:21:00 +02:00
configs ANDROID: gki_defconfig: Enable CONFIG_BLK_CGROUP_IOPRIO 2023-09-28 11:30:27 -07:00
crypto crypto: x86/ghash - fix unaligned access in ghash_setkey() 2023-03-10 09:32:51 +01:00
entry Merge 6.1.46 into android14-6.1-lts 2023-09-13 19:34:21 +00:00
events perf/x86/amd: Do not WARN() on every IRQ 2023-10-10 22:00:41 +02:00
hyperv x86/hyperv: Disable IBT when hypercall page lacks ENDBR instruction 2023-08-11 12:08:21 +02:00
ia32 x86: Remove a.out support 2022-04-11 18:04:27 +02:00
include Merge 6.1.56 into android14-6.1-lts 2023-10-27 09:17:04 +00:00
kernel UPSTREAM: x86/sev: Check IOBM for IOIO exceptions from user-space 2023-12-12 18:32:28 +00:00
kvm KVM: x86/mmu: Do not filter address spaces in for_each_tdp_mmu_root_yield_safe() 2023-10-06 14:57:00 +02:00
lib x86/retpoline,kprobes: Fix position of thunk sections with CONFIG_LTO_CLANG 2023-08-26 13:27:00 +02:00
math-emu x86/32: Remove lazy GS macros 2022-04-14 14:09:43 +02:00
mm This is the 6.1.53 stable release 2023-09-18 09:57:37 +00:00
net bpf: Remove prog->active check for bpf_lsm and bpf_iter 2023-09-19 12:28:03 +02:00
pci x86/pci/xen: populate MSI sysfs entries 2023-05-30 14:03:22 +01:00
platform x86/efi: Make efi_set_virtual_address_map IBT safe 2023-07-19 16:21:45 +02:00
power x86/pm: Add enumeration check before spec MSRs save/restore setup 2022-11-21 14:16:16 +01:00
purgatory x86/purgatory: Remove LTO flags 2023-09-23 11:11:09 +02:00
ras
realmode x86/boot: Skip realmode init code when running as Xen PV guest 2022-12-31 13:32:16 +01:00
tools x86/tools/relocs: Ignore __kcfi_typeid_ relocations 2022-09-26 10:13:15 -07:00
um UPSTREAM: mm: replace vma->vm_flags direct modifications with modifier calls 2023-06-07 14:24:57 +00:00
video
virt/vmx/tdx x86/tdx: Provide common base for SEAMCALL and TDCALL C wrappers 2022-04-07 08:27:50 -07:00
xen x86/xen: Fix secondary processors' FPU initialization 2023-08-08 20:03:49 +02:00
.gitignore x86/purgatory: Omit use of bin2c 2022-07-25 10:32:32 +02:00
Kbuild x86/cc: Move arch/x86/{kernel/cc_platform.c => coco/core.c} 2022-02-23 18:25:58 +01:00
Kconfig Merge 6.1.44 into android14-6.1-lts 2023-09-12 15:09:42 +00:00
Kconfig.assembler
Kconfig.cpu
Kconfig.debug arch: make TRACE_IRQFLAGS_NMI_SUPPORT generic 2022-06-23 15:39:21 +01:00
Makefile This is the 6.1.11 stable release 2023-02-09 13:29:55 +00:00
Makefile_32.cpu
Makefile.um UPSTREAM: um: Only disable SSE on clang to work around old GCC bugs 2023-08-30 12:58:15 +00:00