Warning: Permanently added '10.128.10.16' (ED25519) to the list of known hosts. syzkaller login: [ 33.951886][ T4245] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 33.954389][ T4245] Bluetooth: hci1: unexpected cc 0x0c03 length: 249 > 1 [ 33.954981][ T4246] Bluetooth: hci4: unexpected cc 0x0c03 length: 249 > 1 [ 33.956636][ T4245] Bluetooth: hci2: unexpected cc 0x0c03 length: 249 > 1 [ 33.958934][ T4246] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 33.960739][ T4245] Bluetooth: hci3: unexpected cc 0x0c03 length: 249 > 1 [ 33.962837][ T4246] Bluetooth: hci1: unexpected cc 0x1003 length: 249 > 9 [ 33.964225][ T4247] Bluetooth: hci4: unexpected cc 0x1003 length: 249 > 9 [ 33.966372][ T4246] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [ 33.967513][ T4247] Bluetooth: hci2: unexpected cc 0x1003 length: 249 > 9 [ 33.970464][ T4246] Bluetooth: hci3: unexpected cc 0x1003 length: 249 > 9 [ 33.971436][ T4247] Bluetooth: hci1: unexpected cc 0x1001 length: 249 > 9 [ 33.973275][ T4246] Bluetooth: hci4: unexpected cc 0x1001 length: 249 > 9 [ 33.975514][ T4248] Bluetooth: hci1: unexpected cc 0x0c23 length: 249 > 4 [ 33.976710][ T4246] Bluetooth: hci2: unexpected cc 0x1001 length: 249 > 9 [ 33.977980][ T4245] Bluetooth: hci3: unexpected cc 0x1001 length: 249 > 9 [ 33.981222][ T4246] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [ 33.982177][ T4248] Bluetooth: hci1: unexpected cc 0x0c25 length: 249 > 3 [ 33.984794][ T4246] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3 [ 33.985238][ T4247] Bluetooth: hci2: unexpected cc 0x0c23 length: 249 > 4 [ 33.987881][ T4246] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 [ 33.989023][ T4248] Bluetooth: hci1: unexpected cc 0x0c38 length: 249 > 2 [ 33.993840][ T4249] Bluetooth: hci3: unexpected cc 0x0c23 length: 249 > 4 [ 33.995837][ T4245] Bluetooth: hci4: unexpected cc 0x0c23 length: 249 > 4 [ 34.003888][ T4248] Bluetooth: hci4: unexpected cc 0x0c25 length: 249 > 3 [ 34.006004][ T4248] Bluetooth: hci2: unexpected cc 0x0c25 length: 249 > 3 [ 34.007970][ T4248] Bluetooth: hci4: unexpected cc 0x0c38 length: 249 > 2 [ 34.011250][ T4249] Bluetooth: hci3: unexpected cc 0x0c25 length: 249 > 3 [ 34.013357][ T4249] Bluetooth: hci3: unexpected cc 0x0c38 length: 249 > 2 [ 34.031616][ T4246] Bluetooth: hci2: unexpected cc 0x0c38 length: 249 > 2 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 36.019599][ T4249] Bluetooth: hci0: command 0x0409 tx timeout [ 36.029788][ T4249] Bluetooth: hci3: command 0x0409 tx timeout [ 36.031439][ T4249] Bluetooth: hci1: command 0x0409 tx timeout [ 36.099422][ T4241] Bluetooth: hci2: command 0x0409 tx timeout [ 36.101209][ T4241] Bluetooth: hci4: command 0x0409 tx timeout executing program executing program executing program executing program executing program [ 38.099347][ T4249] Bluetooth: hci1: command 0x041b tx timeout [ 38.101133][ T4249] Bluetooth: hci3: command 0x041b tx timeout [ 38.102661][ T4249] Bluetooth: hci0: command 0x041b tx timeout [ 38.189382][ T4241] Bluetooth: hci4: command 0x041b tx timeout [ 38.191185][ T4241] Bluetooth: hci2: command 0x041b tx timeout executing program executing program executing program [ 39.072551][ T4250] [ 39.073169][ T4250] ====================================================== [ 39.074958][ T4250] WARNING: possible circular locking dependency detected [ 39.076719][ T4250] 6.1.81-syzkaller #0 Not tainted [ 39.078051][ T4250] ------------------------------------------------------ [ 39.079774][ T4250] syz-executor165/4250 is trying to acquire lock: [ 39.081519][ T4250] ffff0000d4ba2130 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: rfcomm_sk_state_change+0x60/0x2c8 [ 39.084611][ T4250] [ 39.084611][ T4250] but task is already holding lock: [ 39.086544][ T4250] ffff0000d5d79928 (&d->lock){+.+.}-{3:3}, at: __rfcomm_dlc_close+0x1f8/0x600 [ 39.088856][ T4250] [ 39.088856][ T4250] which lock already depends on the new lock. [ 39.088856][ T4250] [ 39.091685][ T4250] [ 39.091685][ T4250] the existing dependency chain (in reverse order) is: [ 39.094111][ T4250] [ 39.094111][ T4250] -> #3 (&d->lock){+.+.}-{3:3}: [ 39.096009][ T4250] __mutex_lock_common+0x190/0x21a0 [ 39.097544][ T4250] mutex_lock_nested+0x38/0x44 [ 39.099051][ T4250] __rfcomm_dlc_close+0x1f8/0x600 [ 39.100432][ T4250] rfcomm_dlc_close+0x100/0x194 [ 39.101857][ T4250] __rfcomm_sock_close+0x138/0x258 [ 39.103307][ T4250] rfcomm_sock_shutdown+0xa8/0x214 [ 39.104789][ T4250] rfcomm_sock_release+0x58/0x114 [ 39.106329][ T4250] sock_close+0xb8/0x1fc [ 39.107589][ T4250] __fput+0x30c/0x7bc [ 39.108769][ T4250] ____fput+0x20/0x30 [ 39.109984][ T4250] task_work_run+0x240/0x2f0 [ 39.111392][ T4250] do_exit+0x554/0x1a88 [ 39.112596][ T4250] do_group_exit+0x194/0x22c [ 39.113988][ T4250] get_signal+0x14a0/0x158c [ 39.115290][ T4250] do_notify_resume+0x3ac/0x3474 [ 39.116771][ T4250] el0_svc+0x9c/0x168 [ 39.117965][ T4250] el0t_64_sync_handler+0x84/0xf0 [ 39.119428][ T4250] el0t_64_sync+0x18c/0x190 [ 39.120750][ T4250] [ 39.120750][ T4250] -> #2 (rfcomm_mutex){+.+.}-{3:3}: [ 39.122717][ T4250] __mutex_lock_common+0x190/0x21a0 [ 39.124260][ T4250] mutex_lock_nested+0x38/0x44 [ 39.125639][ T4250] rfcomm_dlc_exists+0xb0/0x32c [ 39.127092][ T4250] rfcomm_dev_ioctl+0x888/0x22a8 [ 39.128531][ T4250] rfcomm_sock_ioctl+0x98/0xf0 [ 39.129952][ T4250] sock_do_ioctl+0x134/0x2dc [ 39.131278][ T4250] sock_ioctl+0x4ec/0x858 [ 39.132530][ T4250] __arm64_sys_ioctl+0x14c/0x1c8 [ 39.133977][ T4250] invoke_syscall+0x98/0x2c0 [ 39.135328][ T4250] el0_svc_common+0x138/0x258 [ 39.136687][ T4250] do_el0_svc+0x64/0x218 [ 39.137946][ T4250] el0_svc+0x58/0x168 [ 39.139122][ T4250] el0t_64_sync_handler+0x84/0xf0 [ 39.140588][ T4250] el0t_64_sync+0x18c/0x190 [ 39.141972][ T4250] [ 39.141972][ T4250] -> #1 (rfcomm_ioctl_mutex){+.+.}-{3:3}: [ 39.144020][ T4250] __mutex_lock_common+0x190/0x21a0 [ 39.145508][ T4250] mutex_lock_nested+0x38/0x44 [ 39.146855][ T4250] rfcomm_dev_ioctl+0x258/0x22a8 [ 39.148295][ T4250] rfcomm_sock_ioctl+0x98/0xf0 [ 39.149665][ T4250] sock_do_ioctl+0x134/0x2dc [ 39.150973][ T4250] sock_ioctl+0x4ec/0x858 [ 39.152196][ T4250] __arm64_sys_ioctl+0x14c/0x1c8 [ 39.153630][ T4250] invoke_syscall+0x98/0x2c0 [ 39.154986][ T4250] el0_svc_common+0x138/0x258 [ 39.156363][ T4250] do_el0_svc+0x64/0x218 [ 39.157625][ T4250] el0_svc+0x58/0x168 [ 39.158842][ T4250] el0t_64_sync_handler+0x84/0xf0 [ 39.160358][ T4250] el0t_64_sync+0x18c/0x190 [ 39.161671][ T4250] [ 39.161671][ T4250] -> #0 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}: [ 39.164121][ T4250] __lock_acquire+0x3338/0x7680 [ 39.165541][ T4250] lock_acquire+0x26c/0x7cc [ 39.166835][ T4250] lock_sock_nested+0x78/0x138 [ 39.168208][ T4250] rfcomm_sk_state_change+0x60/0x2c8 [ 39.169741][ T4250] __rfcomm_dlc_close+0x234/0x600 [ 39.171194][ T4250] rfcomm_dlc_close+0x100/0x194 [ 39.172591][ T4250] __rfcomm_sock_close+0x138/0x258 [ 39.174066][ T4250] rfcomm_sock_shutdown+0xa8/0x214 [ 39.175542][ T4250] rfcomm_sock_release+0x58/0x114 [ 39.176969][ T4250] sock_close+0xb8/0x1fc [ 39.178226][ T4250] __fput+0x30c/0x7bc [ 39.179388][ T4250] ____fput+0x20/0x30 [ 39.180549][ T4250] task_work_run+0x240/0x2f0 [ 39.181928][ T4250] do_exit+0x554/0x1a88 [ 39.183132][ T4250] do_group_exit+0x194/0x22c [ 39.184462][ T4250] get_signal+0x14a0/0x158c [ 39.185766][ T4250] do_notify_resume+0x3ac/0x3474 [ 39.187181][ T4250] el0_svc+0x9c/0x168 [ 39.188361][ T4250] el0t_64_sync_handler+0x84/0xf0 [ 39.189859][ T4250] el0t_64_sync+0x18c/0x190 [ 39.191169][ T4250] [ 39.191169][ T4250] other info that might help us debug this: [ 39.191169][ T4250] [ 39.193831][ T4250] Chain exists of: [ 39.193831][ T4250] sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM --> rfcomm_mutex --> &d->lock [ 39.193831][ T4250] [ 39.197606][ T4250] Possible unsafe locking scenario: [ 39.197606][ T4250] [ 39.199504][ T4250] CPU0 CPU1 [ 39.200913][ T4250] ---- ---- [ 39.202324][ T4250] lock(&d->lock); [ 39.203301][ T4250] lock(rfcomm_mutex); [ 39.205043][ T4250] lock(&d->lock); [ 39.206625][ T4250] lock(sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM); [ 39.208214][ T4250] [ 39.208214][ T4250] *** DEADLOCK *** [ 39.208214][ T4250] [ 39.210389][ T4250] 3 locks held by syz-executor165/4250: [ 39.211808][ T4250] #0: ffff0000e280a010 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: sock_close+0x80/0x1fc [ 39.214521][ T4250] #1: ffff800017f808a8 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_dlc_close+0x44/0x194 [ 39.217066][ T4250] #2: ffff0000d5d79928 (&d->lock){+.+.}-{3:3}, at: __rfcomm_dlc_close+0x1f8/0x600 [ 39.219591][ T4250] [ 39.219591][ T4250] stack backtrace: [ 39.221131][ T4250] CPU: 1 PID: 4250 Comm: syz-executor165 Not tainted 6.1.81-syzkaller #0 [ 39.223309][ T4250] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 [ 39.225933][ T4250] Call trace: [ 39.226770][ T4250] dump_backtrace+0x1c8/0x1f4 [ 39.228031][ T4250] show_stack+0x2c/0x3c [ 39.229134][ T4250] dump_stack_lvl+0x108/0x170 [ 39.230346][ T4250] dump_stack+0x1c/0x58 [ 39.231448][ T4250] print_circular_bug+0x150/0x1b8 [ 39.232790][ T4250] check_noncircular+0x2cc/0x378 [ 39.234080][ T4250] __lock_acquire+0x3338/0x7680 [ 39.235326][ T4250] lock_acquire+0x26c/0x7cc [ 39.236543][ T4250] lock_sock_nested+0x78/0x138 [ 39.237797][ T4250] rfcomm_sk_state_change+0x60/0x2c8 [ 39.239193][ T4250] __rfcomm_dlc_close+0x234/0x600 [ 39.240508][ T4250] rfcomm_dlc_close+0x100/0x194 [ 39.241761][ T4250] __rfcomm_sock_close+0x138/0x258 [ 39.243080][ T4250] rfcomm_sock_shutdown+0xa8/0x214 [ 39.244414][ T4250] rfcomm_sock_release+0x58/0x114 [ 39.245731][ T4250] sock_close+0xb8/0x1fc [ 39.246817][ T4250] __fput+0x30c/0x7bc [ 39.247879][ T4250] ____fput+0x20/0x30 [ 39.248913][ T4250] task_work_run+0x240/0x2f0 [ 39.250086][ T4250] do_exit+0x554/0x1a88 [ 39.251195][ T4250] do_group_exit+0x194/0x22c [ 39.252394][ T4250] get_signal+0x14a0/0x158c [ 39.253538][ T4250] do_notify_resume+0x3ac/0x3474 [ 39.254828][ T4250] el0_svc+0x9c/0x168 [ 39.255882][ T4250] el0t_64_sync_handler+0x84/0xf0 [ 39.257226][ T4250] el0t_64_sync+0x18c/0x190 executing program executing program executing program executing program executing program [ 40.179287][ T4249] Bluetooth: hci0: command 0x040f tx timeout [ 40.179309][ T4241] Bluetooth: hci3: command 0x040f tx timeout [ 40.180943][ T4249] Bluetooth: hci1: command 0x040f tx timeout [ 40.259359][ T4246] Bluetooth: hci2: command 0x040f tx timeout [ 40.260946][ T4246] Bluetooth: hci4: command 0x040f tx timeout executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 42.259290][ T4249] Bluetooth: hci3: command 0x0419 tx timeout [ 42.259397][ T4246] Bluetooth: hci0: command 0x0419 tx timeout [ 42.261000][ T4249] Bluetooth: hci1: command 0x0419 tx timeout [ 42.349283][ T4241] Bluetooth: hci4: command 0x0419 tx timeout [ 42.349346][ T4246] Bluetooth: hci2: command 0x0419 tx timeout executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 44.339273][ T4246] Bluetooth: hci3: command 0x0405 tx timeout executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program