Warning: Permanently added '10.128.1.3' (ED25519) to the list of known hosts. [ 32.843696][ T50] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 32.846474][ T50] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 32.848594][ T50] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [ 32.850967][ T50] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [ 32.853020][ T50] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3 [ 32.855467][ T50] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 executing program [ 32.996590][ T6093] [ 32.997224][ T6093] ====================================================== [ 32.998919][ T6093] WARNING: possible circular locking dependency detected [ 33.000426][ T6093] 6.7.0-rc6-syzkaller-gaafe7ad77b91 #0 Not tainted [ 33.002070][ T6093] ------------------------------------------------------ [ 33.003706][ T6093] syz-executor350/6093 is trying to acquire lock: [ 33.005175][ T6093] ffff0000d3734e10 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: __flush_work+0xd0/0x1c0 [ 33.007734][ T6093] [ 33.007734][ T6093] but task is already holding lock: [ 33.009539][ T6093] ffff0000d3735108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_rfkill_set_block+0xe8/0x20c [ 33.011919][ T6093] [ 33.011919][ T6093] which lock already depends on the new lock. [ 33.011919][ T6093] [ 33.014561][ T6093] [ 33.014561][ T6093] the existing dependency chain (in reverse order) is: [ 33.016791][ T6093] [ 33.016791][ T6093] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 33.018662][ T6093] __mutex_lock_common+0x190/0x21a0 [ 33.019982][ T6093] mutex_lock_nested+0x2c/0x38 [ 33.021338][ T6093] hci_rfkill_set_block+0xe8/0x20c [ 33.022803][ T6093] rfkill_set_block+0x18c/0x37c [ 33.024215][ T6093] rfkill_fop_write+0x578/0x734 [ 33.025526][ T6093] vfs_write+0x2a0/0x910 [ 33.026662][ T6093] ksys_write+0x15c/0x26c [ 33.027869][ T6093] __arm64_sys_write+0x7c/0x90 [ 33.029193][ T6093] invoke_syscall+0x98/0x2b8 [ 33.030494][ T6093] el0_svc_common+0x130/0x23c [ 33.031756][ T6093] do_el0_svc+0x48/0x58 [ 33.033002][ T6093] el0_svc+0x54/0x158 [ 33.034098][ T6093] el0t_64_sync_handler+0x84/0xfc [ 33.035497][ T6093] el0t_64_sync+0x190/0x194 [ 33.036754][ T6093] [ 33.036754][ T6093] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 33.038769][ T6093] __mutex_lock_common+0x190/0x21a0 [ 33.040270][ T6093] mutex_lock_nested+0x2c/0x38 [ 33.041775][ T6093] rfkill_register+0x44/0x7d4 [ 33.043089][ T6093] hci_register_dev+0x3e0/0x954 [ 33.044421][ T6093] vhci_create_device+0x358/0x6c4 [ 33.045795][ T6093] vhci_write+0x318/0x3b8 [ 33.046899][ T6093] vfs_write+0x610/0x910 [ 33.048016][ T6093] ksys_write+0x15c/0x26c [ 33.049204][ T6093] __arm64_sys_write+0x7c/0x90 [ 33.050534][ T6093] invoke_syscall+0x98/0x2b8 [ 33.051801][ T6093] el0_svc_common+0x130/0x23c [ 33.053035][ T6093] do_el0_svc+0x48/0x58 [ 33.054135][ T6093] el0_svc+0x54/0x158 [ 33.055235][ T6093] el0t_64_sync_handler+0x84/0xfc [ 33.056593][ T6093] el0t_64_sync+0x190/0x194 [ 33.057829][ T6093] [ 33.057829][ T6093] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 33.059766][ T6093] __mutex_lock_common+0x190/0x21a0 [ 33.061161][ T6093] mutex_lock_nested+0x2c/0x38 [ 33.062498][ T6093] vhci_send_frame+0x8c/0x10c [ 33.063809][ T6093] hci_send_frame+0x1c4/0x35c [ 33.065101][ T6093] hci_tx_work+0xba0/0x18e4 [ 33.066362][ T6093] process_one_work+0x694/0x1204 [ 33.067665][ T6093] worker_thread+0x938/0xef4 [ 33.068964][ T6093] kthread+0x288/0x310 [ 33.070115][ T6093] ret_from_fork+0x10/0x20 [ 33.071339][ T6093] [ 33.071339][ T6093] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 33.073666][ T6093] __lock_acquire+0x3384/0x763c [ 33.075013][ T6093] lock_acquire+0x23c/0x71c [ 33.076279][ T6093] __flush_work+0xf8/0x1c0 [ 33.077523][ T6093] flush_work+0x24/0x38 [ 33.078675][ T6093] hci_dev_close_sync+0x1c8/0xf30 [ 33.080037][ T6093] hci_rfkill_set_block+0xf0/0x20c [ 33.081438][ T6093] rfkill_set_block+0x18c/0x37c [ 33.082800][ T6093] rfkill_fop_write+0x578/0x734 [ 33.084101][ T6093] vfs_write+0x2a0/0x910 [ 33.085269][ T6093] ksys_write+0x15c/0x26c [ 33.086556][ T6093] __arm64_sys_write+0x7c/0x90 [ 33.087854][ T6093] invoke_syscall+0x98/0x2b8 [ 33.089229][ T6093] el0_svc_common+0x130/0x23c [ 33.090532][ T6093] do_el0_svc+0x48/0x58 [ 33.091630][ T6093] el0_svc+0x54/0x158 [ 33.092756][ T6093] el0t_64_sync_handler+0x84/0xfc [ 33.094038][ T6093] el0t_64_sync+0x190/0x194 [ 33.095304][ T6093] [ 33.095304][ T6093] other info that might help us debug this: [ 33.095304][ T6093] [ 33.098024][ T6093] Chain exists of: [ 33.098024][ T6093] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 33.098024][ T6093] [ 33.101692][ T6093] Possible unsafe locking scenario: [ 33.101692][ T6093] [ 33.103533][ T6093] CPU0 CPU1 [ 33.104855][ T6093] ---- ---- [ 33.106112][ T6093] lock(&hdev->req_lock); [ 33.107252][ T6093] lock(rfkill_global_mutex); [ 33.108995][ T6093] lock(&hdev->req_lock); [ 33.110609][ T6093] lock((work_completion)(&hdev->tx_work)); [ 33.112204][ T6093] [ 33.112204][ T6093] *** DEADLOCK *** [ 33.112204][ T6093] [ 33.114212][ T6093] 2 locks held by syz-executor350/6093: [ 33.115632][ T6093] #0: ffff80009122cca8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x234/0x734 [ 33.118103][ T6093] #1: ffff0000d3735108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_rfkill_set_block+0xe8/0x20c [ 33.120606][ T6093] [ 33.120606][ T6093] stack backtrace: [ 33.121896][ T6093] CPU: 1 PID: 6093 Comm: syz-executor350 Not tainted 6.7.0-rc6-syzkaller-gaafe7ad77b91 #0 [ 33.124279][ T6093] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 [ 33.126777][ T6093] Call trace: [ 33.127546][ T6093] dump_backtrace+0x1b8/0x1e4 [ 33.128727][ T6093] show_stack+0x2c/0x3c [ 33.129606][ T6093] dump_stack_lvl+0xd0/0x124 [ 33.130772][ T6093] dump_stack+0x1c/0x28 [ 33.131747][ T6093] print_circular_bug+0x150/0x1b8 [ 33.132947][ T6093] check_noncircular+0x310/0x404 [ 33.134248][ T6093] __lock_acquire+0x3384/0x763c [ 33.135508][ T6093] lock_acquire+0x23c/0x71c [ 33.136597][ T6093] __flush_work+0xf8/0x1c0 [ 33.137727][ T6093] flush_work+0x24/0x38 [ 33.138770][ T6093] hci_dev_close_sync+0x1c8/0xf30 [ 33.139908][ T6093] hci_rfkill_set_block+0xf0/0x20c [ 33.141124][ T6093] rfkill_set_block+0x18c/0x37c [ 33.142306][ T6093] rfkill_fop_write+0x578/0x734 [ 33.143589][ T6093] vfs_write+0x2a0/0x910 [ 33.144622][ T6093] ksys_write+0x15c/0x26c [ 33.145657][ T6093] __arm64_sys_write+0x7c/0x90 [ 33.146817][ T6093] invoke_syscall+0x98/0x2b8 [ 33.148031][ T6093] el0_svc_common+0x130/0x23c [ 33.149143][ T6093] do_el0_svc+0x48/0x58 [ 33.150232][ T6093] el0_svc+0x54/0x158 [ 33.151284][ T6093] el0t_64_sync_handler+0x84/0xfc [ 33.152520][ T6093] el0t_64_sync+0x190/0x194