aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorJoerg Roedel <[email protected]>2021-03-03 15:17:13 +0100
committerBorislav Petkov <[email protected]>2021-03-09 12:26:26 +0100
commit545ac14c16b5dbd909d5a90ddf5b5a629a40fa94 (patch)
tree180b58a5e4ddb5386be43f5fd8d473d9c5955e9d /lib/mpi/mpiutil.c
parent78a81d88f60ba773cbe890205e1ee67f00502948 (diff)
x86/sev-es: Check regs->sp is trusted before adjusting #VC IST stack
The code in the NMI handler to adjust the #VC handler IST stack is needed in case an NMI hits when the #VC handler is still using its IST stack. But the check for this condition also needs to look if the regs->sp value is trusted, meaning it was not set by user-space. Extend the check to not use regs->sp when the NMI interrupted user-space code or the SYSCALL gap. Fixes: 315562c9af3d5 ("x86/sev-es: Adjust #VC IST Stack on entering NMI handler") Reported-by: Andy Lutomirski <[email protected]> Signed-off-by: Joerg Roedel <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Cc: [email protected] # 5.10+ Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions