Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp946142rdb; Tue, 30 Jan 2024 03:36:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFx0lZhgkqRosWmEZqNOx5cddoWkqe3ImnrEenDsRtBHTmwurY7SlMGCtt7TwgikD1b8X32 X-Received: by 2002:a17:902:da92:b0:1d3:4860:591b with SMTP id j18-20020a170902da9200b001d34860591bmr4302772plx.0.1706614600894; Tue, 30 Jan 2024 03:36:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706614600; cv=pass; d=google.com; s=arc-20160816; b=02Rn70gZXt5G3iVvbFjnURUN1Ye4MBRRLF6o8CTZj/FzDCe78B/ZvE3e44EZp40iFV nwuvQBVFhdeqvEPCyMkGkVXEN5BbWhrgZNRMkyqB2UycnZEQftJOlu+xOBYg22M81L+O LTy0ZOImT8wgAwME871sdt2Kyi3odkOaxblaYA7UiXWG4JJqqfj9GmwBLj1qtpyeO8RC 9YYrgFL++ljGSR6hd7XDBCioxTFMlsJGBUoiAe6srn4eJFi3FsVNzg2BGR2g/NhO4YGi kj8HfM4q+4gh4SFmPkE2Ei1RPkfbX8I+ZPLGT/f+YKxgrBlaS/OvSMVxNMQkTaZs+rWi WzMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=BYDF2TL/zYWp4Et6LbNe7cfYCs5e5CRKbCSBMPyyw8A=; fh=q5arC2yiPuR9nyJSV4iAN5anhzqcxGoP5M5NC1J5gxY=; b=JyWGKozYUUKUOQykmu/v8K6BRkw0J6wrf5b4ZPKfy93PxEAp2USxnzJrMwuYN2RzZn 5QYWyEGldRKnlAgiBtg9uWU28v1dUq8LLO6eaNRs7ufDfBGufiwqSxJ0ROpSOcg+Q4kp hGNVcn232X1J1lhUbTUrjPWX4Hk4xA/RDMzCP6gpGEOhBNki4tT3ErvIGrUAblk0nSIN 4breCTlWFW/jlV+upm5kAMxnpzipnuLJEucu1fF9sQODkKgNS9mQ3vyO2nlfeU3AcSpM FmNekeLBMvwkmbvby9JMx7ud2Yjv1xhXmUW7wqxFauiYSnMDn0q7gvJn49mOMZIwm7ie zoPQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-44514-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44514-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b7-20020a170902d50700b001d70b8d77b9si7404734plg.307.2024.01.30.03.36.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 03:36:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44514-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-44514-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44514-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 96F6A28DB92 for ; Tue, 30 Jan 2024 11:31:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 95C6066B5C; Tue, 30 Jan 2024 11:31:06 +0000 (UTC) Received: from mail115-63.sinamail.sina.com.cn (mail115-63.sinamail.sina.com.cn [218.30.115.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 077FA66B33 for ; Tue, 30 Jan 2024 11:31:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.115.63 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706614266; cv=none; b=qsRY/mNlLsrvBDqqPI/LVRCI80J0IuML3NcDL0P0jHZx/misF4jAtla+CSjQY4xAOyGFzYuzCFnDKy1RYkhaMOwyGYyRtECnFHu/yCVkOttTixav8ryY99xgeh/968gpAbmIFMlSvY6eFN4d6MuzxX8l99fzxYENuxHs3U721c4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706614266; c=relaxed/simple; bh=8izGayVFiylM6e6Nv0jsppZ+9+/0Qelwm4RqoWSLt/w=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bS5XqkSvhi0UQxI058KjpS9BLUj3EgNzZ+USFVcEW033ja0BEkfHcpD4ly7fxswthkQENWhD3ShwE16MX+VaCxPp31RG091TE4KA2UAoiXRdgj9OCCSBzVuTB0vQIhEqqjUBoiLtlqbR+mxnxClUC8xKWrNXS3tWHh0o1HAnrBo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; arc=none smtp.client-ip=218.30.115.63 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([116.24.10.30]) by sina.com (10.75.12.45) with ESMTP id 65B8DDE6000075BC; Tue, 30 Jan 2024 19:30:52 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 48242231457765 X-SMAIL-UIID: 1F60C372F9BC48C7B815906CE64D145F-20240130-193052-1 From: Hillf Danton To: Boqun Feng Cc: Tetsuo Handa , syzbot , eadavis@qq.com, Peter Zijlstra , Linus Torvalds , linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [bluetooth?] INFO: task hung in hci_conn_failed Date: Tue, 30 Jan 2024 19:30:37 +0800 Message-Id: <20240130113037.1390-1-hdanton@sina.com> In-Reply-To: References: <20240129044824.1218-1-hdanton@sina.com> <20240129104753.1328-1-hdanton@sina.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Mon, 29 Jan 2024 12:25:13 -0800 Boqun Feng > > Looks to me that debug_show_all_locks() doesn't hold the lockdep lock, > so it's really a best effort race read of all tasks on lock hold > information. Maybe Hillf wants the following? (Completely untested, it > will stop your whole system and print lock holding information). #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c @@ -6611,6 +6611,8 @@ void debug_show_all_locks(void) } pr_warn("\nShowing all locks held in the system:\n"); + local_irq_disable(); + lockdep_lock(); rcu_read_lock(); for_each_process_thread(g, p) { if (!p->lockdep_depth) @@ -6620,6 +6622,8 @@ void debug_show_all_locks(void) touch_all_softlockup_watchdogs(); } rcu_read_unlock(); + lockdep_unlock(); + local_irq_enable(); pr_warn("\n"); pr_warn("=============================================\n\n"); --