From nobody Fri Nov 07 15:00:14 2025 X-Original-To: riscv@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 4d32Kq0hylz6G3FB for ; Fri, 07 Nov 2025 15:00:15 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4d32Kp6HNdz3QDv for ; Fri, 07 Nov 2025 15:00:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762527614; 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=VeJP73rw5qD5e6M6/P3bwv5PcyDl+f5PtbKUuc3FzC0=; b=ZnxtNFCEfyb+GTzBcRCO+bNw99C/VJ5lCIRA0v9Oa8+LPuxV7CZ37PtI64Z5MYMTQCITpW YjpFXWTeZast4UwX5g3YiL/UyMyQsIsNFBdxNhvW1zpzldVbBCguD2peLVUuyAciVyv0e/ 4GxQXDmPhK6WtueL3kn1QGZR9ZIFihISudAVDu3B5Dhr7TADp+wlbf+327ab1oEWQ4V2tF va+zMIr1mvQKuGbvuF4XtOzcjWAYkbQrI5B7lF+I6k6FngVc2nr2FfTtjpR+l8xskmPNw9 Y08BHAqSavRfVLiHidgLcSWpWXGGYJx78pzPtAi0Gk5cL59qqTkCS7zwSIYJbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762527614; 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=VeJP73rw5qD5e6M6/P3bwv5PcyDl+f5PtbKUuc3FzC0=; b=xFdqcWSfi+XGhLRmHLCMGWWIdwFITsQjSKJGP0NC/tzQiJ//Z9QnD+rKDRrl/cg6iHBJux hLhz46zU18z+K9V8BHdTlVNeqRovaHFyFfeRF++pXJP02evhjuBLiQoBWCNCVFM6vTo69G Fojb57o1tf7GEM9ubmAmfatiJgqSCdV07mB2OzDrdDCm/oxjexLugpjAcRsOd3AmTEi3KE FNZP3BulA7Dk7LE0IV/7mJhJNb829DAUzadinJ3VVQb2LQm+Odx49Rh5IbgCj/qfzqeLmg aWKzWeico6I/5i0nHS1J3o+7ckRwCfLc/+v7KqHkfKInUmtnF+yrh0P8um5RPg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1762527614; a=rsa-sha256; cv=none; b=tef4onMf54QL+nkwcY7lxeWwWme5ZvO3fkiKOosl3Pxqwcb1zlxm7m43KpK2uxI1Swfg8n aiUOQR/QECW2dZJaL9bXbYW0hIqFKRGQnGv0kmZsPVvRrjQjrdhgcjiE4M6kHinKAKQWR4 oAU+9tzrKwIk+Nfg7fgCpRmS5dCPZYKIztVEETb4fPyp1ls4X535gb243/JRcF9v8crwYp bMJtekxlxEMmUFOhQIZjTRxfymKEMjgHdFWlSDFXrHND7G2/lVU9mlK9T4K5M3cQi8cff0 31rVLoRaXH7SdzHoo1R4OYqUMhdyepQAHTDyR+GlWiqLM+8WjH07/MxOD4JJow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4d32Kp5bCwz13mp for ; Fri, 07 Nov 2025 15:00:14 +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 5A7F0Eq5055659 for ; Fri, 7 Nov 2025 15:00:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5A7F0ECA055658 for riscv@FreeBSD.org; Fri, 7 Nov 2025 15:00:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: riscv@FreeBSD.org Subject: [Bug 289930] Booting FreeBSD 16-CURRENT on riscv64 with QEMU hangs indefinitely Date: Fri, 07 Nov 2025 15:00:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: riscv X-Bugzilla-Version: 16.0-CURRENT X-Bugzilla-Keywords: crash, regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D289930 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D72c76047541ab6cc0e989a74e8de4d6e6= a1a94b6 commit 72c76047541ab6cc0e989a74e8de4d6e6a1a94b6 Author: Mark Johnston AuthorDate: 2025-11-04 14:27:33 +0000 Commit: Mark Johnston CommitDate: 2025-11-07 14:10:04 +0000 virtio: Fix polling in virtqueue_dequeue() The access of vq->vq_ring.used->idx needs to be volatile-qualified, otherwise the compiler may optimize virtqueue_poll() into an infinite loop if there is no data available upon the first poll. Prior to commit ad17789a8569 this wasn't a problem since an external function call after each poll inhibited the optimization. PR: 289930 MFC after: 3 days Sponsored by: Klara, Inc. Fixes: ad17789a8569 ("virtio: Remove the unused poll method") (cherry picked from commit f999ffdce3813eb946f10999ccffb8275c324469) sys/dev/virtio/virtqueue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=