summaryrefslogtreecommitdiff
path: root/virt/kvm/Kconfig
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2018-06-17 12:16:21 +0300
committerMarc Zyngier <marc.zyngier@arm.com>2018-06-21 19:17:50 +0300
commit7ddfd3e0df29106c728dda2a6bd6591ee43a4e3c (patch)
tree881292b233bf620c55ae432583778e59a18f4591 /virt/kvm/Kconfig
parent47a91b7232fa25abc7e0b7fc1c69ae4f81061594 (diff)
downloadlinux-7ddfd3e0df29106c728dda2a6bd6591ee43a4e3c.tar.xz
KVM: Enforce error in ioctl for compat tasks when !KVM_COMPAT
The current behaviour of the compat ioctls is a bit odd. We provide a compat_ioctl method when KVM_COMPAT is set, and NULL otherwise. But NULL means that the normal, non-compat ioctl should be used directly for compat tasks, and there is no way to actually prevent a compat task from issueing KVM ioctls. This patch changes this behaviour, by always registering a compat_ioctl method, even if KVM_COMPAT is not selected. In that case, the callback will always return -EINVAL. Fixes: de8e5d744051568c8aad ("KVM: Disable compat ioctl for s390") Reported-by: Mark Rutland <mark.rutland@arm.com> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Acked-by: Radim Krčmář <rkrcmar@redhat.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'virt/kvm/Kconfig')
0 files changed, 0 insertions, 0 deletions