syzbot


BUG: soft lockup in hci_sock_release

Status: auto-obsoleted due to no activity on 2022/12/04 07:28
Reported-by: syzbot+dbc31e9e4bd901a05adc@syzkaller.appspotmail.com
First crash: 865d, last: 621d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 INFO: rcu detected stall in hci_sock_release 9 1078d 1182d 0/1 auto-closed as invalid on 2021/09/03 05:06
linux-4.14 BUG: soft lockup in hci_sock_release (2) 1 423d 423d 0/1 upstream: reported on 2023/02/20 13:15

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [syz-executor.3:20439]
Modules linked in:
irq event stamp: 14908
hardirqs last  enabled at (14907): [<ffffffff87400976>] restore_regs_and_return_to_kernel+0x0/0x2a
hardirqs last disabled at (14908): [<ffffffff874018ae>] apic_timer_interrupt+0x8e/0xa0 arch/x86/entry/entry_64.S:793
softirqs last  enabled at (9890): [<ffffffff8760068b>] __do_softirq+0x68b/0x9ff kernel/softirq.c:314
softirqs last disabled at (9791): [<ffffffff81321cf3>] invoke_softirq kernel/softirq.c:368 [inline]
softirqs last disabled at (9791): [<ffffffff81321cf3>] irq_exit+0x193/0x240 kernel/softirq.c:409
CPU: 0 PID: 20439 Comm: syz-executor.3 Not tainted 4.14.290-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
task: ffff8880b39a01c0 task.stack: ffff8880b0398000
RIP: 0010:__read_once_size include/linux/compiler.h:185 [inline]
RIP: 0010:atomic_read arch/x86/include/asm/atomic.h:27 [inline]
RIP: 0010:queued_write_lock_slowpath+0xd5/0x1d0 kernel/locking/qrwlock.c:139
RSP: 0018:ffff8880b039fd10 EFLAGS: 00000206 ORIG_RAX: ffffffffffffff10
RAX: 0000000000000000 RBX: ffffffff89dd8468 RCX: 00000000000016f2
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffffff89dd8468
RBP: ffffffff89dd846c R08: ffffffff8b9ac290 R09: 0000000000040586
R10: ffff8880b39a0a98 R11: ffff8880b39a01c0 R12: 0000000000000003
R13: fffffbfff13bb08d R14: 00000000000000ff R15: ffff8880ac2d7050
FS:  0000555555e9d400(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555556752708 CR3: 00000000a396b000 CR4: 00000000003406f0
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+0xc2/0x1d0 kernel/locking/spinlock_debug.c:203
 bt_sock_unlink+0x1d/0x170 net/bluetooth/af_bluetooth.c:151
 hci_sock_release+0xc1/0x4c0 net/bluetooth/hci_sock.c:855
 __sock_release+0xcd/0x2b0 net/socket.c:602
 sock_close+0x15/0x20 net/socket.c:1139
 __fput+0x25f/0x7a0 fs/file_table.c:210
 task_work_run+0x11f/0x190 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:191 [inline]
 exit_to_usermode_loop+0x1ad/0x200 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+0x4a3/0x640 arch/x86/entry/common.c:297
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f66f60d2e4b
RSP: 002b:00007ffebfc05a70 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f66f60d2e4b
RDX: 00007f66f6237658 RSI: ffffffffffffffff RDI: 0000000000000004
RBP: 00007f66f6234960 R08: 0000000000000000 R09: 00007f66f6237660
R10: 00007ffebfc05b70 R11: 0000000000000293 R12: 0000000000311f0a
R13: 00007ffebfc05b70 R14: 00007f66f6232f60 R15: 0000000000000032
Code: ff 00 00 00 49 c1 ed 03 41 83 e4 07 48 b8 00 00 00 00 00 fc ff df 49 01 c5 41 83 c4 03 eb 02 f3 90 41 0f b6 45 00 41 38 c4 7c 08 <84> c0 0f 85 9e 00 00 00 8b 03 83 f8 01 75 e5 f0 44 0f b1 33 83 
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1 skipped: idling at pc 0xffffffff8723f20e

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/06 07:27 linux-4.14.y b641242202ed e853abd9 .config console log report info ci2-linux-4-14 BUG: soft lockup in hci_sock_release
2022/08/01 09:33 linux-4.14.y b641242202ed fef302b1 .config console log report info ci2-linux-4-14 BUG: soft lockup in hci_sock_release
2022/07/31 14:30 linux-4.14.y b641242202ed fef302b1 .config console log report info ci2-linux-4-14 BUG: soft lockup in hci_sock_release
2022/04/05 16:10 linux-4.14.y 74766a973637 0127c10f .config console log report info ci2-linux-4-14 BUG: soft lockup in hci_sock_release
2022/03/18 13:15 linux-4.14.y eb045674aab3 e2d91b1d .config console log report info ci2-linux-4-14 BUG: soft lockup in hci_sock_release
2022/03/17 13:28 linux-4.14.y eb045674aab3 dfa9a8ed .config console log report info ci2-linux-4-14 BUG: soft lockup in hci_sock_release
2022/03/03 01:00 linux-4.14.y e853993d29aa 45a13a73 .config console log report info ci2-linux-4-14 BUG: soft lockup in hci_sock_release
2022/03/02 22:55 linux-4.14.y e853993d29aa 45a13a73 .config console log report info ci2-linux-4-14 BUG: soft lockup in hci_sock_release
2022/01/18 00:33 linux-4.14.y 4ba8e26127c3 731a2d23 .config console log report info ci2-linux-4-14 BUG: soft lockup in hci_sock_release
2022/01/16 06:48 linux-4.14.y 4ba8e26127c3 723cfaf0 .config console log report info ci2-linux-4-14 BUG: soft lockup in hci_sock_release
2022/01/04 03:23 linux-4.14.y a6ca7c65b137 7f723fbe .config console log report info ci2-linux-4-14 BUG: soft lockup in hci_sock_release
2021/12/23 00:00 linux-4.14.y 8ee0807eedf3 6caa12e4 .config console log report info ci2-linux-4-14 BUG: soft lockup in hci_sock_release
2021/12/11 01:31 linux-4.14.y c01d4d1b885d 49ca1f59 .config console log report info ci2-linux-4-14 BUG: soft lockup in hci_sock_release
2021/12/05 07:05 linux-4.14.y 66722c42ec91 a617004c .config console log report info ci2-linux-4-14 BUG: soft lockup in hci_sock_release
2021/12/05 00:35 linux-4.14.y 66722c42ec91 a617004c .config console log report info ci2-linux-4-14 BUG: soft lockup in hci_sock_release
* Struck through repros no longer work on HEAD.