From nobody Tue Aug 16 03:12:59 2022 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M6GRv0T4Pz4Z7mG for ; Tue, 16 Aug 2022 03:12:59 +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 4M6GRt5rmKz3J0X for ; Tue, 16 Aug 2022 03:12:58 +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 4M6GRt4thWzv7W for ; Tue, 16 Aug 2022 03:12:58 +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 27G3CwOW008704 for ; Tue, 16 Aug 2022 03:12:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 27G3Cwf8008703 for virtualization@FreeBSD.org; Tue, 16 Aug 2022 03:12:58 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 265869] mmio_rb_lookup finds wrong entry, triggering assertion Date: Tue, 16 Aug 2022 03:12:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: harris.snyder@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660619578; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4Wzg9Bytnyjvg5qqVAekqP4G25ceGWctmq4yw1EStUA=; b=LyXn66+RYsEqY6ZaMwiUu/qwH36mJQ2FC9568nSA8sq7dPN/J8rYbWOqjByyyJiXzPRlXZ dHV/j0fqsUTMVI29TdXZTCyPeQ90YJlPbOrWfpzTkJcnJa05CF23yRHPyteyKDHKTznKBF 6KFPM+WbKx+FN6uYs+BmjK5+llVNptedZTN8+TlMHG9N00OiMxfI7pqb27xfF+CfDi+tnO W0ubv3clWRbci1qd6xtQ5Rce/M1j+2G6yCJ0YfX+2+E6EkPWElPajjjZAEobn3i53+XvGG tNojbgW9iaIiay/6TlepSOu8uJqKBXSYBx/nXO6/VOJLwWlNVb6tAfk6LsVOTg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660619578; a=rsa-sha256; cv=none; b=wNwZpG3X5mDI4uzUog9CUpdOLSoeX+ED5+4nCSImqOHiMRi8rLtlfB+mGZTQ1d6KX7umi+ E8iMGzLaqeS+KWWidUubOaSwehtAOrCyif9Li2iBVh1fDh1idnQSR9c7hcOoNMu4OjNehc gDkPTnkz/UhuZKCWtoJ8RIc9izTyPFA/Gz/2YqfwgbOoq6F0h74GGK9ZPYcYstFqX7BMqO m1/ez4xtiYsynpqbqxOiXpoVdRxtpOjRxLl4brNOxBHNap7SNZAJt3daCiDTUTLkxgfKGF /ue5mwSYG4lQhjNDur46GvIBWJuONn2pa1A1PaiZWH6O63BPsj9Nf7z5Yd6Kyg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265869 --- Comment #1 from Harris Snyder --- In addition, here is the backtrace from GDB at the time of the assertion:=20 #1 0x0000000801569e61 in __assert (func=3D, file=3D, line=3D, failedexpr=3D) at /usr/src/lib/libc/gen/assert.c:51 #2 0x00000000010557c7 in unregister_mem (memp=3Dmemp@entry=3D0x7fffdebf2cf= 8) at /usr/src/usr.sbin/bhyve/mem.c:350 #3 0x00000000010647b0 in modify_bar_registration (pi=3D0x801c4a300, idx=3D= 1, registration=3D0) at /usr/src/usr.sbin/bhyve/pci_emul.c:578 #4 0x00000000010636a8 in pci_emul_cmd_changed (pi=3D0x801c4a300, old=3D) at /usr/src/usr.sbin/bhyve/pci_emul.c:1983 #5 0x0000000001064497 in pci_emul_cmdsts_write (pi=3D0x801c16d00, coff=3D, new=3D, bytes=3D) at /usr/src/usr.sbin/bhyve/pci_emul.c:2047 #6 0x00000000010640c0 in pci_cfgrw (ctx=3D, vcpu=3D, in=3D, bus=3D, slot=3D, func= =3D, coff=3D0, bytes=3D2, eax=3D0x7fffdebf2e88) at /usr/src/usr.sbin/bhyve/pci_emul.c:2205 #7 0x0000000001064c51 in pci_emul_cfgdata (ctx=3D0x801c16d00, vcpu=3D0, in= =3D0, port=3D, bytes=3D582, eax=3D0x0, arg=3D0x0) at /usr/src/usr.sbin/bhyve/pci_emul.c:2254 #8 0x0000000001053f4d in emulate_inout (ctx=3D0x801c16d00, vcpu=3D0, vmexit=3D) at /usr/src/usr.sbin/bhyve/inout.c:228 #9 0x0000000001048ae0 in vmexit_inout (ctx=3D0x801c16d00, vme=3D0x73, pvcpu=3D) at /usr/src/usr.sbin/bhyve/bhyverun.c:628 #10 0x00000000010489b3 in vm_loop (ctx=3D0x801c19780, vcpu=3Dvcpu@entry=3D0, startrip=3D) at /usr/src/usr.sbin/bhyve/bhyverun.c:987 #11 0x0000000001047374 in fbsdrun_start_thread (param=3D0x801d51000) at /usr/src/usr.sbin/bhyve/bhyverun.c:542 #12 0x00000008014ba96a in thread_start (curthread=3D0x801c16d00) at /usr/src/lib/libthr/thread/thr_create.c:292 #13 0x0000000000000000 in ?? () Backtrace stopped: Cannot access memory at address 0x7fffdebf3000 --=20 You are receiving this mail because: You are the assignee for the bug.=