From nobody Fri Apr 24 18:38:58 2026 X-Original-To: bugs@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 4g2MDf2n7dz6b2H0 for ; Fri, 24 Apr 2026 18:38:58 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4g2MDf0T9Jz49v4 for ; Fri, 24 Apr 2026 18:38:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1777055938; 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=H0YVYTTQT4HWqWkkcFYSqPUEwDIXJKtuI7PXJShCTdI=; b=xLigAe8FOsGGaznSRNxa2NKyQeyIL/xcAW4DM0El41h5FZ+W1rxF6clJAgoFWbYnH0je7n eJe1idH/+YRkEnSnyr5Id4XZuUP/VOIuTlgfl7DsCJu9N5qX+UdNx3thrOobuxgaX3LNBh H6tIEyq43aYkBfcCGApdnxxt0zdrWwNROdu+LvMTz/f1e/MgnwVNGRdZ8hYrm2IoBnZ5/L 5Yx9gq4VDbiqew5b0iac8u0OM1P3ONshxjw9DWiU25CReCueRZp21+aBSTHh9XeQNxTdXb DivaUneMTj26f4JXf3KbzkgLY3sNBHQZ+/MGmuIwWbUcjVYqKp7WXwNaedAC3Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1777055938; a=rsa-sha256; cv=none; b=b+nuwbWfZh8evGY/uCjcgWV89dpZsr9LoJ/7jck+uN1jzUy9phrLX4NQ6sqeQdaJ6mfyrT Ohjd6eZymNeccWBEELvpoqnKPizblw6YqM0KevcIPy/5p9q4kGA8lAoK0Kc7tRURNS7ijh o5aJcKcpRNovs6H1XT7+a0CbKl2dvj1HG/cGuVZ5njmzhke/J6ne/z4v7nG3Tg4Lir8lJ5 +fPs6IvnH7fZPq9aY/J5fQ7juzFBy1f2BHQRTJ2uGf9SRwz4LkIhzIaKEOBmkovtsxOTKl RkQc//AxcbmJjKiEn6jyzF+ZyUt/QkAVjQ9o1hgb0pUY967LVPnFRUxUTUaBVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1777055938; 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=H0YVYTTQT4HWqWkkcFYSqPUEwDIXJKtuI7PXJShCTdI=; b=tbp/EwlTm0Gt19YxkYL5jeG8YNenonrgEDSyc0PwfKYMmXPhA3wL75S+FWu57/xuhIn3++ /2WqoA7AcwADRqq2uTHMYkfQV4QyQoL0gyMEpQ+E1Ccj4eHZHRCeb2zlazFNFK3H6btJr+ nJ6/+6LlGALmUwbchG4UJzXEQa2U+66QwwLXrExKldFIc7LNpECuNkMtOwDhaIcAVgLQ6t 0JaeNhNC/prQx9gOMt+qFgeHD1iwFBE1+ajxd8mJW3aCPEaJarygOR9EwR6DskXM7GnGlo YeehUMGul3CgIME/a75sUEwRqbsbftUbPGXGiudISQkysWmmmjmHhEKoDc4mXw== 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 4g2MDd6PkHz1Dq6 for ; Fri, 24 Apr 2026 18:38:57 +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 63OIcvVp064518 for ; Fri, 24 Apr 2026 18:38:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 63OIcv6Y064517 for bugs@FreeBSD.org; Fri, 24 Apr 2026 18:38:57 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: bugs@FreeBSD.org Subject: [Bug 293899] panic: cam_periph_ccbwait: proceeding with incomplete ccb: ccb=ADDR, func_code=0x3, status=NUM, index=-NUM Date: Fri, 24 Apr 2026 18:38:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-RELEASE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D293899 --- Comment #1 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D3454d97aaec12f4a8c676c34182200471= eecae24 commit 3454d97aaec12f4a8c676c34182200471eecae24 Author: Warner Losh AuthorDate: 2026-04-24 18:31:13 +0000 Commit: Warner Losh CommitDate: 2026-04-24 18:32:24 +0000 cam: Set ccb_h.status on XPT_GDEVLIST early-return paths XPT_GDEVLIST in xpt_action_default has two early-return paths (list changed and index not found) that set cgdl->status but not ccb_h.status. Since xpt_action sets ccb_h.status to CAM_REQ_INPROG before dispatching, and XPT_GDEVLIST is an non-queued CCB, cam_periph_ccbwait skips the sleep loop and immediately hits the KASSERT checking that status !=3D CAM_REQ_INPROG, causing a panic. Set ccb_h.status =3D CAM_REQ_CMP at the top of the code rather than the bottom. Any future error paths will be right (since this command can't fail at the command level, just in the status of the data level). PR: 293899 Assisted-By: Claude Opus 4.6 (1M context) Sponsored by: Netflix Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D56487 sys/cam/cam_xpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --=20 You are receiving this mail because: You are the assignee for the bug.=