syzbot


BUG: soft lockup in conn_put

Status: auto-closed as invalid on 2021/12/16 18:20
Reported-by: syzbot+46abf7c520629c7a80c0@syzkaller.appspotmail.com
First crash: 1203d, last: 1203d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 BUG: soft lockup in conn_put (2) 1 909d 909d 0/1 auto-obsoleted due to no activity on 2022/10/06 12:33

Sample crash report:
IPVS: ftp: loaded support on port[0] = 21
 loop4:
loop4: partition table partially beyond EOD, truncated
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [kworker/u4:0:7]
Modules linked in:
irq event stamp: 17658823
hardirqs last  enabled at (17658822): [<ffffffff8129170b>] kvm_wait arch/x86/kernel/kvm.c:799 [inline]
hardirqs last  enabled at (17658822): [<ffffffff8129170b>] kvm_wait+0x14b/0x240 arch/x86/kernel/kvm.c:779
hardirqs last disabled at (17658823): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last  enabled at (17648188): [<ffffffff87d886ad>] spin_unlock_bh include/linux/spinlock.h:374 [inline]
softirqs last  enabled at (17648188): [<ffffffff87d886ad>] batadv_nc_purge_paths+0x22d/0x310 net/batman-adv/network-coding.c:482
softirqs last disabled at (17648194): [<ffffffff87bacafa>] spin_lock_bh include/linux/spinlock.h:334 [inline]
softirqs last disabled at (17648194): [<ffffffff87bacafa>] tipc_conn_kref_release net/tipc/topsrv.c:137 [inline]
softirqs last disabled at (17648194): [<ffffffff87bacafa>] kref_put include/linux/kref.h:70 [inline]
softirqs last disabled at (17648194): [<ffffffff87bacafa>] conn_put+0x7a/0x3a0 net/tipc/topsrv.c:155
CPU: 0 PID: 7 Comm: kworker/u4:0 Not tainted 4.19.204-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: tipc_rcv tipc_conn_recv_work
RIP: 0010:native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:61
Code: 48 89 df e8 d4 59 7f f9 e9 2e ff ff ff 48 89 df e8 c7 59 7f f9 eb 82 90 90 90 90 90 e9 07 00 00 00 0f 00 2d b4 77 4e 00 fb f4 <c3> 90 e9 07 00 00 00 0f 00 2d a4 77 4e 00 f4 c3 90 90 41 56 41 55
RSP: 0018:ffff8880b5a47bb8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13e305c RBX: ffff88809e1bf5d0 RCX: 1ffff11016b46d57
RDX: dffffc0000000000 RSI: ffff8880b5a36a98 RDI: ffff8880b5a36a44
RBP: 0000000000000003 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000282
R13: ffffed1013c37eba R14: 0000000000000001 R15: ffff8880ba02bd80
FS:  0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd45b932000 CR3: 000000009d319000 CR4: 00000000001426f0
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:799 [inline]
 kvm_wait+0x179/0x240 arch/x86/kernel/kvm.c:779
 pv_wait arch/x86/include/asm/paravirt.h:689 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:471 [inline]
 __pv_queued_spin_lock_slowpath+0x86a/0xae0 kernel/locking/qspinlock.c:474
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:679 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:53 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:88 [inline]
 do_raw_spin_lock+0x189/0x220 kernel/locking/spinlock_debug.c:113
 spin_lock_bh include/linux/spinlock.h:334 [inline]
 tipc_conn_kref_release net/tipc/topsrv.c:137 [inline]
 kref_put include/linux/kref.h:70 [inline]
 conn_put+0x7a/0x3a0 net/tipc/topsrv.c:155
 process_one_work+0x864/0x1570 kernel/workqueue.c:2153
 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 13696 Comm: kworker/u4:9 Not tainted 4.19.204-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: netns cleanup_net
RIP: 0010:idr_find+0x0/0x50 lib/idr.c:176
Code: 84 c0 74 04 3c 03 7e 15 8b 45 48 48 89 ef 31 d2 48 29 c3 48 89 de 5b 5d e9 ad 10 01 00 e8 58 b6 aa f9 eb e4 66 0f 1f 44 00 00 <55> 48 89 fd 53 48 89 f3 e8 43 e2 74 f9 48 8d 7d 48 48 b8 00 00 00
RSP: 0018:ffff88808d137bd8 EFLAGS: 00000293
RAX: ffff88804580c580 RBX: 000000002a232343 RCX: ffffffff87bb115d
RDX: 0000000000000000 RSI: 000000002a232343 RDI: ffff88809e1bf580
RBP: ffff88809e1bf580 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88809e1bf5d0
R13: ffffed1013c37ec1 R14: ffff88808e02a1c0 R15: 000000000000011b
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000543038 CR3: 00000000aad3f000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 tipc_topsrv_stop net/tipc/topsrv.c:698 [inline]
 tipc_topsrv_exit_net+0x25e/0x5c0 net/tipc/topsrv.c:722
 ops_exit_list+0xa5/0x150 net/core/net_namespace.c:153
 cleanup_net+0x3b4/0x8b0 net/core/net_namespace.c:553
 process_one_work+0x864/0x1570 kernel/workqueue.c:2153
 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
----------------
Code disassembly (best guess):
   0:	48 89 df             	mov    %rbx,%rdi
   3:	e8 d4 59 7f f9       	callq  0xf97f59dc
   8:	e9 2e ff ff ff       	jmpq   0xffffff3b
   d:	48 89 df             	mov    %rbx,%rdi
  10:	e8 c7 59 7f f9       	callq  0xf97f59dc
  15:	eb 82                	jmp    0xffffff99
  17:	90                   	nop
  18:	90                   	nop
  19:	90                   	nop
  1a:	90                   	nop
  1b:	90                   	nop
  1c:	e9 07 00 00 00       	jmpq   0x28
  21:	0f 00 2d b4 77 4e 00 	verw   0x4e77b4(%rip)        # 0x4e77dc
  28:	fb                   	sti    
  29:	f4                   	hlt    
  2a:	c3                   	retq    <-- trapping instruction
  2b:	90                   	nop
  2c:	e9 07 00 00 00       	jmpq   0x38
  31:	0f 00 2d a4 77 4e 00 	verw   0x4e77a4(%rip)        # 0x4e77dc
  38:	f4                   	hlt    
  39:	c3                   	retq   
  3a:	90                   	nop
  3b:	90                   	nop
  3c:	41 56                	push   %r14
  3e:	41 55                	push   %r13

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/18 18:20 linux-4.19.y 59456c9cc40c a2fe1cb5 .config console log report info ci2-linux-4-19 BUG: soft lockup in conn_put
* Struck through repros no longer work on HEAD.