syzbot


INFO: rcu detected stall in inet6_sendmsg (2)

Status: auto-closed as invalid on 2021/10/11 07:18
Subsystems: net
[Documentation on labels]
First crash: 1028d, last: 1023d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in inet6_sendmsg net 4 1695d 1724d 0/26 closed as dup on 2019/08/22 13:46

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1):
	(detected by 1, t=10503 jiffies, g=338265, q=88)
rcu: All QSes seen, last rcu_preempt kthread activity 10494 (4295115309-4295104815), jiffies_till_next_fqs=1, root ->qsmask 0x0
rcu: rcu_preempt kthread starved for 10495 jiffies! g338265 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt     state:R  running task     stack:28816 pid:   14 ppid:     2 flags:0x00004000
Call Trace:
 context_switch kernel/sched/core.c:4683 [inline]
 __schedule+0x934/0x2710 kernel/sched/core.c:5940
 schedule+0xd3/0x270 kernel/sched/core.c:6019
 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1892
 rcu_gp_fqs_loop kernel/rcu/tree.c:2004 [inline]
 rcu_gp_kthread+0xd1a/0x2300 kernel/rcu/tree.c:2177
 kthread+0x3e5/0x4d0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 836 Comm: syz-executor.2 Tainted: G        W         5.13.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:trylock_clear_pending kernel/locking/qspinlock_paravirt.h:121 [inline]
RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:435 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x3c9/0xb40 kernel/locking/qspinlock.c:508
Code: 83 e3 07 41 be 01 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8d 2c 01 eb 0c f3 90 41 83 ec 01 0f 84 72 04 00 00 41 0f b6 45 00 <38> d8 7f 08 84 c0 0f 85 91 05 00 00 0f b6 45 00 84 c0 75 db be 02
RSP: 0018:ffffc90000007a30 EFLAGS: 00000206
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff18ee5e8
RDX: 0000000000000001 RSI: ffffffff817b97b1 RDI: ffffffff81331571
RBP: ffffffff8c772f40 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff817b9779 R11: 0000000000000080 R12: 000000000000140c
R13: fffffbfff18ee5e8 R14: 0000000000000001 R15: ffff8880b9c52840
FS:  00007ff90c954700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000014a53ad CR3: 0000000022c8d000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [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/0x2b0 kernel/locking/spinlock_debug.c:113
 spin_lock include/linux/spinlock.h:354 [inline]
 mac80211_hwsim_tx_frame_no_nl.isra.0+0x68f/0x1330 drivers/net/wireless/mac80211_hwsim.c:1516
 mac80211_hwsim_tx_frame+0x1ee/0x2a0 drivers/net/wireless/mac80211_hwsim.c:1784
 mac80211_hwsim_beacon_tx+0x4b7/0x920 drivers/net/wireless/mac80211_hwsim.c:1838
 __iterate_interfaces+0x1e5/0x520 net/mac80211/util.c:793
 ieee80211_iterate_active_interfaces_atomic+0x8d/0x170 net/mac80211/util.c:829
 mac80211_hwsim_beacon+0xd5/0x1a0 drivers/net/wireless/mac80211_hwsim.c:1861
 __run_hrtimer kernel/time/hrtimer.c:1537 [inline]
 __hrtimer_run_queues+0x609/0xe40 kernel/time/hrtimer.c:1601
 hrtimer_run_softirq+0x17b/0x360 kernel/time/hrtimer.c:1618
 __do_softirq+0x29b/0x9bd kernel/softirq.c:558
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x16e/0x1c0 kernel/softirq.c:636
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648
 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1100
 </IRQ>
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:deref_stack_regs arch/x86/kernel/unwind_orc.c:367 [inline]
RIP: 0010:unwind_next_frame+0xf8f/0x1ce0 arch/x86/kernel/unwind_orc.c:547
Code: 41 80 7e 34 00 0f 85 34 f4 ff ff 80 3d 38 13 23 0c 00 0f 85 27 f4 ff ff e9 34 8d aa 07 4c 8b 7c 24 60 ba a8 00 00 00 4c 89 f7 <4c> 89 44 24 20 4c 89 fe e8 f4 ed ff ff 84 c0 0f 85 90 00 00 00 49
RSP: 0018:ffffc90001c1f0d0 EFLAGS: 00000246
RAX: 0000000000000001 RBX: 1ffff92000383e22 RCX: ffffffff8e7aaba3
RDX: 00000000000000a8 RSI: 0000000000000000 RDI: ffffc90001c1f1a8
RBP: 0000000000000001 R08: ffffffff8e7aab9e R09: 0000000000000001
R10: fffff52000383e40 R11: 0000000000086087 R12: ffffc90001c1f1f0
R13: ffffc90001c1f1dd R14: ffffc90001c1f1a8 R15: ffffc90001c1ff58
 arch_stack_walk+0x7d/0xe0 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121
 kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38
 kasan_set_track mm/kasan/common.c:46 [inline]
 set_alloc_info mm/kasan/common.c:434 [inline]
 __kasan_slab_alloc+0x84/0xa0 mm/kasan/common.c:467
 kasan_slab_alloc include/linux/kasan.h:253 [inline]
 slab_post_alloc_hook mm/slab.h:512 [inline]
 slab_alloc_node mm/slub.c:2970 [inline]
 kmem_cache_alloc_node+0x266/0x3e0 mm/slub.c:3006
 __alloc_skb+0x20b/0x340 net/core/skbuff.c:414
 alloc_skb include/linux/skbuff.h:1112 [inline]
 __ip6_append_data.isra.0+0x2c53/0x3bb0 net/ipv6/ip6_output.c:1628
 ip6_append_data+0x207/0x350 net/ipv6/ip6_output.c:1796
 udpv6_sendmsg+0xaff/0x2c40 net/ipv6/udp.c:1554
 inet6_sendmsg+0x99/0xe0 net/ipv6/af_inet6.c:642
 sock_sendmsg_nosec net/socket.c:702 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:722
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2385
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2439
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2468
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4665d9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff90c954188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80
R13: 00007ffd8d3b692f R14: 00007ff90c954300 R15: 0000000000022000

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/08 18:52 bpf aa80a10c008c 1b20171a .config console log report info ci-upstream-bpf-kasan-gce INFO: rcu detected stall in inet6_sendmsg
2021/07/13 07:18 bpf-next 97eb31384af9 f415556d .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in inet6_sendmsg
* Struck through repros no longer work on HEAD.