Commit 5861d34d authored by Dmytro Maluka's avatar Dmytro Maluka Committed by Tomasz Nowicki
Browse files

ANDROID: pkvm: x86: Add ENDBR to exception handlers



In line with commit 8f93402b ("x86/ibt,entry: Sprinkle ENDBR dust")
add ENDBR to entry points of pKVM's exception handlers.

Without this, kernel panics with "Missing ENDBR: nmi_handler+0x0/0x40"
whenever a NMI occurs (unless CONFIG_X86_KERNEL_IBT is disabled).

Signed-off-by: default avatarDmytro Maluka <dmaluka@google.com>

Bug: 349990461
Bug: 353937603
Test: kernel doesn't panic when NMI occurs, e.g. in cases when pKVM
prints lots of debugs to dmesg (e.g. due to host repeated attempting
to access a pVM memory) and dmesg is redirected to a serial console,
causing system stalls.

Change-Id: I8fad1782eb98bc8ad7b2c5c105f1351b11631207
Signed-off-by: default avatarDmytro Maluka <dmaluka@google.com>
parent b95babd4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment