From nobody Sat Aug 10 15:50:30 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 4Wh4xL4VMhz5SQD4; Sat, 10 Aug 2024 15:50:30 +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 4Wh4xL3Wczz4RB6; Sat, 10 Aug 2024 15:50:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723305030; 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=e4+SHNxng7KK7HmavP0gZ4tdYzpcaXtD7MkI3Om5TrM=; b=jCmhP1pufKM+h05sIUlo8aURa6QfWVjh7LRcKN9EbPaav1NumuoNinfzuGVMmHD/TXRHbh ytn7rW5eg6upuUZG5OSTHdaRIiBQyBjp6m9JkOFJm/Wh0WBY/2k8Rq09ZNrPh4Hz60v8Gu 54z2vB/m2Jo5i9Leq43o3dJV891sOTd5LIwoqi8WaW9fEF5bV1xHlDdsVxrcp74Fcz/2n9 RZFCxTBV6AqeXnN86cH5DD55wbLe+YUxfOSsXOOGKDGqBGyuLfc0eM1k8jWSJCt8c2xX5H uU7ASOX5OI6er7BJqfGtXCea6RdCXukXCL81un7acgtcRR/GLPF97z3YlDwWQg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723305030; a=rsa-sha256; cv=none; b=GSU2hzPT6bkWyVCZgcAmZu/ygpQbNsIzm0qhVquygWCXj8O8D8gi3Xzo3byKeIFCcqsc7f vkG2rzTX7MpHhRvmLVobQ3OYWq+F4Wjck+jPGnIAyp9pJz8iKIJ26cigO38XwrxQTCiJVn 4bjxspcbtebVjX/0+69+/0LgFD7y00iKKmIJw35rfXivf9b8JLveuXN0UnSGAkC1RSeDQ/ RiNXrBpSpC0EEAQWXurOz5tultpuGS+4Xb4/ZBXeUzJ+8xnTV7QuIc6qmc+/NlTlpDTJlr SaQPM3gXdOtbVWlJO+uKa/7STvJBZMhmMrPb3NcPPNdPF+6wu7qStmNlMm6G7Q== 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=1723305030; 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=e4+SHNxng7KK7HmavP0gZ4tdYzpcaXtD7MkI3Om5TrM=; b=XZRMfsPqIp85RnCt8/YRVm33EJMU459keQ+6qywvmD4fnmz6nbxiEf3/YrEWkK5fm2T/Vs VWGWrL27mezeqW3LMB7Iptq0IHD8Pe/g4v7NYJab/jym7/2L1TcDaEoOVxbQwjDWKY2aLi 0s8Y1ZcAPxTdG/mRSeOn1g7a43lh0Ww+ZHj/PYkof6+mtD4sBE4CwGpW/aQ329INCLgK82 Cjui2n0/abEFvmky+SBsmL1Fhk7WAtbh2gXNKhmmBMKy1HD4yqFy+enIlzRuWYCnSSizi7 xFCIWPXEbZZbQT12oHLHZCBhs4C/l5a5YH7P7TeTxjbc+YeoE0mlSBKBHdji6w== 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 4Wh4xL37Klz161t; Sat, 10 Aug 2024 15:50:30 +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 47AFoUxA065018; Sat, 10 Aug 2024 15:50:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47AFoUDb065015; Sat, 10 Aug 2024 15:50:30 GMT (envelope-from git) Date: Sat, 10 Aug 2024 15:50:30 GMT Message-Id: <202408101550.47AFoUDb065015@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: aea9dba46b81 - main - 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/main X-Git-Reftype: branch X-Git-Commit: aea9dba46b81abc5c0fd4c42d3ac762d3bc1de37 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=aea9dba46b81abc5c0fd4c42d3ac762d3bc1de37 commit aea9dba46b81abc5c0fd4c42d3ac762d3bc1de37 Author: Mark Johnston AuthorDate: 2024-08-10 15:42:35 +0000 Commit: Mark Johnston CommitDate: 2024-08-10 15:42:35 +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 --- 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); } /*