diff options
author | Richard Henderson | 2022-12-01 08:45:22 +0100 |
---|---|---|
committer | Paolo Bonzini | 2022-12-01 09:53:24 +0100 |
commit | 8218c048be1567db9dfd3cf1e19fbff76bce8cfd (patch) | |
tree | ec48a710457947bdec939b85cb449d3be7571d5f /hw/input/adb-kbd.c | |
parent | target/i386: allow MMX instructions with CR4.OSFXSR=0 (diff) | |
download | qemu-8218c048be1567db9dfd3cf1e19fbff76bce8cfd.tar.gz qemu-8218c048be1567db9dfd3cf1e19fbff76bce8cfd.tar.xz qemu-8218c048be1567db9dfd3cf1e19fbff76bce8cfd.zip |
target/i386: Always completely initialize TranslateFault
In get_physical_address, the canonical address check failed to
set TranslateFault.stage2, which resulted in an uninitialized
read from the struct when reporting the fault in x86_cpu_tlb_fill.
Adjust all error paths to use structure assignment so that the
entire struct is always initialized.
Reported-by: Daniel Hoffman <dhoff749@gmail.com>
Fixes: 9bbcf372193a ("target/i386: Reorg GET_HPHYS")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20221201074522.178498-1-richard.henderson@linaro.org>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1324
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/input/adb-kbd.c')
0 files changed, 0 insertions, 0 deletions