linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Edward Adam Davis <eadavis@qq.com>
To: syzbot+a984066a63e9c1e62662@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [bluetooth?] INFO: task hung in hci_conn_failed
Date: Sun, 28 Jan 2024 09:31:18 +0800	[thread overview]
Message-ID: <tencent_4A66EF6ACD6878526F542C2D6D109794E80A@qq.com> (raw)
In-Reply-To: <000000000000ba736b060ff5da23@google.com>

please test task hung in hci_conn_failed

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master

diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c
index a6fc8a2a5c67..2cc194ad37ba 100644
--- a/net/bluetooth/hci_sync.c
+++ b/net/bluetooth/hci_sync.c
@@ -5338,7 +5338,7 @@ int hci_abort_conn_sync(struct hci_dev *hdev, struct hci_conn *conn, u8 reason)
 
 	/* Check if the connection has been cleaned up concurrently */
 	c = hci_conn_hash_lookup_handle(hdev, handle);
-	if (!c || c != conn) {
+	if (!c || c != conn || conn->state == BT_CLOSED) {
 		err = 0;
 		goto unlock;
 	}


  reply	other threads:[~2024-01-28  1:37 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-27 23:34 [syzbot] [bluetooth?] INFO: task hung in hci_conn_failed syzbot
2024-01-28  1:31 ` Edward Adam Davis [this message]
2024-01-28  2:31   ` syzbot
2024-01-29  4:48     ` Hillf Danton
2024-01-29  5:53       ` Tetsuo Handa
2024-01-29 10:47         ` Hillf Danton
2024-01-29 11:28           ` Tetsuo Handa
2024-01-29 20:25             ` Boqun Feng
2024-01-30 11:30               ` Hillf Danton
2024-01-30 15:45                 ` syzbot
2024-01-30 23:22                   ` Hillf Danton
2024-01-31  6:38                   ` Boqun Feng
2024-01-31 10:27                     ` Hillf Danton
2024-01-31 11:29                       ` syzbot
2024-01-28  9:15 ` Hillf Danton
2024-01-28  9:41   ` syzbot
2024-01-28 11:28 ` Hillf Danton
2024-01-28 12:06   ` syzbot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tencent_4A66EF6ACD6878526F542C2D6D109794E80A@qq.com \
    --to=eadavis@qq.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+a984066a63e9c1e62662@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).