program: ioctl$SIOCSIFHWADDR(0xffffffffffffffff, 0x8b26, 0x0) r0 = socket$nl_netfilter(0x10, 0x3, 0xc) sendmsg$IPSET_CMD_CREATE(r0, &(0x7f0000000040)={0x0, 0x0, &(0x7f0000000000)={&(0x7f00000000c0)=ANY=[@ANYBLOB="4c000000020601080000000000000000000000400500010006000000050005000200000005000400000000000900020073797a310000000011000300686173683a69702c6d61726b000000008ec6d81d17d066c807e0db11b667af3f50b9d636c57c32fb83634671feb70157cac17bbcc3ed2aa80265f9f42439ebe5c2dd4a167ffefa3dc04d0e683ef1a404345b4750def2cd897080f58d7cb7fe4073cabc680de4abce1fc10e581ff15f0fb814c9f8819c598812c666399249e1b07f56e0ef39eeb772e3f5dabe2cb7493162dff7a8ff9c24e39b09533a3d"], 0x4c}}, 0x0) r1 = syz_open_dev$tty1(0xc, 0x4, 0x1) ioctl$KDSETLED(r1, 0x4b32, 0x6) syz_usb_connect(0x6, 0x1fc, &(0x7f0000000780)={{0x12, 0x1, 0x250, 0xb8, 0x0, 0x51, 0x8, 0x1410, 0xa007, 0x3e68, 0x1, 0x2, 0x3, 0x1, [{{0x9, 0x2, 0x1ea, 0x3, 0xe, 0x0, 0x30, 0x3, [{{0x9, 0x4, 0x3, 0x9, 0x2, 0x7f, 0x54, 0xcc, 0x0, [], [{{0x9, 0x5, 0x2, 0x4, 0x400, 0x4, 0x4, 0x3, [@generic={0x80, 0x1, "09661bede31b6d40ffd5a6457d3483a7c64a2cf09c6b30e3afe9caf13ed9a2924ed053d2b4b24aedb4035d4212c8a5f7df3b67916187c245f81035efe9b53a8d79988d4b00a8aa5926f8b9103fd0e543cebd14ca5d0825146c7ff12ef0b8fe612538542d6f5c9fdc7894374795b8ccb6bdb303b42aa86746d3370ad7a31c"}]}}, {{0x9, 0x5, 0x4, 0x10, 0x40, 0x5, 0x2, 0x9, [@uac_iso={0x7, 0x25, 0x1, 0x83, 0x2, 0x400}, @uac_iso={0x7, 0x25, 0x1, 0x81, 0x1, 0x7}]}}]}}, {{0x9, 0x4, 0x5b, 0x6, 0xc, 0x31, 0x71, 0x35, 0x6, [], [{{0x9, 0x5, 0x5, 0x10, 0x8, 0x6, 0x0, 0xd3, [@uac_iso={0x7, 0x25, 0x1, 0x80, 0x2}]}}, {{0x9, 0x5, 0x6, 0x10, 0x20, 0x80, 0xff, 0x4, [@uac_iso={0x7, 0x25, 0x1, 0x1, 0x6, 0x2}]}}, {{0x9, 0x5, 0x0, 0x10, 0x400, 0x9, 0x4, 0x1}}, {{0x9, 0x5, 0x4, 0x10, 0x40, 0xab, 0x0, 0x5}}, {{0x9, 0x5, 0x5, 0x2, 0x20, 0x6, 0xd, 0xd, [@generic={0x48, 0x66, "42bc0201de8fa807c3b757b1c182c0f4c59af7c59293e1bc41956912be0eafd96bdf03aa6117bc3e50fbee59a6e5dfc7206516e091fce94c0c778a134b5368d1af31d240535b"}, @uac_iso={0x7, 0x25, 0x1, 0x80, 0x2, 0x1}]}}, {{0x9, 0x5, 0xb, 0x8, 0x400, 0x1, 0xa9, 0x5, [@uac_iso={0x7, 0x25, 0x1, 0x3, 0x32, 0xbf6}, @uac_iso={0x7, 0x25, 0x1, 0x2, 0x6, 0x15ac}]}}, {{0x9, 0x5, 0x2, 0x14, 0x0, 0xc7, 0x7, 0xe}}, {{0x9, 0x5, 0x1, 0x4, 0x200, 0x8, 0x5, 0x80}}, {{0x9, 0x5, 0x5, 0x10, 0x200, 0x8, 0x2, 0xae, [@uac_iso={0x7, 0x25, 0x1, 0x103, 0xfb, 0xff}]}}, {{0x9, 0x5, 0x0, 0x10, 0x40, 0x8, 0x0, 0x3}}, {{0x9, 0x5, 0xc, 0x4, 0x200, 0x3, 0xd, 0x7, [@generic={0x41, 0xf, "8c1ea652c620acd24cbf2bfeb921dfc3f2c147f7c05a53e4f7db6742a64c76fe8d2f319387c80165b1ad6b9054e93ae7385d785e1c040f2c4e5c2388ef8791"}]}}, {{0x9, 0x5, 0x9, 0x0, 0x20, 0x1, 0x8, 0x2, [@uac_iso={0x7, 0x25, 0x1, 0x80, 0x4, 0x6}]}}]}}, {{0x9, 0x4, 0xf5, 0x1, 0x0, 0xf, 0xd4, 0xdf, 0x3}}]}}]}}, 0x0) r2 = socket$inet_udplite(0x2, 0x2, 0x88) ioctl$sock_SIOCGIFINDEX(r2, 0x8933, &(0x7f0000000340)={'bridge0\x00', 0x0}) sendmsg$nl_route(0xffffffffffffffff, &(0x7f0000000040)={0x0, 0x0, &(0x7f0000000080)={&(0x7f0000000940)=ANY=[@ANYBLOB="440000001300290a000000000000000007000000", @ANYRES32=r3, @ANYBLOB="00000000000000001c001a800800028008000200080000003e127a510800020010"], 0x44}}, 0x0) sendmsg$nl_route(0xffffffffffffffff, &(0x7f0000000000)={0x0, 0x0, &(0x7f0000000180)={&(0x7f0000000500)=ANY=[], 0xa0}}, 0x0) r4 = socket(0x10, 0x3, 0x0) sendmmsg(r4, &(0x7f0000000000), 0x4000000000001f2, 0xfff0) sendmsg$nl_route(r4, &(0x7f0000000400)={0x0, 0x0, &(0x7f00000003c0)={&(0x7f0000000300)=@bridge_getvlan={0x20, 0x72, 0x7e3bfe4fa73db39f, 0x4000000, 0x0, {0x7, 0x0, 0x0, r3}, [@BRIDGE_VLANDB_DUMP_FLAGS={0x8, 0x1, 0x1}]}, 0x20}}, 0x0) r5 = socket$inet6_sctp(0xa, 0x5, 0x84) setsockopt$inet_sctp6_SCTP_EVENTS(r5, 0x84, 0xb, &(0x7f0000000280)={0x0, 0x4}, 0xe) shutdown(r5, 0x0) getsockopt$inet_sctp6_SCTP_SOCKOPT_CONNECTX3(r5, 0x84, 0x6f, &(0x7f0000000000)={0x0, 0x10, &(0x7f00000002c0)=[@in={0x2, 0x0, @local}]}, &(0x7f0000000240)=0x10) setsockopt$inet_sctp6_SCTP_CONTEXT(r5, 0x84, 0x11, &(0x7f0000000180)={r6}, 0x8) r7 = syz_init_net_socket$bt_l2cap(0x1f, 0x2, 0x0) connect$bt_l2cap(r7, &(0x7f0000000080)={0x1f, 0x0, @fixed={'\xaa\xaa\xaa\xaa\xaa', 0x10}, 0x7ff}, 0xe) r8 = syz_init_net_socket$bt_hidp(0x1f, 0x3, 0x6) ioctl$sock_bt_hidp_HIDPCONNADD(r8, 0x400448c8, &(0x7f00000000c0)={r7, r7, 0x206, 0x0, 0x0, 0x2, 0x72, 0x1, 0x3, 0x7, 0x0, 0x8, 'syz1\x00'}) r9 = syz_init_net_socket$bt_hci(0x1f, 0x3, 0x1) ioctl$sock_bt_hci(r9, 0x400448ca, 0x0) ioctl$AUTOFS_DEV_IOCTL_ISMOUNTPOINT(0xffffffffffffffff, 0xc018937e, &(0x7f00000001c0)={{0x1, 0x1, 0x18, r0}, './file0\x00'}) setsockopt$ALG_SET_KEY(r10, 0x117, 0x1, &(0x7f0000000200)="2f66ecaaf7537060228316776ac2766d8c4e", 0x12) socket$nl_netfilter(0x10, 0x3, 0xc) sendmsg$IPSET_CMD_ADD(r0, &(0x7f00000002c0)={0x0, 0x0, &(0x7f0000000080)={&(0x7f00000003c0)=ANY=[@ANYBLOB="48000000090601020000000000000000050000042000078000001c400000080008000a40cbdfa19339fbbf5e010000000900020073797a31000000000000094000000002"], 0x48}, 0x1, 0x0, 0x0, 0x800}, 0x40c0882) socket$inet_udplite(0x2, 0x2, 0x88) socket$igmp(0x2, 0x3, 0x2) [ 86.088361][ T5314] Bluetooth: hci0: command tx timeout [ 86.159324][ T5338] UDPLite: UDP-Lite is deprecated and scheduled to be removed in 2025, please contact the netdev mailing list [ 86.367111][ T5342] input: Bluetooth HID Boot Protocol Device as /devices/virtual/bluetooth/hci0/hci0:200/input5 [ 86.549934][ T5342] netlink: 20 bytes leftover after parsing attributes in process `syz.0.0'. [ 86.601361][ T9] cfg80211: failed to load regulatory.db [ 86.635970][ T5343] [ 86.637360][ T5343] ====================================================== [ 86.640493][ T5343] WARNING: possible circular locking dependency detected [ 86.643562][ T5343] syzkaller #0 Not tainted [ 86.645592][ T5343] ------------------------------------------------------ [ 86.648684][ T5343] syz.0.0/5343 is trying to acquire lock: [ 86.651116][ T5343] ffff888050794040 ((work_completion)(&(&conn->info_timer)->work)){+.+.}-{0:0}, at: __flush_work+0xd2/0xbc0 [ 86.656176][ T5343] [ 86.656176][ T5343] but task is already holding lock: [ 86.659367][ T5343] ffff888050794338 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x70/0x680 [ 86.663092][ T5343] [ 86.663092][ T5343] which lock already depends on the new lock. [ 86.663092][ T5343] [ 86.667518][ T5343] [ 86.667518][ T5343] the existing dependency chain (in reverse order) is: [ 86.671395][ T5343] [ 86.671395][ T5343] -> #1 (&conn->lock#2){+.+.}-{4:4}: [ 86.674565][ T5343] lock_acquire+0x120/0x360 [ 86.676791][ T5343] __mutex_lock+0x187/0x1350 [ 86.679004][ T5343] l2cap_info_timeout+0x60/0xa0 [ 86.681434][ T5343] process_scheduled_works+0xade/0x17b0 [ 86.684072][ T5343] worker_thread+0x8a0/0xda0 [ 86.686375][ T5343] kthread+0x70e/0x8a0 [ 86.688523][ T5343] ret_from_fork+0x436/0x7d0 [ 86.690825][ T5343] ret_from_fork_asm+0x1a/0x30 [ 86.693130][ T5343] [ 86.693130][ T5343] -> #0 ((work_completion)(&(&conn->info_timer)->work)){+.+.}-{0:0}: [ 86.697424][ T5343] validate_chain+0xb9b/0x2140 [ 86.699679][ T5343] __lock_acquire+0xab9/0xd20 [ 86.701957][ T5343] lock_acquire+0x120/0x360 [ 86.704163][ T5343] __flush_work+0x6b8/0xbc0 [ 86.706343][ T5343] __cancel_work_sync+0xbe/0x110 [ 86.708713][ T5343] l2cap_conn_del+0x4f0/0x680 [ 86.711163][ T5343] hci_conn_hash_flush+0x10a/0x230 [ 86.713790][ T5343] hci_dev_close_sync+0xaef/0x1330 [ 86.716261][ T5343] hci_dev_close+0x108/0x200 [ 86.718457][ T5343] sock_do_ioctl+0xdc/0x300 [ 86.720648][ T5343] sock_ioctl+0x576/0x790 [ 86.722750][ T5343] __se_sys_ioctl+0xf9/0x170 [ 86.725187][ T5343] do_syscall_64+0xfa/0x3b0 [ 86.727472][ T5343] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 86.730323][ T5343] [ 86.730323][ T5343] other info that might help us debug this: [ 86.730323][ T5343] [ 86.734595][ T5343] Possible unsafe locking scenario: [ 86.734595][ T5343] [ 86.737733][ T5343] CPU0 CPU1 [ 86.739999][ T5343] ---- ---- [ 86.742401][ T5343] lock(&conn->lock#2); [ 86.744151][ T5343] lock((work_completion)(&(&conn->info_timer)->work)); [ 86.747877][ T5343] lock(&conn->lock#2); [ 86.751191][ T5343] lock((work_completion)(&(&conn->info_timer)->work)); [ 86.754216][ T5343] [ 86.754216][ T5343] *** DEADLOCK *** [ 86.754216][ T5343] [ 86.757716][ T5343] 5 locks held by syz.0.0/5343: [ 86.759836][ T5343] #0: ffff888035740dc8 (&hdev->req_lock){+.+.}-{4:4}, at: hci_dev_close+0x100/0x200 [ 86.763700][ T5343] #1: ffff8880357400b8 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x66a/0x1330 [ 86.767779][ T5343] #2: ffffffff8f22c828 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_hash_flush+0xa1/0x230 [ 86.772437][ T5343] #3: ffff888050794338 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x70/0x680 [ 86.776949][ T5343] #4: ffffffff8dd3b160 (rcu_read_lock){....}-{1:3}, at: __flush_work+0xd2/0xbc0 [ 86.780966][ T5343] [ 86.780966][ T5343] stack backtrace: [ 86.783546][ T5343] CPU: 0 UID: 0 PID: 5343 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 86.783601][ T5343] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 86.783610][ T5343] Call Trace: [ 86.783619][ T5343] [ 86.783625][ T5343] dump_stack_lvl+0x189/0x250 [ 86.783645][ T5343] ? __pfx_dump_stack_lvl+0x10/0x10 [ 86.783660][ T5343] ? __pfx__printk+0x10/0x10 [ 86.783679][ T5343] ? print_lock_name+0xde/0x100 [ 86.783695][ T5343] print_circular_bug+0x2ee/0x310 [ 86.783711][ T5343] check_noncircular+0x134/0x160 [ 86.783723][ T5343] validate_chain+0xb9b/0x2140 [ 86.783736][ T5343] ? do_raw_spin_lock+0x121/0x290 [ 86.783750][ T5343] ? look_up_lock_class+0x74/0x170 [ 86.783762][ T5343] ? register_lock_class+0x51/0x320 [ 86.783773][ T5343] __lock_acquire+0xab9/0xd20 [ 86.783785][ T5343] ? __flush_work+0xd2/0xbc0 [ 86.783797][ T5343] lock_acquire+0x120/0x360 [ 86.783807][ T5343] ? __flush_work+0xd2/0xbc0 [ 86.783822][ T5343] ? _raw_spin_unlock_irq+0x23/0x50 [ 86.783837][ T5343] ? __flush_work+0xd2/0xbc0 [ 86.783849][ T5343] __flush_work+0x6b8/0xbc0 [ 86.783860][ T5343] ? __flush_work+0xd2/0xbc0 [ 86.783873][ T5343] ? __flush_work+0xd2/0xbc0 [ 86.783886][ T5343] ? __pfx___flush_work+0x10/0x10 [ 86.783899][ T5343] ? __pfx_wq_barrier_func+0x10/0x10 [ 86.783914][ T5343] ? __pfx___cancel_work+0x10/0x10 [ 86.783928][ T5343] ? hci_conn_drop+0x14d/0x280 [ 86.783939][ T5343] __cancel_work_sync+0xbe/0x110 [ 86.783953][ T5343] l2cap_conn_del+0x4f0/0x680 [ 86.783969][ T5343] ? __pfx_l2cap_disconn_cfm+0x10/0x10 [ 86.783984][ T5343] hci_conn_hash_flush+0x10a/0x230 [ 86.784001][ T5343] hci_dev_close_sync+0xaef/0x1330 [ 86.784017][ T5343] ? __pfx_hci_dev_close_sync+0x10/0x10 [ 86.784030][ T5343] ? do_raw_read_unlock+0x3d/0x80 [ 86.784046][ T5343] hci_dev_close+0x108/0x200 [ 86.784060][ T5343] sock_do_ioctl+0xdc/0x300 [ 86.784076][ T5343] ? __pfx_sock_do_ioctl+0x10/0x10 [ 86.784089][ T5343] ? __lock_acquire+0xab9/0xd20 [ 86.784104][ T5343] sock_ioctl+0x576/0x790 [ 86.784118][ T5343] ? __pfx_sock_ioctl+0x10/0x10 [ 86.784131][ T5343] ? __fget_files+0x2a/0x420 [ 86.784145][ T5343] ? __fget_files+0x3a0/0x420 [ 86.784157][ T5343] ? __fget_files+0x2a/0x420 [ 86.784171][ T5343] ? bpf_lsm_file_ioctl+0x9/0x20 [ 86.784181][ T5343] ? __pfx_sock_ioctl+0x10/0x10 [ 86.784193][ T5343] __se_sys_ioctl+0xf9/0x170 [ 86.784205][ T5343] do_syscall_64+0xfa/0x3b0 [ 86.784218][ T5343] ? lockdep_hardirqs_on+0x9c/0x150 [ 86.784228][ T5343] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 86.784239][ T5343] ? clear_bhb_loop+0x60/0xb0 [ 86.784252][ T5343] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 86.784262][ T5343] RIP: 0033:0x7f146cb8eec9 [ 86.784273][ T5343] Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 [ 86.784283][ T5343] RSP: 002b:00007f146d9d9038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 86.784295][ T5343] RAX: ffffffffffffffda RBX: 00007f146cde6270 RCX: 00007f146cb8eec9 [ 86.784303][ T5343] RDX: 0000000000000000 RSI: 00000000400448ca RDI: 000000000000000c [ 86.784311][ T5343] RBP: 00007f146cc11f91 R08: 0000000000000000 R09: 0000000000000000 [ 86.784318][ T5343] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 86.784324][ T5343] R13: 00007f146cde6308 R14: 00007f146cde6270 R15: 00007fff2c836868 [ 86.784335][ T5343] [ 87.042656][ T5338] Zero length message leads to an empty skb [ 88.116709][ T5314] Bluetooth: hci0: command tx timeout [ 90.196520][ T5314] Bluetooth: hci0: command tx timeout [ 92.276488][ T5314] Bluetooth: hci0: command tx timeout