summary refs log tree commit diff stats
path: root/scripts/qapi/gen.py
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2022-12-01 19:44:43 +0100
committerThomas Huth <thuth@redhat.com>2022-12-03 22:04:40 +0100
commit21be74a9a59d1e4954ebb59dcbee0fda0b19de00 (patch)
tree08c7b4fc054bcc9e9c79d92a4256bcfb6e2d7573 /scripts/qapi/gen.py
parent0f0a9e4e5c38c45ca7e6ac09cb36db21d42ec6dd (diff)
downloadfocaccia-qemu-21be74a9a59d1e4954ebb59dcbee0fda0b19de00.tar.gz
focaccia-qemu-21be74a9a59d1e4954ebb59dcbee0fda0b19de00.zip
target/s390x/tcg: Fix and improve the SACF instruction
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>
Diffstat (limited to 'scripts/qapi/gen.py')
0 files changed, 0 insertions, 0 deletions