From nobody Tue Jan 4 02:02:34 2022 X-Original-To: scsi@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 2EB14191D849 for ; Tue, 4 Jan 2022 02:02:35 +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 4JSbV26zbkz58p1 for ; Tue, 4 Jan 2022 02:02:34 +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 D102C1089C for ; Tue, 4 Jan 2022 02:02:34 +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 20422YYQ023285 for ; Tue, 4 Jan 2022 02:02:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20422YJO023284 for scsi@FreeBSD.org; Tue, 4 Jan 2022 02:02:34 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: scsi@FreeBSD.org Subject: [Bug 240917] panic: (scsi_da.c:2128, 12.1-BETA1) _mtx_lock_sleep: recursed on non-recursive mutex CAM device lock Date: Tue, 04 Jan 2022 02:02:34 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: panic 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: scsi@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: SCSI subsystem List-Archive: https://lists.freebsd.org/archives/freebsd-scsi List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-scsi@freebsd.org X-BeenThere: freebsd-scsi@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641261755; 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=lmg2MBUD9JOf2BOA35qw7gQxUmgyAycovyfLdlScXGk=; b=JG/pTWPkh9nEg6KYPSHP7Q6lWqgjky48/4BKt4L5aSYdy+StEQx7SiTiQ2/upz2yMcbmZq kzKiRNjJ2J19QuuzSIm9KVW/3M0JLx19Md9YblsH09DKanCt2q8xYzV5pFcPgGhIommWmf MwrZNtr0LgMKvKUUmc2sNMP8ekDXPuqz21gBvGZtJxBydoLUr1QJhk3NQgV7EJcAPkic89 iCL9DDOINmbjEowbpO35EbUiAZ4M8P5sz2GhEY0WzdaHgtPPgt7iH1fwwyDriLUGNmDTU0 L+Za1uEWgsutjGwgTlZ6SUl3ttW5LSrS1DaK5/qcTjrouGE9w6FAIvwIxvhdjQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641261755; a=rsa-sha256; cv=none; b=a4C1GVSxIM3B1H9njKzqpU3IML8F18g2sujHBpDyB5sCiyGVUr+suv3Z2b8Rdzffj7w8Lf Ig521vRfT6NgC85G7eCUppEWPlcA1uOAKpeWyw+YSoW9efDIlaECZJvDj8NxA+xkcFWKoh s2w5CSauaTOYtGYx1vJqq2jvwLhfFoOGQ7Pfl6rO6IGSEiqZrzfr8pDyQTzDBNCBoPcHOG k9XO/xxXhok5spODraZbOCi+CNh4Af2aKUqgua6pJcN6NuZ8ZWz95X8fVLF097xDyXhD9z 2cew9cDA10hJQ/vcR92i6nAQxkc+FX3YEH8zezHwV965MYunjsGWeFtSKFMfjw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240917 --- Comment #6 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dbb8441184bab60cd8a07c2b94bd6c4ae8= b56ec25 commit bb8441184bab60cd8a07c2b94bd6c4ae8b56ec25 Author: Robert Wing AuthorDate: 2022-01-04 01:21:58 +0000 Commit: Robert Wing CommitDate: 2022-01-04 01:56:48 +0000 cam: don't lock while handling an AC_UNIT_ATTENTION Don't take the device_mtx lock in daasync() when handling an AC_UNIT_ATTENTION. Instead, assert the lock is held before modifying the periph's softc flags. The device_mtx lock is taken in xptdevicetraverse() before daasync() is eventually called in xpt_async_bcast(). PR: 240917, 226510, 226578 Reviewed by: imp MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D27735 sys/cam/scsi/scsi_da.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=