From owner-freebsd-virtualization@freebsd.org Wed Jun 2 16:57:44 2021 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A35E26474EA for ; Wed, 2 Jun 2021 16:57:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FwFZc42vBz3v69 for ; Wed, 2 Jun 2021 16:57:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 88FD16474E9; Wed, 2 Jun 2021 16:57:44 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 88C166474E8 for ; Wed, 2 Jun 2021 16:57:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FwFZc3M55z3tmm for ; Wed, 2 Jun 2021 16:57:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5B9E31A989 for ; Wed, 2 Jun 2021 16:57:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 152Gvigr097474 for ; Wed, 2 Jun 2021 16:57:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 152GviSN097473 for virtualization@FreeBSD.org; Wed, 2 Jun 2021 16:57:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 256379] [bhyve] Assertion failed: (!(bdle_sz % HDA_DMA_ACCESS_LEN)), function hda_stream_start, file /usr/src/usr.sbin/bhyve/pci_hda.c Date: Wed, 02 Jun 2021 16:57:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cwmyung@snu.ac.kr X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2021 16:57:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256379 Bug ID: 256379 Summary: [bhyve] Assertion failed: (!(bdle_sz % HDA_DMA_ACCESS_LEN)), function hda_stream_start, file /usr/src/usr.sbin/bhyve/pci_hda.c Product: Base System Version: 13.0-RELEASE Hardware: arm64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bhyve Assignee: virtualization@FreeBSD.org Reporter: cwmyung@snu.ac.kr To reproduce the bug, please follow the command (bhyve version 13.0): ``` $ bhyvectl --vm=3DreproVM --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/1nktolM2JjnLWPDV92n0muCN7q1sqmWOk/view?usp= =3Dsharing](https://drive.google.com/file/d/1nktolM2JjnLWPDV92n0muCN7q1sqmW= Ok/view?usp=3Dsharing) # Crash Log ``` Assertion failed: (!(bdle_sz % HDA_DMA_ACCESS_LEN)), function hda_stream_st= art, file /usr/src/usr.sbin/bhyve/pci_hda.c, line 685. #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 0x000000000027a9dc in hda_stream_start (sc=3D, stream_in= d=3D4 '\004') at /usr/src/usr.sbin/bhyve/pci_hda.c:685 #5 hda_set_sdctl (sc=3D0x800f5b500, offset=3D, old=3D) at /usr/src/usr.sbin/bhyve/pci_hda.c:1058 #6 0x0000000000274569 in hda_write (sc=3D, offset=3D256, size=3D, value=3D) at /usr/src/usr.sbin/bhyve/pci_hda.c:763 #7 pci_hda_write (ctx=3D, vcpu=3D, pi=3D, baridx=3D, offset=3D256,=20 size=3D1, value=3D30) at /usr/src/usr.sbin/bhyve/pci_hda.c:1311 #8 0x000000000027179b in pci_emul_mem_handler (ctx=3D0x800e17100, vcpu=3D6, dir=3D, addr=3D,=20 size=3D0, val=3D0x7fffdcbe3ca8, arg1=3D0x800e3cf00, arg2=3D0) at /usr/src/usr.sbin/bhyve/pci_emul.c:420 #9 0x000000000024cc74 in mem_write (ctx=3D0xbc299, vcpu=3D6, gpa=3D3436838= 1642, wval=3D30, size=3D0, arg=3D0x0) at /usr/src/usr.sbin/bhyve/mem.c:162 #10 0x00000000002c11f1 in emulate_mov (vm=3D, vcpuid=3D0, gpa=3D, vie=3D,=20 memread=3D, memwrite=3D0x24cc10 , arg=3D) at /usr/src/sys/amd64/vmm/vmm_instruction_emul.c:532 #11 vmm_emulate_instruction (vm=3D, vcpuid=3D0, gpa=3D325479= 6544, vie=3D, paging=3D,=20 memread=3D, memwrite=3D0x24cc10 , memarg=3D0x= 800e10578) at /usr/src/sys/amd64/vmm/vmm_instruction_emul.c:1789 #12 0x000000000024c19e in emulate_mem_cb (ctx=3D0xbc299, vcpu=3D6, paddr=3D= 0, mr=3D0x0, arg=3D) at /usr/src/usr.sbin/bhyve/mem.c:238 #13 0x000000000024bf64 in access_memory (ctx=3D0x800e17100, vcpu=3D0, paddr=3D3254796544, cb=3D0x24c150 ,=20 arg=3D0x7fffdcbe3ea8) at /usr/src/usr.sbin/bhyve/mem.c:215 #14 0x000000000024bb97 in emulate_mem (ctx=3D0xbc299, vcpu=3D6, paddr=3D0, vie=3D, paging=3D) at /usr/src/usr.sbin/bhyve/mem.c:251 #15 0x000000000022d01f in vmexit_inst_emul (ctx=3D, vmexit=3D0x2cce60 , pvcpu=3D0x7fffdcbe3f1c) at /usr/src/usr.sbin/bhyve/bhyverun.c:784 #16 0x000000000022c2c4 in vm_loop (ctx=3D0x800e17100, vcpu=3D0, startrip=3D= ) at /usr/src/usr.sbin/bhyve/bhyverun.c:924 #17 0x0000000000229869 in fbsdrun_start_thread (param=3D0x2cd6e0 ) at /usr/src/usr.sbin/bhyve/bhyverun.c:473 #18 0x00000008006e782b in ?? () from /lib/libthr.so.3 #19 0x0000000000000000 in ?? () ``` --=20 You are receiving this mail because: You are the assignee for the bug.=