From nobody Sun Aug 14 16:08:09 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 4M5MlL55Fjz4ZY6B for ; Sun, 14 Aug 2022 16:08:14 +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 4M5MlF6pYRz3mk9 for ; Sun, 14 Aug 2022 16:08:09 +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 4M5MlF1GD8zwjj for ; Sun, 14 Aug 2022 16:08:09 +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 27EG89o1061585 for ; Sun, 14 Aug 2022 16:08:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 27EG89qH061584 for virtualization@FreeBSD.org; Sun, 14 Aug 2022 16:08:09 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: virtualization@FreeBSD.org Subject: [Bug 265749] bhyve NVMe emulation panic after LLVM 14 import to CURRENT Date: Sun, 14 Aug 2022 16:08:09 +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 Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open 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=1660493292; 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=8XcTHq/2qP7no6XDx6gTvKbrwsvg+sdOlC9+0rGFbLE=; b=JPT8xjtxtYudkojZNYsRnuM3y9zU9gIUxsdcRKfu2Rea0sIv71ranuyuXEE0biB2VcDUr0 Q9u8c/WhU5MpNiD4WHRuYwaNjoPiwccx/j3JfilW7O1cd4bNJ0MTLHwvKWMySyVX8qLTwL oIXRxVgt4kr8Vuv8SlWKudzGvhwbz8EAxmGiFWWP3Cui8SwZLRAKgrr30PHMAbZ89uZR8C UAihOqpyxEK3O9BMgVvzob2PR71I4bf6WH9If8jkOSfBpsEskd1JtytlGeFxNn29J27Ne3 pRreF2WJYda8+Xo4PhQV4S/IaQd45vjqJ6G9HI6JGLlVFt0PLFy9CDc58JZzLQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660493292; a=rsa-sha256; cv=none; b=MgeW5zV8I6Bi37c+jYwCtHVXe2IlvcwyKoPb0PNkz4aW8im5hnWzysC6+ZDEWQAtqOehFG jsgii/uEafzPqFQ4wWhqaE9JdsU0o3io0QMHKG9Vp0t08t7HWheMSlF+K7hFPcg6cBqPDA KaMkk+yKOI7k68cdWAHGwxAeYGnIpgdn5RJl7fv+JnAOoRSV2dVXf+/06f3P1UKhFTANHz 4nSfvHxfLatOjABLpe+viek0YpfZFGvT9mRMi3Q+sT9AmkSNWUinYcMIsWS0ZNs7Jb6POH 2hFOIS82I5sWDVxsOPDjYY0RQvl2rQFovEyBEDG1iNmS5RWSncJI7Jhpc/+akQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265749 --- Comment #4 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Db6ecef28bfd7c1c267442fae1c8f2fe0f= 699f617 commit b6ecef28bfd7c1c267442fae1c8f2fe0f699f617 Author: Mark Johnston AuthorDate: 2022-08-14 15:57:24 +0000 Commit: Mark Johnston CommitDate: 2022-08-14 15:59:01 +0000 bhyve: Address uses of uninitialized variables in pci_nvme.c The debug print in nvme_opc_get_log_page() would print an uninitialized local variable. In nvme_opc_write_read(), a failed LBA bounds check would cause pci_nvme_stats_write_read_update() to be called with an uninitialized variable as a parameter. Although the parameter is unused when the check fails (and so status !=3D 0), LLVM 14 emits some bogus machine co= de in this path, which happens to result in a segfault when it gets executed. PR: 265749 Reviewed by: chuck, emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D36119 usr.sbin/bhyve/pci_nvme.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=