Revision 21be74a9a59d1e4954ebb59dcbee0fda0b19de00 authored by Thomas Huth on 01 December 2022, 18:44:43 UTC, committed by Thomas Huth on 03 December 2022, 21:04:40 UTC
The SET ADDRESS SPACE CONTROL FAST instruction is not privileged, it can be
used from problem space, too. Just the switching to the home address space
is privileged and should still generate a privilege exception. This bug is
e.g. causing programs like Java that use the "getcpu" vdso kernel function
to crash (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990417#26 ).

While we're at it, also check if DAT is not enabled. In that case the
instruction is supposed to generate a special operation exception.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/655
Message-Id: <20221201184443.136355-1-thuth@redhat.com>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
1 parent 0f0a9e4
History
File Mode Size
tpm
Kconfig -rw-r--r-- 19 bytes
confidential-guest-support.c -rw-r--r-- 751 bytes
cryptodev-builtin.c -rw-r--r-- 18.6 KB
cryptodev-lkcf.c -rw-r--r-- 19.8 KB
cryptodev-vhost-user.c -rw-r--r-- 11.9 KB
cryptodev-vhost.c -rw-r--r-- 8.8 KB
cryptodev.c -rw-r--r-- 6.9 KB
dbus-vmstate.c -rw-r--r-- 14.6 KB
dbus-vmstate1.xml -rw-r--r-- 1.4 KB
hostmem-epc.c -rw-r--r-- 2.0 KB
hostmem-file.c -rw-r--r-- 6.4 KB
hostmem-memfd.c -rw-r--r-- 4.8 KB
hostmem-ram.c -rw-r--r-- 1.4 KB
hostmem.c -rw-r--r-- 17.3 KB
meson.build -rw-r--r-- 926 bytes
rng-builtin.c -rw-r--r-- 1.8 KB
rng-egd.c -rw-r--r-- 4.1 KB
rng-random.c -rw-r--r-- 3.7 KB
rng.c -rw-r--r-- 3.1 KB
trace-events -rw-r--r-- 248 bytes
trace.h -rw-r--r-- 34 bytes
vhost-user.c -rw-r--r-- 4.9 KB

back to top