===================================== WARNING: bad unlock balance detected! 6.3.0-rc7-syzkaller-g14f8db1c0f9a #0 Not tainted ------------------------------------- kworker/u5:3/6036 is trying to release lock (&conn->chan_lock) at: [] l2cap_disconnect_rsp+0x210/0x30c net/bluetooth/l2cap_core.c:4697 but there are no more locks to release! other info that might help us debug this: 2 locks held by kworker/u5:3/6036: #0: ffff0000dae1e138 ((wq_completion)hci0#2){+.+.}-{0:0}, at: process_one_work+0x664/0x12d4 kernel/workqueue.c:2363 #1: ffff80001eb37c20 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_one_work+0x6a8/0x12d4 kernel/workqueue.c:2365 stack backtrace: CPU: 1 PID: 6036 Comm: kworker/u5:3 Not tainted 6.3.0-rc7-syzkaller-g14f8db1c0f9a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Workqueue: hci0 hci_rx_work Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 print_unlock_imbalance_bug+0x250/0x2a4 kernel/locking/lockdep.c:5109 lock_release+0x4ac/0x9ac kernel/locking/lockdep.c:5689 __mutex_unlock_slowpath+0xe0/0x6b4 kernel/locking/mutex.c:907 mutex_unlock+0x18/0x24 kernel/locking/mutex.c:543 l2cap_disconnect_rsp+0x210/0x30c net/bluetooth/l2cap_core.c:4697 l2cap_bredr_sig_cmd+0x974/0x7e94 net/bluetooth/l2cap_core.c:5748 l2cap_sig_channel net/bluetooth/l2cap_core.c:6507 [inline] l2cap_recv_frame+0x83c/0x6a14 net/bluetooth/l2cap_core.c:7786 l2cap_recv_acldata+0x4f4/0x163c net/bluetooth/l2cap_core.c:8504 hci_acldata_packet net/bluetooth/hci_core.c:3828 [inline] hci_rx_work+0x2cc/0x8b8 net/bluetooth/hci_core.c:4063 process_one_work+0x788/0x12d4 kernel/workqueue.c:2390 worker_thread+0x8e0/0xfe8 kernel/workqueue.c:2537 kthread+0x24c/0x2d4 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Bluetooth: hci4: SCO packet for unknown connection handle 1443 Bluetooth: hci4: SCO packet for unknown connection handle 1443 Bluetooth: hci4: SCO packet for unknown connection handle 1443 Bluetooth: hci4: SCO packet for unknown connection handle 1443 Bluetooth: hci4: SCO packet for unknown connection handle 1443 Bluetooth: hci4: SCO packet for unknown connection handle 1443 Bluetooth: hci4: SCO packet for unknown connection handle 1443 Bluetooth: hci4: SCO packet for unknown connection handle 1443 Bluetooth: hci4: SCO packet for unknown connection handle 1443 Bluetooth: hci5: ISO packet for unknown connection handle 1846 Bluetooth: hci5: ISO packet for unknown connection handle 1846 Bluetooth: Wrong link type (-22) Bluetooth: Wrong link type (-22) Bluetooth: Wrong link type (-22) Bluetooth: Wrong link type (-22) Bluetooth: Wrong link type (-22) Bluetooth: hci4: ACL packet for unknown connection handle 0 Bluetooth: hci4: ACL packet for unknown connection handle 0 Bluetooth: hci4: ACL packet for unknown connection handle 0 sysfs: cannot create duplicate filename '/devices/virtual/bluetooth/hci4/hci4:200' CPU: 1 PID: 6036 Comm: kworker/u5:3 Not tainted 6.3.0-rc7-syzkaller-g14f8db1c0f9a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Workqueue: hci4 hci_rx_work Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 sysfs_warn_dup fs/sysfs/dir.c:30 [inline] sysfs_create_dir_ns+0x278/0x318 fs/sysfs/dir.c:63 create_dir lib/kobject.c:63 [inline] kobject_add_internal+0x598/0xb14 lib/kobject.c:231 kobject_add_varg lib/kobject.c:366 [inline] kobject_add+0x14c/0x21c lib/kobject.c:418 device_add+0x400/0xf58 drivers/base/core.c:3527 hci_conn_add_sysfs+0xa8/0x1d8 net/bluetooth/hci_sysfs.c:56 le_conn_complete_evt+0x9b8/0x1048 net/bluetooth/hci_event.c:5931 hci_le_enh_conn_complete_evt+0x114/0x3e8 net/bluetooth/hci_event.c:5994 hci_le_meta_evt+0x26c/0x408 net/bluetooth/hci_event.c:7148 hci_event_func net/bluetooth/hci_event.c:7478 [inline] hci_event_packet+0x5fc/0xf3c net/bluetooth/hci_event.c:7533 hci_rx_work+0x32c/0x8b8 net/bluetooth/hci_core.c:4058 process_one_work+0x788/0x12d4 kernel/workqueue.c:2390 worker_thread+0x8e0/0xfe8 kernel/workqueue.c:2537 kthread+0x24c/0x2d4 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 kobject_add_internal failed for hci4:200 with -EEXIST, don't try to register things with the same name in the same directory. Bluetooth: hci4: failed to register connection device Bluetooth: hci4: Ignoring HCI_Connection_Complete for existing connection Bluetooth: Unexpected continuation frame (len 56) Bluetooth: Unexpected continuation frame (len 56) Bluetooth: Unexpected continuation frame (len 56) Bluetooth: Unexpected continuation frame (len 56) Bluetooth: hci5: command 0x0406 tx timeout Bluetooth: hci4: ACL packet for unknown connection handle 3304 Bluetooth: hci4: ACL packet for unknown connection handle 3304 Bluetooth: hci3: ACL packet for unknown connection handle 87 Bluetooth: hci3: ACL packet for unknown connection handle 87 Bluetooth: hci3: unexpected event 0x45 length: 14 > 5 Bluetooth: hci3: unexpected event 0x45 length: 14 > 5 Bluetooth: hci3: unexpected event 0x45 length: 14 > 5 Bluetooth: hci3: unexpected event 0x45 length: 14 > 5 Bluetooth: Unexpected continuation frame (len 18) Bluetooth: Unexpected start frame (len 4) Bluetooth: Unexpected start frame (len 4) bt_err_ratelimited: 26 callbacks suppressed Bluetooth: hci4: SCO packet for unknown connection handle 0 Bluetooth: hci1: ACL packet for unknown connection handle 0 Bluetooth: hci4: unexpected event 0x03 length: 56 > 11 Bluetooth: hci1: ACL packet for unknown connection handle 0 Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: Frame is too long (len 21, expected len 4) Bluetooth: hci5: unexpected event 0x01 length: 4 > 1 Bluetooth: hci5: unexpected event 0x01 length: 4 > 1 Bluetooth: hci5: unexpected event 0x01 length: 4 > 1