Re: [syzbot] [bluetooth?] BUG: workqueue leaked atomic, lock or RCU: kworker/u9:NUM[NUM]

From: Hillf Danton
Date: Thu Jul 11 2024 - 07:17:57 EST


On Wed, 10 Jul 2024 16:45:19 -0700
> syzbot has found a reproducer for the following issue on:
>
> HEAD commit: ef445d1539dd Merge remote-tracking branches 'origin/arm64-..
> git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=176e2c7e980000

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci

--- x/net/bluetooth/l2cap_core.c
+++ y/net/bluetooth/l2cap_core.c
@@ -6774,6 +6774,7 @@ static void l2cap_conless_channel(struct
bt_cb(skb)->l2cap.psm = psm;

if (!chan->ops->recv(chan, skb)) {
+ l2cap_chan_unlock(chan);
l2cap_chan_put(chan);
return;
}
--