Assertion failure in address_space_unmap through ahci_map_clb_address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hello,
Reproducer:
cat << EOF | ./i386-
outl 0xcf8 0x8000fa24
outl 0xcfc 0xe1068000
outl 0xcf8 0x8000fa04
outw 0xcfc 0x7
outl 0xcf8 0x8000fb20
write 0xe1068304 0x1 0x21
write 0xe1068318 0x1 0x21
write 0xe1068384 0x1 0x21
write 0xe1068398 0x2 0x21
EOF
Stack trace:
#0 0x55bfabfe9ea0 in __libc_start_main /build/
#1 0x55bfabfc8ef9 in __sanitizer_
#2 0x55bfabfaf933 in fuzzer:
#3 0x7f88df76110f (/lib/x86_
#4 0x7f88df5a4760 in __libc_
#5 0x7f88df5a4760 in raise /build/
#6 0x7f88df58e55a in abort /build/
#7 0x7f88df58e42e in __assert_fail_base /build/
#8 0x7f88df59d091 in __assert_fail /build/
#9 0x55bfabff7182 in address_space_unmap exec.c:3602:9
#10 0x55bfac4a452f in dma_memory_unmap include/
#11 0x55bfac4a452f in map_page hw/ide/ahci.c:254:9
#12 0x55bfac4a1f98 in ahci_map_
#13 0x55bfac4a1f98 in ahci_cond_
#14 0x55bfac4a074e in ahci_port_write hw/ide/ahci.c:339:9
#15 0x55bfac4a074e in ahci_mem_write hw/ide/ahci.c:513:9
#16 0x55bfac0e0dc2 in memory_
#17 0x55bfac0e0bde in access_
#18 0x55bfac0e0917 in memory_
#19 0x55bfabffa4fd in flatview_
#20 0x55bfabff569b in flatview_write exec.c:3186:14
#21 0x55bfabff569b in address_space_write exec.c:3280:18
#22 0x55bfac8982a9 in op_write_pattern tests/qtest/
#23 0x55bfac897749 in general_fuzz tests/qtest/
#24 0x55bfac8930a2 in LLVMFuzzerTestO
#25 0x55bfabfb0e68 in fuzzer:
#26 0x55bfabfb0485 in fuzzer:
#27 0x55bfabfb18a1 in fuzzer:
#28 0x55bfabfb2305 in fuzzer:
#29 0x55bfabfa2018 in fuzzer:
#30 0x55bfabfb8722 in main FuzzerMain.
#31 0x7f88df58fe0a in __libc_start_main /build/
#32 0x55bfabf97869 in _start (build/
The same error can be triggered through ahci_map_
Found with generic device fuzzer: https://<email address hidden>/
Please let me know if I can provide any further info.
Changed in qemu: | |
status: | New → Confirmed |
Changed in qemu: | |
status: | Confirmed → In Progress |
Proposed fix: /lists. gnu.org/ archive/ html/qemu- devel/2020- 07/msg05637. html
https:/