From nobody Tue Mar 08 07:12:35 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 5C8E519FB428 for ; Tue, 8 Mar 2022 07:12:36 +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 4KCRNg6kdXz4XZ0 for ; Tue, 8 Mar 2022 07:12:35 +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 A74ED18629 for ; Tue, 8 Mar 2022 07:12:35 +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 2287CZXB076232 for ; Tue, 8 Mar 2022 07:12:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2287CZLP076231 for scsi@FreeBSD.org; Tue, 8 Mar 2022 07:12:35 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, 08 Mar 2022 07:12:35 +0000 X-Bugzilla-Reason: CC 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: crash X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: rew@FreeBSD.org X-Bugzilla-Flags: mfc-stable13+ mfc-stable12? 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=1646723556; 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=QehZrQuU4BFP4qXeGHwBuKcnYpsajTIlbyew0119tXk=; b=ktsyynaaLIb/MWozoaEzHN9VsTSFQJMcH0tOAIDGsM/yKNCKeAIMvbMYbrwMn3kS4rQhDE Hbguxs3gkFUEj0aRNBNp6Sc1f01+klPrsA8F88Nf5rPM90dX+sJqUxz3pYD16OtkyLPuvG No+6bsz1G2VxlfOdZLw8Df5BxcpX6hcO1L4oeRlJ0NIQiDUkpDnOmiqhohY6dNT00RPOl6 d7SfOOU6eGmW4Z5pskA92FIcldr8ShUrLATqxWSOc0E13EizyGXOi2pL6FGAuTp3FI+2N2 R+qDbT13QS3jNS1AoWDSHdxfZ+zT++f6O0jKncXT3LgCjATI171nKLh2HXzejw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646723556; a=rsa-sha256; cv=none; b=MK4watjRM2XUQc69Jb0Ua1Sg2CbvP5iRHru3x9k1dJ1bglo3smgANArgO0ozXd0PWbfWsQ SrNPLAkV96reyk8attzu8xU3O6lrBA7WKmGo/Ts8p6a9YTCqNHifGWStuQRKISTW4seo9e Lz2oRnDARvLeMTcT8ARH3lQ67hIpYW0OjWdkJIoKPV990Yw9UjY6G/WKXIgRh0If0QM8Ca E3gn4Xa0z/kkWuCilRI62H8GdCdLbBqp2y3I8ht3hMSkBj7wlflHdsHM0rQnPMfQgMzVp3 RxrAPUlY1IKtsMvsXZLMzo8V0vDkWo7/IPdfsT8rhhArat1rpSLmW4mTI2z9pw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240917 --- Comment #9 from commit-hook@FreeBSD.org --- A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D1987ff8abca2c9bdff7f385ea2fd1c60c= f5b3aeb commit 1987ff8abca2c9bdff7f385ea2fd1c60cf5b3aeb Author: Robert Wing AuthorDate: 2022-01-04 01:21:58 +0000 Commit: Robert Wing CommitDate: 2022-03-08 07:07:46 +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 Differential Revision: https://reviews.freebsd.org/D27735 (cherry picked from commit bb8441184bab60cd8a07c2b94bd6c4ae8b56ec25) 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.=