[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231228113657.1673-1-hdanton@sina.com>
Date: Thu, 28 Dec 2023 19:36:57 +0800
From: Hillf Danton <hdanton@...a.com>
To: syzbot <syzbot+d6cd076b385aefcb6b16@...kaller.appspotmail.com>
Cc: linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [bluetooth?] WARNING in l2cap_do_send (2)
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 */
--
Powered by blists - more mailing lists