summary refs log tree commit diff stats
path: root/hw/net/virtio-net.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-11-30 23:45:22 -0800
committerPaolo Bonzini <pbonzini@redhat.com>2022-12-01 09:53:24 +0100
commit8218c048be1567db9dfd3cf1e19fbff76bce8cfd (patch)
treeec48a710457947bdec939b85cb449d3be7571d5f /hw/net/virtio-net.c
parent38e65936a8df1c9e7f5d19eae38a42133fab844b (diff)
downloadfocaccia-qemu-8218c048be1567db9dfd3cf1e19fbff76bce8cfd.tar.gz
focaccia-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/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions