]> git.baikalelectronics.ru Git - kernel.git/commit
x86/sev-es: Correctly track IRQ states in runtime #VC handler
authorJoerg Roedel <jroedel@suse.de>
Wed, 3 Mar 2021 14:17:15 +0000 (15:17 +0100)
committerBorislav Petkov <bp@suse.de>
Tue, 9 Mar 2021 11:33:46 +0000 (12:33 +0100)
commite4ad34399bb13418842f1bedcfb0baa0ab5e8d07
treea37b3d0c250798e47a5b56e2139e279919d92200
parenta8de828b378dc74eeb6f0a6cc90bfa744c3eabbc
x86/sev-es: Correctly track IRQ states in runtime #VC handler

Call irqentry_nmi_enter()/irqentry_nmi_exit() in the #VC handler to
correctly track the IRQ state during its execution.

Fixes: 6caf56f2db409 ("x86/sev-es: Add a Runtime #VC Exception Handler")
Reported-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: stable@vger.kernel.org # v5.10+
Link: https://lkml.kernel.org/r/20210303141716.29223-5-joro@8bytes.org
arch/x86/kernel/sev-es.c