Warning: Permanently added '10.128.1.168' (ED25519) to the list of known hosts. [ 36.737969][ T50] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 36.740355][ T50] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 36.742497][ T50] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [ 36.745375][ T50] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [ 36.747617][ T50] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3 [ 36.749378][ T50] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 executing program [ 36.891712][ T6094] [ 36.892246][ T6094] ====================================================== [ 36.893888][ T6094] WARNING: possible circular locking dependency detected [ 36.895604][ T6094] 6.7.0-rc6-syzkaller-gaafe7ad77b91 #0 Not tainted [ 36.897180][ T6094] ------------------------------------------------------ [ 36.898867][ T6094] syz-executor372/6094 is trying to acquire lock: [ 36.900448][ T6094] ffff0000d1730e10 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: __flush_work+0xd0/0x1c0 [ 36.903012][ T6094] [ 36.903012][ T6094] but task is already holding lock: [ 36.904794][ T6094] ffff0000d1731108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_rfkill_set_block+0xe8/0x20c [ 36.907151][ T6094] [ 36.907151][ T6094] which lock already depends on the new lock. [ 36.907151][ T6094] [ 36.909668][ T6094] [ 36.909668][ T6094] the existing dependency chain (in reverse order) is: [ 36.911838][ T6094] [ 36.911838][ T6094] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 36.913590][ T6094] __mutex_lock_common+0x190/0x21a0 [ 36.914994][ T6094] mutex_lock_nested+0x2c/0x38 [ 36.916212][ T6094] hci_rfkill_set_block+0xe8/0x20c [ 36.917561][ T6094] rfkill_set_block+0x18c/0x37c [ 36.918848][ T6094] rfkill_fop_write+0x578/0x734 [ 36.920189][ T6094] vfs_write+0x2a0/0x910 [ 36.921368][ T6094] ksys_write+0x15c/0x26c [ 36.922525][ T6094] __arm64_sys_write+0x7c/0x90 [ 36.923720][ T6094] invoke_syscall+0x98/0x2b8 [ 36.924996][ T6094] el0_svc_common+0x130/0x23c [ 36.926161][ T6094] do_el0_svc+0x48/0x58 [ 36.926983][ T6094] el0_svc+0x54/0x158 [ 36.927778][ T6094] el0t_64_sync_handler+0x84/0xfc [ 36.928748][ T6094] el0t_64_sync+0x190/0x194 [ 36.929776][ T6094] [ 36.929776][ T6094] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 36.931775][ T6094] __mutex_lock_common+0x190/0x21a0 [ 36.933215][ T6094] mutex_lock_nested+0x2c/0x38 [ 36.934535][ T6094] rfkill_register+0x44/0x7d4 [ 36.935835][ T6094] hci_register_dev+0x3e0/0x954 [ 36.937186][ T6094] vhci_create_device+0x358/0x6c4 [ 36.938589][ T6094] vhci_write+0x318/0x3b8 [ 36.939795][ T6094] vfs_write+0x610/0x910 [ 36.940992][ T6094] ksys_write+0x15c/0x26c [ 36.942149][ T6094] __arm64_sys_write+0x7c/0x90 [ 36.943449][ T6094] invoke_syscall+0x98/0x2b8 [ 36.944763][ T6094] el0_svc_common+0x130/0x23c [ 36.945983][ T6094] do_el0_svc+0x48/0x58 [ 36.947192][ T6094] el0_svc+0x54/0x158 [ 36.948320][ T6094] el0t_64_sync_handler+0x84/0xfc [ 36.949701][ T6094] el0t_64_sync+0x190/0x194 [ 36.950987][ T6094] [ 36.950987][ T6094] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 36.952853][ T6094] __mutex_lock_common+0x190/0x21a0 [ 36.954242][ T6094] mutex_lock_nested+0x2c/0x38 [ 36.955591][ T6094] vhci_send_frame+0x8c/0x10c [ 36.956834][ T6094] hci_send_frame+0x1c4/0x35c [ 36.958083][ T6094] hci_tx_work+0xba0/0x18e4 [ 36.959324][ T6094] process_one_work+0x694/0x1204 [ 36.960637][ T6094] worker_thread+0x938/0xef4 [ 36.961943][ T6094] kthread+0x288/0x310 [ 36.963067][ T6094] ret_from_fork+0x10/0x20 [ 36.964364][ T6094] [ 36.964364][ T6094] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 36.966667][ T6094] __lock_acquire+0x3384/0x763c [ 36.968050][ T6094] lock_acquire+0x23c/0x71c [ 36.969289][ T6094] __flush_work+0xf8/0x1c0 [ 36.970527][ T6094] flush_work+0x24/0x38 [ 36.971691][ T6094] hci_dev_close_sync+0x1c8/0xf30 [ 36.973112][ T6094] hci_rfkill_set_block+0xf0/0x20c [ 36.974474][ T6094] rfkill_set_block+0x18c/0x37c [ 36.975799][ T6094] rfkill_fop_write+0x578/0x734 [ 36.977130][ T6094] vfs_write+0x2a0/0x910 [ 36.978250][ T6094] ksys_write+0x15c/0x26c [ 36.979418][ T6094] __arm64_sys_write+0x7c/0x90 [ 36.980715][ T6094] invoke_syscall+0x98/0x2b8 [ 36.982039][ T6094] el0_svc_common+0x130/0x23c [ 36.983317][ T6094] do_el0_svc+0x48/0x58 [ 36.984504][ T6094] el0_svc+0x54/0x158 [ 36.985545][ T6094] el0t_64_sync_handler+0x84/0xfc [ 36.986990][ T6094] el0t_64_sync+0x190/0x194 [ 36.988207][ T6094] [ 36.988207][ T6094] other info that might help us debug this: [ 36.988207][ T6094] [ 36.990725][ T6094] Chain exists of: [ 36.990725][ T6094] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 36.990725][ T6094] [ 36.994504][ T6094] Possible unsafe locking scenario: [ 36.994504][ T6094] [ 36.996285][ T6094] CPU0 CPU1 [ 36.997599][ T6094] ---- ---- [ 36.998981][ T6094] lock(&hdev->req_lock); [ 37.000053][ T6094] lock(rfkill_global_mutex); [ 37.001801][ T6094] lock(&hdev->req_lock); [ 37.003514][ T6094] lock((work_completion)(&hdev->tx_work)); [ 37.004955][ T6094] [ 37.004955][ T6094] *** DEADLOCK *** [ 37.004955][ T6094] [ 37.006902][ T6094] 2 locks held by syz-executor372/6094: [ 37.008249][ T6094] #0: ffff80009122cca8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x234/0x734 [ 37.010804][ T6094] #1: ffff0000d1731108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_rfkill_set_block+0xe8/0x20c [ 37.013272][ T6094] [ 37.013272][ T6094] stack backtrace: [ 37.014697][ T6094] CPU: 0 PID: 6094 Comm: syz-executor372 Not tainted 6.7.0-rc6-syzkaller-gaafe7ad77b91 #0 [ 37.017064][ T6094] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 [ 37.019642][ T6094] Call trace: [ 37.020416][ T6094] dump_backtrace+0x1b8/0x1e4 [ 37.021566][ T6094] show_stack+0x2c/0x3c [ 37.022588][ T6094] dump_stack_lvl+0xd0/0x124 [ 37.023739][ T6094] dump_stack+0x1c/0x28 [ 37.024767][ T6094] print_circular_bug+0x150/0x1b8 [ 37.026008][ T6094] check_noncircular+0x310/0x404 [ 37.027194][ T6094] __lock_acquire+0x3384/0x763c [ 37.028407][ T6094] lock_acquire+0x23c/0x71c [ 37.029522][ T6094] __flush_work+0xf8/0x1c0 [ 37.030576][ T6094] flush_work+0x24/0x38 [ 37.031581][ T6094] hci_dev_close_sync+0x1c8/0xf30 [ 37.032820][ T6094] hci_rfkill_set_block+0xf0/0x20c [ 37.034178][ T6094] rfkill_set_block+0x18c/0x37c [ 37.035446][ T6094] rfkill_fop_write+0x578/0x734 [ 37.036687][ T6094] vfs_write+0x2a0/0x910 [ 37.037683][ T6094] ksys_write+0x15c/0x26c [ 37.038704][ T6094] __arm64_sys_write+0x7c/0x90 [ 37.039850][ T6094] invoke_syscall+0x98/0x2b8 [ 37.040980][ T6094] el0_svc_common+0x130/0x23c [ 37.042214][ T6094] do_el0_svc+0x48/0x58 [ 37.043246][ T6094] el0_svc+0x54/0x158 [ 37.044219][ T6094] el0t_64_sync_handler+0x84/0xfc [ 37.045529][ T6094] el0t_64_sync+0x190/0x194