From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+d6cd076b385aefcb6b16@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [bluetooth?] WARNING in l2cap_do_send (2)
Date: Thu, 28 Dec 2023 19:36:57 +0800 [thread overview]
Message-ID: <20231228113657.1673-1-hdanton@sina.com> (raw)
In-Reply-To: <00000000000081a088060d7190cb@google.com>
On Tue, 26 Dec 2023 14:54:27 -0800
> HEAD commit: fbafc3e621c3 Merge tag 'for_linus' of git://git.kernel.org..
> git tree: upstream
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14125c81e80000
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
--- x/net/bluetooth/hci_core.c
+++ y/net/bluetooth/hci_core.c
@@ -3235,9 +3235,12 @@ void hci_send_acl(struct hci_chan *chan,
BT_DBG("%s chan %p flags 0x%4.4x", hdev->name, chan, flags);
+ if (!mutex_trylock(&hdev->req_lock))
+ return;
hci_queue_acl(chan, &chan->data_q, skb, flags);
queue_work(hdev->workqueue, &hdev->tx_work);
+ mutex_unlock(&hdev->req_lock);
}
/* Send SCO data */
--
next prev parent reply other threads:[~2023-12-28 11:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-26 22:54 [syzbot] [bluetooth?] WARNING in l2cap_do_send (2) syzbot
2023-12-27 11:50 ` Hillf Danton
2023-12-27 12:07 ` syzbot
2023-12-28 11:36 ` Hillf Danton [this message]
2023-12-28 11:58 ` 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=20231228113657.1673-1-hdanton@sina.com \
--to=hdanton@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+d6cd076b385aefcb6b16@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