Re: [PATCH] KVM: arm64: Don't WARN on an unknown VM ioctl in protected mode
From: Oliver Upton
Date: Tue Sep 15 2026 - 18:26:39 EST
On Mon, 14 Sep 2026 10:38:38 +0100, Fuad Tabba wrote:
> kvm_pkvm_ioctl_allowed() WARNs when kvm_get_cap_for_kvm_ioctl() doesn't
> find the ioctl number in vm_ioctl_caps[], and kvm_arch_vm_ioctl() calls
> it for every number the generic code doesn't handle, so
> ioctl(vm_fd, 0xdeadbeef) from userspace taints a pKVM host and panics it
> under panic_on_warn. The lookup is fed userspace input: return false,
> and userspace gets the -EINVAL kvm_arch_vm_ioctl() returns for that
> number on a host without pKVM.
>
> [...]
Applied to fixes, thanks!
[1/1] KVM: arm64: Don't WARN on an unknown VM ioctl in protected mode
https://git.kernel.org/kvmarm/kvmarm/c/49d9d295d69d
--
Best,
Oliver