Warning: Permanently added '10.128.1.111' (ED25519) to the list of known hosts. [ 33.180103][ T50] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 33.182527][ T50] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 33.184440][ T50] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [ 33.186984][ T50] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [ 33.189011][ T50] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3 [ 33.190785][ T50] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 executing program [ 33.358445][ T6095] [ 33.359062][ T6095] ====================================================== [ 33.360886][ T6095] WARNING: possible circular locking dependency detected [ 33.362545][ T6095] 6.7.0-rc6-syzkaller-gaafe7ad77b91 #0 Not tainted [ 33.363988][ T6095] ------------------------------------------------------ [ 33.365619][ T6095] syz-executor235/6095 is trying to acquire lock: [ 33.367014][ T6095] ffff0000d9050e10 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: __flush_work+0xd0/0x1c0 [ 33.369419][ T6095] [ 33.369419][ T6095] but task is already holding lock: [ 33.371071][ T6095] ffff0000d9051108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_rfkill_set_block+0xe8/0x20c [ 33.373239][ T6095] [ 33.373239][ T6095] which lock already depends on the new lock. [ 33.373239][ T6095] [ 33.375763][ T6095] [ 33.375763][ T6095] the existing dependency chain (in reverse order) is: [ 33.377814][ T6095] [ 33.377814][ T6095] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 33.379620][ T6095] __mutex_lock_common+0x190/0x21a0 [ 33.380939][ T6095] mutex_lock_nested+0x2c/0x38 [ 33.382167][ T6095] hci_rfkill_set_block+0xe8/0x20c [ 33.383471][ T6095] rfkill_set_block+0x18c/0x37c [ 33.384743][ T6095] rfkill_fop_write+0x578/0x734 [ 33.386033][ T6095] vfs_write+0x2a0/0x910 [ 33.387126][ T6095] ksys_write+0x15c/0x26c [ 33.388276][ T6095] __arm64_sys_write+0x7c/0x90 [ 33.389464][ T6095] invoke_syscall+0x98/0x2b8 [ 33.390703][ T6095] el0_svc_common+0x130/0x23c [ 33.391884][ T6095] do_el0_svc+0x48/0x58 [ 33.392947][ T6095] el0_svc+0x54/0x158 [ 33.394027][ T6095] el0t_64_sync_handler+0x84/0xfc [ 33.395421][ T6095] el0t_64_sync+0x190/0x194 [ 33.396466][ T6095] [ 33.396466][ T6095] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 33.398315][ T6095] __mutex_lock_common+0x190/0x21a0 [ 33.399676][ T6095] mutex_lock_nested+0x2c/0x38 [ 33.400914][ T6095] rfkill_register+0x44/0x7d4 [ 33.402136][ T6095] hci_register_dev+0x3e0/0x954 [ 33.403424][ T6095] vhci_create_device+0x358/0x6c4 [ 33.404687][ T6095] vhci_write+0x318/0x3b8 [ 33.405772][ T6095] vfs_write+0x610/0x910 [ 33.406873][ T6095] ksys_write+0x15c/0x26c [ 33.408025][ T6095] __arm64_sys_write+0x7c/0x90 [ 33.409320][ T6095] invoke_syscall+0x98/0x2b8 [ 33.410517][ T6095] el0_svc_common+0x130/0x23c [ 33.411743][ T6095] do_el0_svc+0x48/0x58 [ 33.412800][ T6095] el0_svc+0x54/0x158 [ 33.413937][ T6095] el0t_64_sync_handler+0x84/0xfc [ 33.415216][ T6095] el0t_64_sync+0x190/0x194 [ 33.416381][ T6095] [ 33.416381][ T6095] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 33.418277][ T6095] __mutex_lock_common+0x190/0x21a0 [ 33.419533][ T6095] mutex_lock_nested+0x2c/0x38 [ 33.420764][ T6095] vhci_send_frame+0x8c/0x10c [ 33.422121][ T6095] hci_send_frame+0x1c4/0x35c [ 33.423324][ T6095] hci_tx_work+0xba0/0x18e4 [ 33.424473][ T6095] process_one_work+0x694/0x1204 [ 33.425753][ T6095] worker_thread+0x938/0xef4 [ 33.426945][ T6095] kthread+0x288/0x310 [ 33.428047][ T6095] ret_from_fork+0x10/0x20 [ 33.429206][ T6095] [ 33.429206][ T6095] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 33.431371][ T6095] __lock_acquire+0x3384/0x763c [ 33.432718][ T6095] lock_acquire+0x23c/0x71c [ 33.433856][ T6095] __flush_work+0xf8/0x1c0 [ 33.435127][ T6095] flush_work+0x24/0x38 [ 33.436260][ T6095] hci_dev_close_sync+0x1c8/0xf30 [ 33.437581][ T6095] hci_rfkill_set_block+0xf0/0x20c [ 33.438918][ T6095] rfkill_set_block+0x18c/0x37c [ 33.440214][ T6095] rfkill_fop_write+0x578/0x734 [ 33.441485][ T6095] vfs_write+0x2a0/0x910 [ 33.442544][ T6095] ksys_write+0x15c/0x26c [ 33.443672][ T6095] __arm64_sys_write+0x7c/0x90 [ 33.444968][ T6095] invoke_syscall+0x98/0x2b8 [ 33.446195][ T6095] el0_svc_common+0x130/0x23c [ 33.447350][ T6095] do_el0_svc+0x48/0x58 [ 33.448439][ T6095] el0_svc+0x54/0x158 [ 33.449497][ T6095] el0t_64_sync_handler+0x84/0xfc [ 33.450771][ T6095] el0t_64_sync+0x190/0x194 [ 33.451990][ T6095] [ 33.451990][ T6095] other info that might help us debug this: [ 33.451990][ T6095] [ 33.454385][ T6095] Chain exists of: [ 33.454385][ T6095] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 33.454385][ T6095] [ 33.457943][ T6095] Possible unsafe locking scenario: [ 33.457943][ T6095] [ 33.459791][ T6095] CPU0 CPU1 [ 33.461021][ T6095] ---- ---- [ 33.462198][ T6095] lock(&hdev->req_lock); [ 33.463223][ T6095] lock(rfkill_global_mutex); [ 33.464881][ T6095] lock(&hdev->req_lock); [ 33.466527][ T6095] lock((work_completion)(&hdev->tx_work)); [ 33.468010][ T6095] [ 33.468010][ T6095] *** DEADLOCK *** [ 33.468010][ T6095] [ 33.469920][ T6095] 2 locks held by syz-executor235/6095: [ 33.471210][ T6095] #0: ffff80009122cca8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x234/0x734 [ 33.473654][ T6095] #1: ffff0000d9051108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_rfkill_set_block+0xe8/0x20c [ 33.475970][ T6095] [ 33.475970][ T6095] stack backtrace: [ 33.477349][ T6095] CPU: 0 PID: 6095 Comm: syz-executor235 Not tainted 6.7.0-rc6-syzkaller-gaafe7ad77b91 #0 [ 33.479612][ T6095] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 [ 33.482028][ T6095] Call trace: [ 33.482799][ T6095] dump_backtrace+0x1b8/0x1e4 [ 33.483910][ T6095] show_stack+0x2c/0x3c [ 33.484871][ T6095] dump_stack_lvl+0xd0/0x124 [ 33.485860][ T6095] dump_stack+0x1c/0x28 [ 33.486839][ T6095] print_circular_bug+0x150/0x1b8 [ 33.488077][ T6095] check_noncircular+0x310/0x404 [ 33.489283][ T6095] __lock_acquire+0x3384/0x763c [ 33.490529][ T6095] lock_acquire+0x23c/0x71c [ 33.491646][ T6095] __flush_work+0xf8/0x1c0 [ 33.492704][ T6095] flush_work+0x24/0x38 [ 33.493693][ T6095] hci_dev_close_sync+0x1c8/0xf30 [ 33.494941][ T6095] hci_rfkill_set_block+0xf0/0x20c [ 33.496109][ T6095] rfkill_set_block+0x18c/0x37c [ 33.497221][ T6095] rfkill_fop_write+0x578/0x734 [ 33.498435][ T6095] vfs_write+0x2a0/0x910 [ 33.499406][ T6095] ksys_write+0x15c/0x26c [ 33.500391][ T6095] __arm64_sys_write+0x7c/0x90 [ 33.501475][ T6095] invoke_syscall+0x98/0x2b8 [ 33.502561][ T6095] el0_svc_common+0x130/0x23c [ 33.503584][ T6095] do_el0_svc+0x48/0x58 [ 33.504598][ T6095] el0_svc+0x54/0x158 [ 33.505608][ T6095] el0t_64_sync_handler+0x84/0xfc [ 33.506821][ T6095] el0t_64_sync+0x190/0x194