]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Reject non compliant SMCCC function calls in pKVM
authorSebastian Ene <sebastianene@google.com>
Wed, 8 Apr 2026 11:41:18 +0000 (11:41 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 24 Apr 2026 11:03:57 +0000 (12:03 +0100)
commit480ea48cad873b49a1fabd07c0847c3cf1c32286
tree41b172c563ede9bc8b15a18fccea7f071441c607
parenta0e6ae45af17e8b27958830595799c702ffbab8d
KVM: arm64: Reject non compliant SMCCC function calls in pKVM

Prevent the propagation of a function-id that has the top bits set since
this is not compliant with the SMCCC spec and can overlap with the
already known function-id decoders. (eg. if we invoke an smc with
0xffffffffc4000012 it will be decoded as a PSCI reset call). Instead,
make it clear that we don't support it and return an error.

Signed-off-by: Sebastian Ene <sebastianene@google.com>
Link: https://patch.msgid.link/20260408114118.422604-1-sebastianene@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/nvhe/hyp-main.c