Warning: Permanently added '10.128.0.86' (ED25519) to the list of known hosts. [ 89.333913][ T5070] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 89.346417][ T5070] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 89.355032][ T5070] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [ 89.363891][ T5070] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [ 89.371958][ T5070] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3 [ 89.379968][ T5070] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 executing program [ 89.560670][ T5067] [ 89.563093][ T5067] ====================================================== [ 89.570130][ T5067] WARNING: possible circular locking dependency detected [ 89.577171][ T5067] 6.7.0-rc5-syzkaller #0 Not tainted [ 89.582477][ T5067] ------------------------------------------------------ [ 89.589522][ T5067] syz-executor355/5067 is trying to acquire lock: [ 89.596053][ T5067] ffff888075c3ce10 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: __flush_work+0xfa/0xa10 [ 89.606755][ T5067] [ 89.606755][ T5067] but task is already holding lock: [ 89.614134][ T5067] ffff888075c3d108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x26/0x90 [ 89.623342][ T5067] [ 89.623342][ T5067] which lock already depends on the new lock. [ 89.623342][ T5067] [ 89.633872][ T5067] [ 89.633872][ T5067] the existing dependency chain (in reverse order) is: [ 89.642906][ T5067] [ 89.642906][ T5067] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 89.650593][ T5067] __mutex_lock+0x175/0x9d0 [ 89.655676][ T5067] hci_dev_do_close+0x26/0x90 [ 89.660917][ T5067] hci_rfkill_set_block+0x1b9/0x200 [ 89.666672][ T5067] rfkill_set_block+0x200/0x550 [ 89.672097][ T5067] rfkill_fop_write+0x2d4/0x570 [ 89.677515][ T5067] vfs_write+0x2a4/0xdf0 [ 89.682315][ T5067] ksys_write+0x1f0/0x250 [ 89.687211][ T5067] __do_fast_syscall_32+0x62/0xe0 [ 89.692800][ T5067] do_fast_syscall_32+0x33/0x70 [ 89.698298][ T5067] entry_SYSENTER_compat_after_hwframe+0x70/0x7a [ 89.705183][ T5067] [ 89.705183][ T5067] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 89.713236][ T5067] __mutex_lock+0x175/0x9d0 [ 89.718308][ T5067] rfkill_register+0x3a/0xb30 [ 89.723723][ T5067] hci_register_dev+0x43a/0xd40 [ 89.729226][ T5067] __vhci_create_device+0x393/0x800 [ 89.735005][ T5067] vhci_write+0x2c7/0x470 [ 89.739913][ T5067] vfs_write+0x64f/0xdf0 [ 89.744716][ T5067] ksys_write+0x12f/0x250 [ 89.749623][ T5067] __do_fast_syscall_32+0x62/0xe0 [ 89.755220][ T5067] do_fast_syscall_32+0x33/0x70 [ 89.760644][ T5067] entry_SYSENTER_compat_after_hwframe+0x70/0x7a [ 89.767536][ T5067] [ 89.767536][ T5067] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 89.775397][ T5067] __mutex_lock+0x175/0x9d0 [ 89.780473][ T5067] vhci_send_frame+0x67/0xa0 [ 89.785639][ T5067] hci_send_frame+0x220/0x470 [ 89.790887][ T5067] hci_tx_work+0x1456/0x1e40 [ 89.796031][ T5067] process_one_work+0x886/0x15d0 [ 89.801540][ T5067] worker_thread+0x8b9/0x1290 [ 89.806785][ T5067] kthread+0x2c6/0x3a0 [ 89.811422][ T5067] ret_from_fork+0x45/0x80 [ 89.816402][ T5067] ret_from_fork_asm+0x11/0x20 [ 89.821741][ T5067] [ 89.821741][ T5067] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 89.831010][ T5067] __lock_acquire+0x2433/0x3b20 [ 89.836435][ T5067] lock_acquire+0x1ae/0x520 [ 89.841509][ T5067] __flush_work+0x103/0xa10 [ 89.846578][ T5067] hci_dev_close_sync+0x22d/0x1160 [ 89.852254][ T5067] hci_dev_do_close+0x2e/0x90 [ 89.857521][ T5067] hci_rfkill_set_block+0x1b9/0x200 [ 89.863281][ T5067] rfkill_set_block+0x200/0x550 [ 89.868706][ T5067] rfkill_fop_write+0x2d4/0x570 [ 89.874126][ T5067] vfs_write+0x2a4/0xdf0 [ 89.878925][ T5067] ksys_write+0x1f0/0x250 [ 89.883812][ T5067] __do_fast_syscall_32+0x62/0xe0 [ 89.889421][ T5067] do_fast_syscall_32+0x33/0x70 [ 89.894849][ T5067] entry_SYSENTER_compat_after_hwframe+0x70/0x7a [ 89.901736][ T5067] [ 89.901736][ T5067] other info that might help us debug this: [ 89.901736][ T5067] [ 89.912075][ T5067] Chain exists of: [ 89.912075][ T5067] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 89.912075][ T5067] [ 89.927072][ T5067] Possible unsafe locking scenario: [ 89.927072][ T5067] [ 89.934546][ T5067] CPU0 CPU1 [ 89.939938][ T5067] ---- ---- [ 89.945332][ T5067] lock(&hdev->req_lock); [ 89.949784][ T5067] lock(rfkill_global_mutex); [ 89.957098][ T5067] lock(&hdev->req_lock); [ 89.964065][ T5067] lock((work_completion)(&hdev->tx_work)); [ 89.970081][ T5067] [ 89.970081][ T5067] *** DEADLOCK *** [ 89.970081][ T5067] [ 89.978247][ T5067] 2 locks held by syz-executor355/5067: [ 89.983820][ T5067] #0: ffffffff8ef2d9e8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x16e/0x570 [ 89.994000][ T5067] #1: ffff888075c3d108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x26/0x90 [ 90.003655][ T5067] [ 90.003655][ T5067] stack backtrace: [ 90.009569][ T5067] CPU: 0 PID: 5067 Comm: syz-executor355 Not tainted 6.7.0-rc5-syzkaller #0 [ 90.018278][ T5067] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 [ 90.028378][ T5067] Call Trace: [ 90.031689][ T5067] [ 90.034639][ T5067] dump_stack_lvl+0xd9/0x1b0 [ 90.039283][ T5067] check_noncircular+0x317/0x400 [ 90.044284][ T5067] ? print_circular_bug+0x5c0/0x5c0 [ 90.049536][ T5067] ? is_bpf_text_address+0x94/0x1a0 [ 90.054793][ T5067] ? lockdep_lock+0xc6/0x200 [ 90.059446][ T5067] ? hlock_class+0x130/0x130 [ 90.064097][ T5067] __lock_acquire+0x2433/0x3b20 [ 90.069074][ T5067] ? lockdep_hardirqs_on_prepare+0x420/0x420 [ 90.075116][ T5067] ? save_trace+0x4e/0xb30 [ 90.079587][ T5067] ? _find_first_zero_bit+0x94/0xb0 [ 90.084867][ T5067] lock_acquire+0x1ae/0x520 [ 90.089446][ T5067] ? __flush_work+0xfa/0xa10 [ 90.094086][ T5067] ? lock_sync+0x190/0x190 [ 90.098561][ T5067] ? __flush_work+0xfa/0xa10 [ 90.103203][ T5067] __flush_work+0x103/0xa10 [ 90.107762][ T5067] ? __flush_work+0xfa/0xa10 [ 90.112406][ T5067] ? cancel_delayed_work+0x20/0x20 [ 90.117587][ T5067] hci_dev_close_sync+0x22d/0x1160 [ 90.122740][ T5067] ? find_held_lock+0x2d/0x110 [ 90.127556][ T5067] ? hci_reset_sync+0x50/0x50 [ 90.132272][ T5067] ? reacquire_held_locks+0x4c0/0x4c0 [ 90.137708][ T5067] hci_dev_do_close+0x2e/0x90 [ 90.142425][ T5067] hci_rfkill_set_block+0x1b9/0x200 [ 90.147666][ T5067] ? lockdep_hardirqs_on+0x7d/0x110 [ 90.153012][ T5067] ? hci_power_on+0x670/0x670 [ 90.157727][ T5067] rfkill_set_block+0x200/0x550 [ 90.162627][ T5067] rfkill_fop_write+0x2d4/0x570 [ 90.167533][ T5067] ? rfkill_register+0xb30/0xb30 [ 90.172520][ T5067] ? bpf_lsm_inode_killpriv+0x10/0x10 [ 90.177933][ T5067] ? security_file_permission+0x94/0x100 [ 90.183631][ T5067] vfs_write+0x2a4/0xdf0 [ 90.187918][ T5067] ? rfkill_register+0xb30/0xb30 [ 90.192909][ T5067] ? kernel_write+0x6c0/0x6c0 [ 90.197627][ T5067] ? do_sys_openat2+0xb1/0x1e0 [ 90.202446][ T5067] ? build_open_flags+0x690/0x690 [ 90.207523][ T5067] ? find_held_lock+0x2d/0x110 [ 90.212349][ T5067] ? __fget_light+0x1fc/0x260 [ 90.217072][ T5067] ksys_write+0x1f0/0x250 [ 90.221441][ T5067] ? __ia32_sys_read+0xb0/0xb0 [ 90.226256][ T5067] __do_fast_syscall_32+0x62/0xe0 [ 90.231336][ T5067] do_fast_syscall_32+0x33/0x70 [ 90.236234][ T5067] entry_SYSENTER_compat_after_hwframe+0x70/0x7a [ 90.242610][ T5067] RIP: 0023:0xf7eb0579 [ 90.246712][ T5067] Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 [ 90.266380][ T5067] RSP: 002b:00000000ffd2845c EFLAGS: 00000246 ORIG_RAX: 0000000000000004 [ 90.274837][ T5067] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000080 [ 90.282845][ T5067] RDX: 0000000000000008 RSI: 0000000000000070 RDI: 0000000000000000 [ 90.290849][ T5067] RBP: 00000000ffd284c0 R08: 0000000000000000 R09: 0000000000000000 [ 90.298857][ T5067] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 90.306877][ T5067] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 90.314888][ T5067]