From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp153-163.sina.com.cn (smtp153-163.sina.com.cn [61.135.153.163]) (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 6C78F3BB57 for ; Sun, 1 Feb 2026 02:31:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=61.135.153.163 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769913074; cv=none; b=BMml+TtFJD6tjppwWyogyPlRv+3e5BxOn7yKBKZaIU6R3MYPSyCIGi62FoFJoQuFw4GmT9I753iuXcwFn27qrftcW2FJLc9Nh9DGqTIPQwGROz7vai+aCqlv9oiL/zWBwv761McyKXc6iL0H8D2vNe+LH1tP3FFswhEpVX27Vr0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769913074; c=relaxed/simple; bh=L/aDwzouBI5w+00nB+NNDTH+YXcYJukDq/2KiyDqDDM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WXMyNL1WpEFC46UJJgzBQfHD82bSTUytlFYK4/gR7p0Be4U3QpjyD9o8JODcx1O+11eaAUeObLlgccVDWz0CsdteTgX7qkVEWDIbwH/5kBj0dHQJrtcRRUmCwmewTFAsZHN9M+NY8O2ycOyIAGWu9RA7KMU2k22JNIODQjdfjAE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; dkim=pass (1024-bit key) header.d=sina.com header.i=@sina.com header.b=fhZ9fYej; arc=none smtp.client-ip=61.135.153.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=sina.com header.i=@sina.com header.b="fhZ9fYej" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sina.com; s=201208; t=1769913067; bh=dhfkWWdYoZ5DCiOsQaSUpPqKLY48wqV6F5rNd5AdN4k=; h=From:Subject:Date:Message-ID; b=fhZ9fYej66aviCXFRME8cp06FTyrChm8U9c0vmmx3qqS1Rr6ALjz4p1YdIEowFZ6q qEYqxcSVwQytitJ479bd2bbZ5/+egAlt//lhuJPrXn8xV29QdQ5p7n6NuofcspkFKW fOdfnXj46DEK4UYAyonQsHzEsbgemAO+nxWkfNb4= X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([114.249.62.144]) by sina.com (10.54.253.32) with ESMTP id 697EB76300006121; Sun, 1 Feb 2026 10:16:04 +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: 8566764456943 X-SMAIL-UIID: A307CD8CB93B43469A0661BEF1C40047-20260201-101604-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [bluetooth?] WARNING in hci_connect_sco Date: Sun, 1 Feb 2026 10:15:55 +0800 Message-ID: <20260201021556.2474-1-hdanton@sina.com> In-Reply-To: <697e08a4.050a0220.16b13.0092.GAE@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit > Date: Sat, 31 Jan 2026 05:50:28 -0800 > syzbot has found a reproducer for the following issue on: > > HEAD commit: ad9a728a3388 Merge tag 'for-linus-iommufd' of git://git.ke.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=15513c5a580000 > kernel config: https://syzkaller.appspot.com/x/.config?x=f1fac0919970b671 > dashboard link: https://syzkaller.appspot.com/bug?extid=5897b3c764f5989ea942 > compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17b45322580000 #syz test --- x/include/net/bluetooth/hci_core.h +++ y/include/net/bluetooth/hci_core.h @@ -1687,6 +1687,7 @@ static inline void hci_conn_drop(struct if (atomic_dec_and_test(&conn->refcnt)) { unsigned long timeo; + struct hci_dev *hdev; switch (conn->type) { case ACL_LINK: @@ -1707,8 +1708,14 @@ static inline void hci_conn_drop(struct } cancel_delayed_work(&conn->disc_work); - queue_delayed_work(conn->hdev->workqueue, - &conn->disc_work, timeo); + hdev = conn->hdev; + rcu_read_lock(); + if (test_bit(HCI_RESET, &hdev->flags) || + hci_dev_test_flag(hdev, HCI_CMD_DRAIN_WORKQUEUE)) + ; + else + queue_delayed_work(hdev->workqueue, &conn->disc_work, timeo); + rcu_read_unlock(); } } --