From nobody Tue Sep 03 14:54:58 2024 X-Original-To: dev-commits-src-all@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 4WypZB6ZKbz5TMlX; Tue, 03 Sep 2024 14:54:58 +0000 (UTC) (envelope-from git@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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WypZB3ysdz4xBD; Tue, 3 Sep 2024 14:54:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725375298; 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; bh=XMH1ED77LWo1bALTW7Qcwc3tRoo7kSkPSrUx4ha5cHc=; b=kC+R6dX1N4Lm+f5dkeRjtHCHo++ubFxqvlfCS7aK9FAYoRGtkUAw5+UIO3OlFpZ/vrZE9I 7mokoaduOdzK9Esgi7hKVXFeO30eOEs+weYsFIsrws4o9WZ5Z9qAT58P+LNc8hRD9jdcgu ikVdIUmKxNUuu92MZNmk0wuazuFbo8KjDoR2IN7yaqUIYdcOT18CfwhRBRxmLKDvPEash5 0EA6dDe9cWutGuAw+GfAac/pXZVjxjx4oWZvmWSZk8gbsCPy7MhQJvAQ7ltALN/8yiC2o8 OGmUrA5cac5w+QS1ADeCZhOo4nhlDk0nBW3neLwvnG7secGzI3+q2xFKRa5Szg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725375298; a=rsa-sha256; cv=none; b=YZrDCz9Z8w//SpBCW/Eo+b8cFyRwk4A/5lHWApLLhmh7vtEL0heK4WWLA+kVBnGFRYaDpj ARacrVVxLLfizKhukEUvF0ks7VzXCLQ8rggW4/D8xrB0YDjl8yEBgzWbfu0CMlNgcUf7ex e8ZQXexIm+3i/lGRhu6YwCEcXUFPI9y1v9JWt34Susp160iHLYKD4ZgedB70mYZJFHnGty /Hk1whvEPxadSeH5chfV5gPdtLfXXbv4AP9HoFyTBMI7LeC3TXHbESXwzZXVwZezds7/kz +8RDGUDZ51LFmT1mIXQ/OfeXq+fzbSr8RXi6cW2wRC+h71VKNMCEimwEEADqNA== 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=1725375298; 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; bh=XMH1ED77LWo1bALTW7Qcwc3tRoo7kSkPSrUx4ha5cHc=; b=prxFxiPWbTd1a5+Tql8CLvH1mQh0TaSajhY8UrFLH2YqQoYVYOxABuP8DlxUShthzafBdG lYnEdgBtPxf+blnJBhMUuyC0fJGstw5BF3VQ7wceUuVNHqfCfneqUgW5dU2KcmHBCBqW00 CTR11BYCEiyGtviyjmOFqcUmqfarkeQLfKe0SN0HRjzqLPQH1SiW6MKkV/IqLSR0IWzMjF l/n33IBrqonXz4/+T7p8p/Eo79J+eJ1odhMKbteL5l8pAM6T3wgaSo+hbhS/S9oW5YyjjZ olvP1bZVUTBQwcws5D9zjQJLQ2XZQiDgTQxnA1E6wvN1nXOG7qhvMX1T69wMnw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4WypZB3X6Rzlr9; Tue, 3 Sep 2024 14:54:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 483EswoH070420; Tue, 3 Sep 2024 14:54:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 483EswPb070417; Tue, 3 Sep 2024 14:54:58 GMT (envelope-from git) Date: Tue, 3 Sep 2024 14:54:58 GMT Message-Id: <202409031454.483EswPb070417@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 1c8d1f51302e - stable/14 - turnstile: Mention the lock name when panicking due to a sleeping thread List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 1c8d1f51302e1c6a177240936384245da3b859f7 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=1c8d1f51302e1c6a177240936384245da3b859f7 commit 1c8d1f51302e1c6a177240936384245da3b859f7 Author: Mark Johnston AuthorDate: 2024-08-10 15:42:35 +0000 Commit: Mark Johnston CommitDate: 2024-09-03 14:54:42 +0000 turnstile: Mention the lock name when panicking due to a sleeping thread This will hopefully make it a bit easier to track down the cause of such panics. MFC after: 2 weeks (cherry picked from commit aea9dba46b81abc5c0fd4c42d3ac762d3bc1de37) --- sys/kern/subr_turnstile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/subr_turnstile.c b/sys/kern/subr_turnstile.c index 0a20f3163e30..544dd9f52e9c 100644 --- a/sys/kern/subr_turnstile.c +++ b/sys/kern/subr_turnstile.c @@ -246,7 +246,8 @@ propagate_priority(struct thread *td) "Sleeping thread (tid %d, pid %d) owns a non-sleepable lock\n", td->td_tid, td->td_proc->p_pid); kdb_backtrace_thread(td); - panic("sleeping thread"); + panic("sleeping thread holds %s", + ts->ts_lockobj->lo_name); } /*