syzbot


BUG: soft lockup in tipc_conn_recv_work

Status: closed as invalid on 2022/05/02 06:41
Reported-by: syzbot+5acc0100bf072b7131c4@syzkaller.appspotmail.com
First crash: 224d, last: 224d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in tipc_conn_recv_work 4 311d 375d 0/24 closed as invalid on 2022/02/08 10:10

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 144s! [kworker/u4:20:5618]
Modules linked in:
irq event stamp: 36356627
hardirqs last  enabled at (36356626): [<ffffffff8134e0bd>] kvm_wait arch/x86/kernel/kvm.c:1054 [inline]
hardirqs last  enabled at (36356626): [<ffffffff8134e0bd>] kvm_wait+0x8d/0x100 arch/x86/kernel/kvm.c:1036
hardirqs last disabled at (36356627): [<ffffffff8973177b>] sysvec_apic_timer_interrupt+0xb/0xc0 arch/x86/kernel/apic/apic.c:1106
softirqs last  enabled at (36302464): [<ffffffff890d7005>] spin_unlock_bh include/linux/spinlock.h:399 [inline]
softirqs last  enabled at (36302464): [<ffffffff890d7005>] batadv_nc_purge_paths+0x2a5/0x3a0 net/batman-adv/network-coding.c:471
softirqs last disabled at (36302476): [<ffffffff88e6cbe7>] spin_lock_bh include/linux/spinlock.h:359 [inline]
softirqs last disabled at (36302476): [<ffffffff88e6cbe7>] tipc_conn_kref_release+0x47/0x380 net/tipc/topsrv.c:129
CPU: 0 PID: 5618 Comm: kworker/u4:20 Not tainted 5.18.0-rc4-next-20220427-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:kvm_wait+0x98/0x100 arch/x86/kernel/kvm.c:1058
Code: fa 83 e2 07 38 d0 7f 04 84 c0 75 63 0f b6 07 40 38 c6 74 35 48 83 c4 10 c3 c3 e8 73 bb 4b 00 eb 07 0f 00 2d fa b2 94 08 fb f4 <48> 83 c4 10 c3 89 74 24 0c 48 89 3c 24 e8 a6 b9 4b 00 8b 74 24 0c
RSP: 0018:ffffc9000b057b00 EFLAGS: 00000206
RAX: 00000000022ac212 RBX: 0000000000000000 RCX: 1ffffffff201f23e
RDX: 0000000000000000 RSI: 0000000000000201 RDI: 0000000000000000
RBP: ffff888073bb7458 R08: 0000000000000001 R09: ffffffff900889af
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000
R13: ffffed100e776e8b R14: 0000000000000001 R15: ffff8880b9c3ae40
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e545000 CR3: 0000000044658000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 pv_wait arch/x86/include/asm/paravirt.h:603 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
 __pv_queued_spin_lock_slowpath+0x8c7/0xb50 kernel/locking/qspinlock.c:511
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock+0x200/0x2a0 kernel/locking/spinlock_debug.c:115
 spin_lock_bh include/linux/spinlock.h:359 [inline]
 tipc_conn_kref_release+0x47/0x380 net/tipc/topsrv.c:129
 kref_put include/linux/kref.h:65 [inline]
 conn_put net/tipc/topsrv.c:147 [inline]
 tipc_conn_recv_work+0x14a/0x190 net/tipc/topsrv.c:430
 process_one_work+0x996/0x1610 kernel/workqueue.c:2289
 worker_thread+0x665/0x1080 kernel/workqueue.c:2436
 kthread+0x2e9/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 12165 Comm: kworker/u4:10 Not tainted 5.18.0-rc4-next-20220427-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: netns cleanup_net
RIP: 0010:check_kcov_mode kernel/kcov.c:166 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x1c/0x60 kernel/kcov.c:200
Code: be a8 01 00 00 e8 b4 ff ff ff 31 c0 c3 90 65 8b 05 19 27 88 7e 89 c1 48 8b 34 24 81 e1 00 01 00 00 65 48 8b 14 25 00 70 02 00 <a9> 00 01 ff 00 74 0e 85 c9 74 35 8b 82 84 15 00 00 85 c0 74 2b 8b
RSP: 0018:ffffc90003f7fb78 EFLAGS: 00000246
RAX: 0000000000000201 RBX: ffff888073bb7400 RCX: 0000000000000000
RDX: ffff888016500000 RSI: ffffffff8423af2b RDI: ffff888073bb7400
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff88e71b99 R11: 0000000000000000 R12: ffff888073bb7458
R13: ffffed100e776e93 R14: ffffffff9c2da625 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8a4319dff8 CR3: 000000000ba8e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __radix_tree_lookup+0x4b/0x2a0 lib/radix-tree.c:756
 tipc_topsrv_stop net/tipc/topsrv.c:691 [inline]
 tipc_topsrv_exit_net+0x20a/0x5d0 net/tipc/topsrv.c:715
 ops_exit_list+0xb0/0x170 net/core/net_namespace.c:162
 cleanup_net+0x4ea/0xb00 net/core/net_namespace.c:594
 process_one_work+0x996/0x1610 kernel/workqueue.c:2289
 worker_thread+0x665/0x1080 kernel/workqueue.c:2436
 kthread+0x2e9/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
----------------
Code disassembly (best guess):
   0:	fa                   	cli
   1:	83 e2 07             	and    $0x7,%edx
   4:	38 d0                	cmp    %dl,%al
   6:	7f 04                	jg     0xc
   8:	84 c0                	test   %al,%al
   a:	75 63                	jne    0x6f
   c:	0f b6 07             	movzbl (%rdi),%eax
   f:	40 38 c6             	cmp    %al,%sil
  12:	74 35                	je     0x49
  14:	48 83 c4 10          	add    $0x10,%rsp
  18:	c3                   	retq
  19:	c3                   	retq
  1a:	e8 73 bb 4b 00       	callq  0x4bbb92
  1f:	eb 07                	jmp    0x28
  21:	0f 00 2d fa b2 94 08 	verw   0x894b2fa(%rip)        # 0x894b322
  28:	fb                   	sti
  29:	f4                   	hlt
* 2a:	48 83 c4 10          	add    $0x10,%rsp <-- trapping instruction
  2e:	c3                   	retq
  2f:	89 74 24 0c          	mov    %esi,0xc(%rsp)
  33:	48 89 3c 24          	mov    %rdi,(%rsp)
  37:	e8 a6 b9 4b 00       	callq  0x4bb9e2
  3c:	8b 74 24 0c          	mov    0xc(%rsp),%esi

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2022/04/27 23:46 linux-next f02ac5c95dfd 8a1f1f07 .config log report info BUG: soft lockup in tipc_conn_recv_work
* Struck through repros no longer work on HEAD.