bisecting fixing commit since cf256fbcbe347b7d0ff58fe2dfa382a156bd3694 building syzkaller on 4285c9893412948885280ea885ee73bec358e709 testing commit cf256fbcbe347b7d0ff58fe2dfa382a156bd3694 with gcc (GCC) 8.4.1 20210217 kernel signature: 7d20b9d666dc677ce03cb7082d00f4ca8756a9be5e9d7ffc021e71e90ad6779b run #0: crashed: BUG: soft lockup in hci_sock_release run #1: crashed: BUG: soft lockup in mgmt_set_connectable_complete run #2: crashed: BUG: soft lockup in hci_sock_release run #3: crashed: BUG: soft lockup in hci_sock_release run #4: crashed: BUG: soft lockup in socket run #5: crashed: BUG: soft lockup in hci_sock_release run #6: crashed: BUG: soft lockup in socket run #7: crashed: BUG: soft lockup in hci_sock_release run #8: crashed: BUG: soft lockup in mgmt_set_connectable_complete run #9: crashed: BUG: soft lockup in mgmt_set_connectable_complete run #10: crashed: BUG: soft lockup in mgmt_set_connectable_complete run #11: crashed: BUG: soft lockup in mgmt_set_connectable_complete run #12: crashed: BUG: soft lockup in hci_sock_release run #13: crashed: BUG: soft lockup in mgmt_set_connectable_complete run #14: crashed: BUG: soft lockup in mgmt_set_connectable_complete run #15: crashed: BUG: soft lockup in mgmt_set_connectable_complete run #16: crashed: BUG: soft lockup in mgmt_set_connectable_complete run #17: crashed: BUG: soft lockup in hci_sock_release run #18: crashed: BUG: soft lockup in mgmt_set_connectable_complete run #19: crashed: BUG: soft lockup in hci_sock_release testing current HEAD 7d7d1c0ab3eb7c8d8f63a126535018007823b207 testing commit 7d7d1c0ab3eb7c8d8f63a126535018007823b207 with gcc (GCC) 8.4.1 20210217 kernel signature: bfca1b91642348bfa7594f7e11283ab25e725909e485eec4d877556819a8134a run #0: crashed: BUG: soft lockup in hci_sock_release run #1: crashed: BUG: soft lockup in hci_sock_release run #2: crashed: BUG: soft lockup in hci_sock_release run #3: crashed: BUG: soft lockup in hci_sock_release run #4: crashed: BUG: soft lockup in mgmt_set_connectable_complete run #5: crashed: BUG: soft lockup in mgmt_set_connectable_complete run #6: crashed: BUG: soft lockup in mgmt_set_connectable_complete run #7: crashed: BUG: soft lockup in socket run #8: crashed: BUG: soft lockup in hci_sock_release run #9: crashed: BUG: soft lockup in mgmt_set_connectable_complete revisions tested: 2, total time: 23m20.88647726s (build: 15m40.220054396s, test: 7m14.712440292s) the crash still happens on HEAD commit msg: Linux 4.14.232 crash: BUG: soft lockup in mgmt_set_connectable_complete Bluetooth: hci4 command 0x0419 tx timeout Bluetooth: hci0 command 0x0419 tx timeout Bluetooth: hci3 command 0x0419 tx timeout Bluetooth: hci2 command 0x0419 tx timeout Bluetooth: hci5 command 0x0419 tx timeout watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [kworker/u5:6:8352] Modules linked in: irq event stamp: 25574 hardirqs last enabled at (25573): [] kvm_wait arch/x86/kernel/kvm.c:600 [inline] hardirqs last enabled at (25573): [] kvm_wait+0x163/0x230 arch/x86/kernel/kvm.c:580 hardirqs last disabled at (25574): [] apic_timer_interrupt+0x95/0xa0 arch/x86/entry/entry_64.S:793 softirqs last enabled at (15074): [] __do_softirq+0x644/0x9a2 kernel/softirq.c:314 softirqs last disabled at (14895): [] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (14895): [] irq_exit+0x15f/0x1a0 kernel/softirq.c:409 CPU: 0 PID: 8352 Comm: kworker/u5:6 Not tainted 4.14.232-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: hci0 connectable_update_work task: ffff888094dea200 task.stack: ffff88809ee18000 RIP: 0010:native_safe_halt+0x12/0x20 arch/x86/include/asm/irqflags.h:61 RSP: 0018:ffff88809ee1f9d8 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff10 RAX: dffffc0000000000 RBX: ffffffff89dd234c RCX: 1ffff110129bd569 RDX: 1ffffffff11e10c4 RSI: ffff888094deab28 RDI: ffffffff88f08620 RBP: ffff88809ee1f9d8 R08: ffff888094deab48 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000003 R13: 0000000000000286 R14: ffff8880ba62ae80 R15: ffffffff89dd234d FS: 0000000000000000(0000) GS:ffff8880ba600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000542978 CR3: 00000000aac23000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: arch_safe_halt arch/x86/include/asm/paravirt.h:94 [inline] kvm_wait arch/x86/kernel/kvm.c:600 [inline] kvm_wait+0x194/0x230 arch/x86/kernel/kvm.c:580 pv_wait arch/x86/include/asm/paravirt.h:679 [inline] pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:447 [inline] __pv_queued_spin_lock_slowpath+0x768/0x960 kernel/locking/qspinlock.c:465 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:669 [inline] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:52 [inline] queued_spin_lock include/asm-generic/qspinlock.h:90 [inline] queued_read_lock_slowpath+0x15f/0x190 kernel/locking/qrwlock.c:90 queued_read_lock include/asm-generic/qrwlock.h:121 [inline] do_raw_read_lock+0x6b/0x80 kernel/locking/spinlock_debug.c:154 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x38/0x40 kernel/locking/spinlock.c:224 hci_send_to_channel+0x2f/0x1c0 net/bluetooth/hci_sock.c:261 hci_send_monitor_ctrl_event+0x385/0x4b0 net/bluetooth/hci_sock.c:391 mgmt_send_event+0x270/0x300 net/bluetooth/mgmt_util.c:86 mgmt_limited_event net/bluetooth/mgmt.c:260 [inline] new_settings+0x80/0xa0 net/bluetooth/mgmt.c:1089 mgmt_set_connectable_complete+0x171/0x200 net/bluetooth/mgmt.c:1352 connectable_update_work+0x79/0x90 net/bluetooth/hci_request.c:1597 process_one_work+0x74f/0x1620 kernel/workqueue.c:2116 worker_thread+0xcc/0xee0 kernel/workqueue.c:2250 kthread+0x338/0x400 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Code: ff ff 4c 89 e7 e8 4f 5f 48 fa eb 97 90 90 90 90 90 90 90 90 90 90 90 90 90 55 48 89 e5 e9 07 00 00 00 0f 00 2d 70 c1 51 00 fb f4 <5d> c3 66 66 2e 0f 1f 84 00 00 00 00 00 90 55 48 89 e5 e9 07 00 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 10396 Comm: syz-executor.2 Not tainted 4.14.232-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8880aafbe600 task.stack: ffff8880aaae0000 RIP: 0010:__read_once_size include/linux/compiler.h:183 [inline] RIP: 0010:atomic_read arch/x86/include/asm/atomic.h:27 [inline] RIP: 0010:queued_write_lock_slowpath+0xd0/0x1d0 kernel/locking/qrwlock.c:139 RSP: 0018:ffff8880aaae7ca8 EFLAGS: 00000206 RAX: 0000000000000101 RBX: ffffffff89dd2348 RCX: ffff8880aafbee88 RDX: 0000000000000000 RSI: ffff8880aafbeed8 RDI: ffffffff89dd2348 RBP: ffff8880aaae7cd8 R08: 0000000000000018 R09: ffffffff8aa78a00 R10: 0000000000000050 R11: ffff8880aafbe600 R12: ffffffff89dd234c R13: 0000000000000003 R14: fffffbfff13ba469 R15: 00000000000000ff FS: 0000000002bc6400(0000) GS:ffff8880ba700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000051a5d0 CR3: 000000009f913000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: queued_write_lock include/asm-generic/qrwlock.h:134 [inline] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 __raw_write_lock include/linux/rwlock_api_smp.h:211 [inline] _raw_write_lock+0x35/0x40 kernel/locking/spinlock.c:296 bt_sock_unlink+0x1a/0x150 net/bluetooth/af_bluetooth.c:151 hci_sock_release+0xac/0x370 net/bluetooth/hci_sock.c:850 __sock_release+0xc2/0x2a0 net/socket.c:602 sock_close+0x10/0x20 net/socket.c:1139 __fput+0x232/0x740 fs/file_table.c:210 ____fput+0x9/0x10 fs/file_table.c:244 task_work_run+0xe5/0x170 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x14a/0x190 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x416/0x5b0 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x41926b RSP: 002b:00007ffe9f983c10 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 000000000041926b RDX: ffffffffffffffbc RSI: 0000000000000001 RDI: 0000000000000004 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000001b33720070 R10: 00007ffe9f983d00 R11: 0000000000000293 R12: 000000000000c3b9 R13: 00000000000003e8 R14: 000000000056bf60 R15: 000000000000c3b1 Code: 75 dc 49 89 de 49 89 dd 41 bf ff 00 00 00 49 c1 ee 03 41 83 e5 07 48 b8 00 00 00 00 00 fc ff df 49 01 c6 41 83 c5 03 eb 02 f3 90 <41> 0f b6 06 41 38 c5 7c 08 84 c0 0f 85 a6 00 00 00 8b 03 83 f8