mirror of https://gitlab.com/qemu-project/qemu
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Indirect branches to addresses taken from registers go through address
generation, e.g., for BRANCH ON CONDITION Principles of Operation says:
In the RR format, the contents of general register R2 are used to
generate the branch address
QEMU uses r2_nz handler for the respective register operands. Currently
it does not zero out extra bits in 24- and 31-bit addressing modes as
required by address generation. The very frequently used
s390x_tr_init_disas_context() function has a workaround for this,
but the code for saving an old PSW during an interrupt does not.
Add the missing masking to r2_nz. Enforce PSW validity by replacing the
workaround with an assertion.
Reported-by: Thomas Weißschuh <linux@weissschuh.net>
Reported-by: Heiko Carstens <hca@linux.ibm.com>
Link: https://lore.kernel.org/lkml/ab3131a2-c42a-47ff-bf03-e9f68ac053c0@t-8ch.de/
Cc: qemu-stable@nongnu.org
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Tested-by: Thomas Weißschuh <linux@weissschuh.net>
Message-ID: <20251016175954.41153-4-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
|
5 days ago | |
|---|---|---|
| .. | ||
| kvm | 3 weeks ago | |
| tcg | 5 days ago | |
| Kconfig | 1 year ago | |
| arch_dump.c | 11 months ago | |
| cpu-dump.c | 11 months ago | |
| cpu-param.h | 7 months ago | |
| cpu-qom.h | 2 years ago | |
| cpu-system.c | 2 months ago | |
| cpu.c | 5 months ago | |
| cpu.h | 6 months ago | |
| cpu_features.c | 11 months ago | |
| cpu_features.h | 11 months ago | |
| cpu_features_def.h | 5 years ago | |
| cpu_features_def.h.inc | 4 months ago | |
| cpu_models.c | 6 months ago | |
| cpu_models.h | 7 months ago | |
| cpu_models_system.c | 4 months ago | |
| cpu_models_user.c | 4 years ago | |
| diag.c | 11 months ago | |
| gdbstub.c | 8 months ago | |
| gen-features.c | 5 months ago | |
| helper.c | 4 weeks ago | |
| helper.h | 1 year ago | |
| interrupt.c | 6 months ago | |
| ioinst.c | 5 months ago | |
| machine.c | 11 months ago | |
| meson.build | 11 months ago | |
| mmu_helper.c | 3 weeks ago | |
| s390x-internal.h | 4 weeks ago | |
| sigp.c | 4 weeks ago | |
| trace-events | 11 months ago | |
| trace.h | 5 years ago | |