[Bug 256386] [bhyve] Assertion failed: (0), function hda_set_dpiblbase, file /usr/src/usr.sbin/bhyve/pci_hda.c

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jun 2 17:05:37 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256386

            Bug ID: 256386
           Summary: [bhyve] Assertion failed: (0), function
                    hda_set_dpiblbase, file
                    /usr/src/usr.sbin/bhyve/pci_hda.c
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bhyve
          Assignee: virtualization at FreeBSD.org
          Reporter: cwmyung at snu.ac.kr

To reproduce the bug, please follow the command (bhyve version 13.0):

```

$ bhyvectl --vm=reproVM --destroy

$ bhyve -s 2:0,ahci-hd,hyfuzz.img -s 3,hda -s 0:0,hostbridge -s 1:0,lpc -c 1 -m
512M -l bootrom,./BHYVE_UEFI.fd -HPA reproVM

```

File:
[https://drive.google.com/file/d/15fdjlSZcmPaCKd2iVKyapIdwqANJvKHk/view?usp=sharing](https://drive.google.com/file/d/15fdjlSZcmPaCKd2iVKyapIdwqANJvKHk/view?usp=sharing)

# Crash Log

```
Assertion failed: (0), function hda_set_dpiblbase, file
/usr/src/usr.sbin/bhyve/pci_hda.c, line 1033.

#0  0x000000080083e2ea in thr_kill () from /lib/libc.so.7
#1  0x00000008007b3064 in raise () from /lib/libc.so.7
#2  0x0000000800867f29 in abort () from /lib/libc.so.7
#3  0x0000000800795f81 in __assert () from /lib/libc.so.7
#4  0x0000000000279c11 in hda_set_dpiblbase (sc=0x800f5b500, offset=<optimized
out>, old=<optimized out>)
    at /usr/src/usr.sbin/bhyve/pci_hda.c:1033
#5  0x0000000000274569 in hda_write (sc=<optimized out>, offset=112,
size=<optimized out>, value=<optimized out>)
    at /usr/src/usr.sbin/bhyve/pci_hda.c:763
#6  pci_hda_write (ctx=<optimized out>, vcpu=<optimized out>, pi=<optimized
out>, baridx=<optimized out>, offset=112, 
    size=4, value=463585281) at /usr/src/usr.sbin/bhyve/pci_hda.c:1311
#7  0x000000000027179b in pci_emul_mem_handler (ctx=0x800e17100, vcpu=6,
dir=<optimized out>, addr=<optimized out>, 
    size=-1040170896, val=0x7fffdcbe3ca8, arg1=0x800e3cf00, arg2=0) at
/usr/src/usr.sbin/bhyve/pci_emul.c:420
#8  0x000000000024cc74 in mem_write (ctx=0xbb6c7, vcpu=6, gpa=34368381642,
wval=463585281, size=0, arg=0x0)
    at /usr/src/usr.sbin/bhyve/mem.c:162
#9  0x00000000002c0a78 in emulate_mov (vm=<optimized out>, vcpuid=0,
gpa=<optimized out>, vie=<optimized out>, 
    memread=<optimized out>, memwrite=0x24cc10 <mem_write>, arg=0x800e10578)
    at /usr/src/sys/amd64/vmm/vmm_instruction_emul.c:544
#10 vmm_emulate_instruction (vm=<optimized out>, vcpuid=0, gpa=3254796400,
vie=<optimized out>, paging=<optimized out>, 
    memread=<optimized out>, memwrite=0x24cc10 <mem_write>, memarg=0x800e10578)
    at /usr/src/sys/amd64/vmm/vmm_instruction_emul.c:1789
#11 0x000000000024c19e in emulate_mem_cb (ctx=0xbb6c7, vcpu=6, paddr=0,
mr=0xc2004070, arg=<optimized out>)
    at /usr/src/usr.sbin/bhyve/mem.c:238
#12 0x000000000024bf64 in access_memory (ctx=0x800e17100, vcpu=0,
paddr=3254796400, cb=0x24c150 <emulate_mem_cb>, 
    arg=0x7fffdcbe3ea8) at /usr/src/usr.sbin/bhyve/mem.c:215
#13 0x000000000024bb97 in emulate_mem (ctx=0xbb6c7, vcpu=6, paddr=0,
vie=<optimized out>, paging=<optimized out>)
    at /usr/src/usr.sbin/bhyve/mem.c:251
#14 0x000000000022d01f in vmexit_inst_emul (ctx=<optimized out>,
vmexit=0x2cce60 <vmexit>, pvcpu=0x7fffdcbe3f1c)
    at /usr/src/usr.sbin/bhyve/bhyverun.c:784
#15 0x000000000022c2c4 in vm_loop (ctx=0x800e17100, vcpu=0, startrip=<optimized
out>)
    at /usr/src/usr.sbin/bhyve/bhyverun.c:924
#16 0x0000000000229869 in fbsdrun_start_thread (param=0x2cd6e0 <mt_vmm_info>)
at /usr/src/usr.sbin/bhyve/bhyverun.c:473
#17 0x00000008006e782b in ?? () from /lib/libthr.so.3
#18 0x0000000000000000 in ?? ()
```

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-virtualization mailing list