diff options
author | 2019-11-13 16:05:23 +0000 | |
---|---|---|
committer | 2019-11-13 17:13:12 +0100 | |
commit | b9876e6de123adb52ac693bac08c493e989bd93e (patch) | |
tree | ce6d3de7b302079d4b624276a18007a9118ba838 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: X86: Reset the three MSR list number variables to 0 in kvm_init_msr_list() (diff) | |
download | linux-rng-b9876e6de123adb52ac693bac08c493e989bd93e.tar.xz linux-rng-b9876e6de123adb52ac693bac08c493e989bd93e.zip |
KVM: Forbid /dev/kvm being opened by a compat task when CONFIG_KVM_COMPAT=n
On a system without KVM_COMPAT, we prevent IOCTLs from being issued
by a compat task. Although this prevents most silly things from
happening, it can still confuse a 32bit userspace that is able
to open the kvm device (the qemu test suite seems to be pretty
mad with this behaviour).
Take a more radical approach and return a -ENODEV to the compat
task.
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions