assert issue locates in hw/net/vmxnet3.c:1793:vmxnet3_io_bar1_write: code should not be reach
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
Hello,
I found an assertion failure in hw/net/
This was found in latest version 5.2.0.
my reproduced is as follows:
cat << EOF | ./qemu-
-device vmxnet3 \
-display none -nodefaults -qtest stdio
outl 0xcf8 0x80001014
outl 0xcfc 0xf0001000
outl 0xcf8 0x80001018
outl 0xcf8 0x80001004
outw 0xcfc 0x7
writel 0x5c000 0xbabefee1
writel 0x5c028 0x5d000
writel 0x5c03c 0x01010101
writel 0x5d038 0xe0000000
writel 0xf0001038 1
EOF
Backtrace is as follows:
#0 0x00007f6f641a5f47 in __GI_raise (sig=sig@entry=6) at ../sysdeps/
#1 0x00007f6f641a78b1 in __GI_abort () at abort.c:79
#2 0x00007f6f67922315 in g_assertion_message () at /usr/lib/
#3 0x00007f6f6792237a in g_assertion_
#4 0x000055edcaec96af in vmxnet3_
#5 0x000055edcbd294c6 in memory_
#6 0x000055edcbd299be in access_
#7 0x000055edcbd35ef2 in memory_
#8 0x000055edcba1e554 in flatview_
#9 0x000055edcba1e8c5 in flatview_write (fv=0x6060000619a0, addr=4026535992, attrs=..., buf=0x7fffd52bae80, len=4) at ../softmmu/
#10 0x000055edcba1f391 in address_space_write (as=0x608000002620, addr=4026535992, attrs=..., buf=0x7fffd52bae80, len=4) at ../softmmu/
#11 0x000055edcbaff8d3 in qtest_process_
#12 0x000055edcbb04aa1 in qtest_process_inbuf (chr=0x55edd03ff4a0 <qtest_chr>, inbuf=0x6190000
#13 0x000055edcbb04bcc in qtest_read (opaque=
#14 0x000055edcbe73742 in qemu_chr_
#15 0x000055edcbe73820 in qemu_chr_be_write (s=0x60f000002110, buf=0x7fffd52bbe30 "outl 0xcf8 0x80001014\noutl 0xcfc 0xf0001000\noutl 0xcf8 0x80001018\noutl 0xcf8 0x80001004\noutw 0xcfc 0x7\nwritel 0x5c000 0xbabefee1\nwritel 0x5c028 0x5d000\nwritel 0x5c03c 0x01010101\nwritel 0x5d038 0xe0000"..., len=225) at ../chardev/
#16 0x000055edcbe9188e in fd_chr_read (chan=0x6080000
#17 0x000055edcbe2379d in qio_channel_
#18 0x00007f6f678fb285 in g_main_
#19 0x000055edcc50b503 in glib_pollfds_poll () at ../util/
#20 0x000055edcc50b68b in os_host_
#21 0x000055edcc50b9a5 in main_loop_wait (nonblocking=0) at ../util/
#22 0x000055edcbd8805b in qemu_main_loop () at ../softmmu/
#23 0x000055edcab67e69 in main (argc=8, argv=0x7fffd52b
#24 0x00007f6f64188b97 in __libc_start_main (main=0x55edcab
#25 0x000055edcab67d4a in _start ()
summary: |
assert issue locates in hw/net/vmxnet3.c:1793:vmxnet3_io_bar1_write: - code should not be reache + code should not be reach |
Cc'ing Dmitry Fleytman
On 1/31/21 5:29 AM, Gaoning Pan wrote: vmxnet3. c:1793 system- x86_64 \ unix/sysv/ linux/raise. c:51 x86_64- linux-gnu/ libglib- 2.0.so. 0 message_ expr () at /usr/lib/ x86_64- linux-gnu/ libglib- 2.0.so. 0 io_bar1_ write (opaque= 0x628000004100, addr=56, val=1, size=4) at ../hw/net/ vmxnet3. c:1793 region_ write_accessor (mr=0x628000006b00, addr=56, value=0x7fffd52 ba848, size=4, shift=0, mask=4294967295, attrs=...) at ../softmmu/ memory. c:491 with_adjusted_ size (addr=56, value=0x7fffd52 ba848, size=4, access_size_min=4, access_size_max=4, access_ fn=0x55edcbd291 8c <memory_ region_ write_accessor> , mr=0x628000006b00, attrs=...) at ../softmmu/ memory. c:552 region_ dispatch_ write (mr=0x628000006b00, addr=56, data=1, op=MO_32, attrs=...) at ../softmmu/ memory. c:1501 write_continue (fv=0x6060000619a0, addr=4026535992, attrs=..., ptr=0x7fffd52bae80, len=4, addr1=56, l=4, mr=0x628000006b00) at ../softmmu/ physmem. c:2759 physmem. c:2799 physmem. c:2891 command (chr=0x55edd03ff4a0 <qtest_chr>, words=0x6030000 7f450) at ../softmmu/ qtest.c: 534 0fd00) at ../softmmu/ qtest.c: 797 0x55edd03ff4a0 <qtest_chr>, buf=0x7fffd52bbe30 "outl 0xcf8 0x80001014\noutl 0xcfc 0xf0001000\noutl 0xcf8 0x80001018\noutl 0xcf8 0x80001004\noutw 0xcfc 0x7\nwritel 0x5c000 0xbabefee1\nwritel 0x5c028 0x5d000\nwritel 0x5c03c 0x01010101\nwritel 0x5d038 0xe0000"..., size=225) at ../softmmu/ qtest.c: 809 be_write_ impl (s=0x60f000002110, buf=0x7fffd52bbe30 "outl 0xcf8 0x80001014\noutl 0xcfc 0xf0001000\noutl 0xcf8 0x80001018\noutl 0xcf8 0x80001004\noutw 0xcfc 0x7\nwritel 0x5c000 0xbabefee1\nwritel 0x5c028 0x5d000\nwritel 0x5c03c 0x01010101\nwritel 0x5d038 0xe0000"..., len=225) at ../chardev/ char.c: 201
> Public bug reported:
>
> Hello,
>
> I found an assertion failure in hw/net/
>
> This was found in latest version 5.2.0.
>
> my reproduced is as follows:
>
>
> cat << EOF | ./qemu-
> -device vmxnet3 \
> -display none -nodefaults -qtest stdio
> outl 0xcf8 0x80001014
> outl 0xcfc 0xf0001000
> outl 0xcf8 0x80001018
> outl 0xcf8 0x80001004
> outw 0xcfc 0x7
> writel 0x5c000 0xbabefee1
> writel 0x5c028 0x5d000
> writel 0x5c03c 0x01010101
> writel 0x5d038 0xe0000000
> writel 0xf0001038 1
> EOF
>
>
> Backtrace is as follows:
> #0 0x00007f6f641a5f47 in __GI_raise (sig=sig@entry=6) at ../sysdeps/
> #1 0x00007f6f641a78b1 in __GI_abort () at abort.c:79
> #2 0x00007f6f67922315 in g_assertion_message () at /usr/lib/
> #3 0x00007f6f6792237a in g_assertion_
> #4 0x000055edcaec96af in vmxnet3_
> #5 0x000055edcbd294c6 in memory_
> #6 0x000055edcbd299be in access_
> #7 0x000055edcbd35ef2 in memory_
> #8 0x000055edcba1e554 in flatview_
> #9 0x000055edcba1e8c5 in flatview_write (fv=0x6060000619a0, addr=4026535992, attrs=..., buf=0x7fffd52bae80, len=4) at ../softmmu/
> #10 0x000055edcba1f391 in address_space_write (as=0x608000002620, addr=4026535992, attrs=..., buf=0x7fffd52bae80, len=4) at ../softmmu/
> #11 0x000055edcbaff8d3 in qtest_process_
> #12 0x000055edcbb04aa1 in qtest_process_inbuf (chr=0x55edd03ff4a0 <qtest_chr>, inbuf=0x6190000
> #13 0x000055edcbb04bcc in qtest_read (opaque=
> #14 0x000055edcbe73742 in qemu_chr_
> #15 0x000055edcbe73820 in qemu_chr_be_write (s=0x60f000002110, buf=0x7fffd52bbe30 "outl 0xcf...