syzbot


BUG: soft lockup in bind

Status: auto-obsoleted due to no activity on 2022/08/29 14:09
Reported-by: syzbot+6a918ab4e4ea0ed8ab85@syzkaller.appspotmail.com
First crash: 1055d, last: 918d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 BUG: soft lockup in bind (2) 2 646d 747d 0/1 upstream: reported on 2022/10/19 20:49
linux-4.14 INFO: rcu detected stall in bind 12 1266d 1499d 0/1 auto-closed as invalid on 2021/09/15 00:37

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [syz-executor.2:20178]
Modules linked in:
irq event stamp: 12106
hardirqs last  enabled at (12105): [<ffffffff812307db>] kvm_wait arch/x86/kernel/kvm.c:600 [inline]
hardirqs last  enabled at (12105): [<ffffffff812307db>] kvm_wait+0x14b/0x240 arch/x86/kernel/kvm.c:580
hardirqs last disabled at (12106): [<ffffffff874018ae>] apic_timer_interrupt+0x8e/0xa0 arch/x86/entry/entry_64.S:793
softirqs last  enabled at (2050): [<ffffffff8760068b>] __do_softirq+0x68b/0x9ff kernel/softirq.c:314
softirqs last disabled at (1951): [<ffffffff81321cf3>] invoke_softirq kernel/softirq.c:368 [inline]
softirqs last disabled at (1951): [<ffffffff81321cf3>] irq_exit+0x193/0x240 kernel/softirq.c:409
CPU: 0 PID: 20178 Comm: syz-executor.2 Not tainted 4.14.277-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff888095064680 task.stack: ffff88809b8a8000
RIP: 0010:native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:61
RSP: 0018:ffff88809b8afb20 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff10
RAX: 1ffffffff11e1314 RBX: ffffffff89ddb5ac RCX: 1ffff11012a0c9ef
RDX: dffffc0000000000 RSI: ffff888095064f58 RDI: ffff888095064f04
RBP: 0000000000000003 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286
R13: dffffc0000000000 R14: ffffffff89ddb5ad R15: ffffed10174869e8
FS:  00007fd0c35ce700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000a9773000 CR4: 00000000003406f0
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+0x179/0x240 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+0x722/0x910 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+0x150/0x190 kernel/locking/qrwlock.c:90
 hci_send_to_channel+0x3c/0x200 net/bluetooth/hci_sock.c:272
 hci_send_monitor_ctrl_event+0x3dd/0x500 net/bluetooth/hci_sock.c:402
 mgmt_send_event+0x2b3/0x330 net/bluetooth/mgmt_util.c:86
 mgmt_index_event net/bluetooth/mgmt.c:256 [inline]
 mgmt_index_removed+0x200/0x240 net/bluetooth/mgmt.c:6600
 hci_sock_bind+0xe00/0x12b0 net/bluetooth/hci_sock.c:1186
 SYSC_bind net/socket.c:1489 [inline]
 SyS_bind+0x174/0x1f0 net/socket.c:1475
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7fd0c4c590e9
RSP: 002b:00007fd0c35ce168 EFLAGS: 00000246 ORIG_RAX: 0000000000000031
RAX: ffffffffffffffda RBX: 00007fd0c4d6bf60 RCX: 00007fd0c4c590e9
RDX: 0000000000000006 RSI: 0000000020000040 RDI: 0000000000000004
RBP: 00007fd0c4cb308d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe2ba7ca1f R14: 00007fd0c35ce300 R15: 0000000000022000
Code: 8b 5a fa e9 4f ff ff ff 48 89 ef e8 4d 8b 5a fa eb 93 90 90 90 90 90 90 90 90 90 90 90 e9 07 00 00 00 0f 00 2d b4 19 63 00 fb f4 <c3> 90 e9 07 00 00 00 0f 00 2d a4 19 63 00 f4 c3 90 90 41 55 41 
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 20170 Comm: syz-executor.0 Not tainted 4.14.277-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880ac2ca640 task.stack: ffff888093c40000
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+0xcb/0x1d0 kernel/locking/qrwlock.c:139
RSP: 0018:ffff888093c47950 EFLAGS: 00000206
RAX: 0000000000000101 RBX: ffffffff89ddb5a8 RCX: 00000000000005f7
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffffff89ddb5a8
RBP: ffffffff89ddb5ac R08: ffffffff8b9a8a78 R09: 0000000000040590
R10: ffff8880ac2caf18 R11: ffff8880ac2ca640 R12: 0000000000000003
R13: fffffbfff13bb6b5 R14: 00000000000000ff R15: ffff8880a7c4dc90
FS:  0000000000000000(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f66aacc3f64 CR3: 0000000008e6a000 CR4: 00000000003406e0
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
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xa44/0x2850 kernel/exit.c:868
 do_group_exit+0x100/0x2e0 kernel/exit.c:965
 get_signal+0x38d/0x1ca0 kernel/signal.c:2412
 do_signal+0x7c/0x1550 arch/x86/kernel/signal.c:792
 exit_to_usermode_loop+0x160/0x200 arch/x86/entry/common.c:160
 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:0x7ff7eed620e9
RSP: 002b:00007ff7ed632218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007ff7eee75378 RCX: 00007ff7eed620e9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007ff7eee75378
RBP: 00007ff7eee75370 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff7eee7537c
R13: 00007ffcada76a5f R14: 00007ff7ed632300 R15: 0000000000022000
Code: 75 dc 49 89 dd 49 89 dc 41 be 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 
----------------
Code disassembly (best guess):
   0:	8b 5a fa             	mov    -0x6(%rdx),%ebx
   3:	e9 4f ff ff ff       	jmpq   0xffffff57
   8:	48 89 ef             	mov    %rbp,%rdi
   b:	e8 4d 8b 5a fa       	callq  0xfa5a8b5d
  10:	eb 93                	jmp    0xffffffa5
  12:	90                   	nop
  13:	90                   	nop
  14:	90                   	nop
  15:	90                   	nop
  16:	90                   	nop
  17:	90                   	nop
  18:	90                   	nop
  19:	90                   	nop
  1a:	90                   	nop
  1b:	90                   	nop
  1c:	90                   	nop
  1d:	e9 07 00 00 00       	jmpq   0x29
  22:	0f 00 2d b4 19 63 00 	verw   0x6319b4(%rip)        # 0x6319dd
  29:	fb                   	sti
  2a:	f4                   	hlt
* 2b:	c3                   	retq <-- trapping instruction
  2c:	90                   	nop
  2d:	e9 07 00 00 00       	jmpq   0x39
  32:	0f 00 2d a4 19 63 00 	verw   0x6319a4(%rip)        # 0x6319dd
  39:	f4                   	hlt
  3a:	c3                   	retq
  3b:	90                   	nop
  3c:	90                   	nop
  3d:	41 55                	push   %r13
  3f:	41                   	rex.B

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/05/01 14:08 linux-4.14.y e3a56aaade89 2df221f6 .config console log report info ci2-linux-4-14 BUG: soft lockup in bind
2022/03/11 17:03 linux-4.14.y af48f51cb593 9e8eaa75 .config console log report info ci2-linux-4-14 BUG: soft lockup in bind
2022/01/29 10:26 linux-4.14.y b86ee2b7ae42 495e00c5 .config console log report info ci2-linux-4-14 BUG: soft lockup in bind
2022/01/25 21:23 linux-4.14.y 4ba8e26127c3 2cbffd88 .config console log report info ci2-linux-4-14 BUG: soft lockup in bind
2022/01/19 09:17 linux-4.14.y 4ba8e26127c3 0620189b .config console log report info ci2-linux-4-14 BUG: soft lockup in bind
2022/01/19 05:47 linux-4.14.y 4ba8e26127c3 731a2d23 .config console log report info ci2-linux-4-14 BUG: soft lockup in bind
2022/01/19 02:55 linux-4.14.y 4ba8e26127c3 731a2d23 .config console log report info ci2-linux-4-14 BUG: soft lockup in bind
2022/01/13 20:08 linux-4.14.y 4ba8e26127c3 b8d780ab .config console log report info ci2-linux-4-14 BUG: soft lockup in bind
2022/01/13 16:58 linux-4.14.y 4ba8e26127c3 b8d780ab .config console log report info ci2-linux-4-14 BUG: soft lockup in bind
2022/01/13 16:56 linux-4.14.y 4ba8e26127c3 b8d780ab .config console log report info ci2-linux-4-14 BUG: soft lockup in bind
2021/12/15 16:14 linux-4.14.y 9dfbac0e6b86 f752fb53 .config console log report info ci2-linux-4-14 BUG: soft lockup in bind
* Struck through repros no longer work on HEAD.