]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Set ESR_ELx.IL for injected undefined exceptions at EL2
authorFuad Tabba <tabba@google.com>
Thu, 18 Jun 2026 12:16:37 +0000 (13:16 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 22 Jun 2026 09:44:08 +0000 (10:44 +0100)
commitdaa71eca24fdfb43029830bd57ddaddf70c59b23
treeee8c9411fca7c0c7b75abf2b127d9cc331127537
parent265b58aba51b6aaaad81678fbc57fcdb2d4ed480
KVM: arm64: Set ESR_ELx.IL for injected undefined exceptions at EL2

inject_undef64() constructs an ESR with EC=0 (Unknown) but does not set
IL. The architecture mandates IL=1 for EC=0 unconditionally (ARM DDI
0487, ESR_ELx.IL description), so the injected syndrome is one that
conforming hardware cannot produce.

Set ESR_ELx_IL in the constructed syndrome.

Fixes: e5d40a5a97c1 ("KVM: arm64: pkvm: Add a generic synchronous exception injection primitive")
Reported-by: sashiko <sashiko@sashiko.dev>
Signed-off-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20260618121643.4105064-2-tabba@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/nvhe/sys_regs.c