syzbot


INFO: rcu detected stall in addrconf_rs_timer (3)

Status: fixed on 2020/02/18 14:31
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+c22c6b9dce8e773ddcb6@syzkaller.appspotmail.com
Fix commit: d9e15a273306 pkt_sched: fq: do not accept silly TCA_FQ_QUANTUM
First crash: 1843d, last: 1798d
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: INFO: rcu detected stall in corrupted (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit d9e15a2733067c9328fb56d98fe8e574fa19ec31
Author: Eric Dumazet <edumazet@google.com>
Date: Mon Jan 6 14:10:39 2020 +0000

  pkt_sched: fq: do not accept silly TCA_FQ_QUANTUM

  
Discussions (1)
Title Replies (including bot) Last reply
INFO: rcu detected stall in addrconf_rs_timer (3) 1 (3) 2020/01/26 19:12
Similar bugs (12)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in addrconf_rs_timer (2) net 362 1876d 1898d 13/28 fixed on 2019/10/21 12:31
linux-4.14 INFO: rcu detected stall in addrconf_rs_timer C error 220 1540d 1902d 0/1 upstream: reported C repro on 2019/09/06 14:33
upstream INFO: rcu detected stall in addrconf_rs_timer net 38 2163d 2258d 0/28 closed as dup on 2019/01/02 16:33
linux-4.19 INFO: rcu detected stall in addrconf_rs_timer 45 1890d 1902d 0/1 auto-closed as invalid on 2019/12/17 18:46
linux-4.19 BUG: soft lockup in addrconf_rs_timer syz error 24 660d 1343d 0/1 upstream: reported syz repro on 2021/03/19 06:05
linux-5.15 BUG: soft lockup in addrconf_rs_timer C error 36 526d 538d 0/3 auto-obsoleted due to no activity on 2023/08/23 09:06
linux-4.19 INFO: rcu detected stall in addrconf_rs_timer (2) 5 1540d 1614d 0/1 auto-closed as invalid on 2020/12/31 12:17
upstream INFO: rcu detected stall in addrconf_rs_timer (5) kvm 4 940d 940d 0/28 auto-closed as invalid on 2022/06/24 22:41
upstream INFO: rcu detected stall in addrconf_rs_timer (4) net C error error 121 1116d 1570d 0/28 closed as invalid on 2022/02/08 10:39
linux-6.1 INFO: rcu detected stall in addrconf_rs_timer 53 1d08h 180d 0/3 upstream: reported on 2024/05/24 18:08
linux-5.15 INFO: rcu detected stall in addrconf_rs_timer origin:upstream C error 37 4d09h 347d 0/3 upstream: reported C repro on 2023/12/10 10:27
upstream INFO: rcu detected stall in addrconf_rs_timer (6) usb syz error 392 5d09h 172d 0/28 upstream: reported syz repro on 2024/06/01 13:51

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	1-...!: (10500 ticks this GP) idle=38a/1/0x4000000000000004 softirq=14860/14860 fqs=0 
	(t=10500 jiffies g=10057 q=278)
rcu: rcu_preempt kthread starved for 10500 jiffies! g10057 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=1
rcu: RCU grace-period kthread stack dump:
rcu_preempt     I29272    10      2 0x80004000
Call Trace:
 context_switch kernel/sched/core.c:3385 [inline]
 __schedule+0x934/0x1f90 kernel/sched/core.c:4081
 schedule+0xdc/0x2b0 kernel/sched/core.c:4155
 schedule_timeout+0x486/0xc50 kernel/time/timer.c:1895
 rcu_gp_fqs_loop kernel/rcu/tree.c:1661 [inline]
 rcu_gp_kthread+0x9b2/0x18d0 kernel/rcu/tree.c:1821
 kthread+0x361/0x430 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
NMI backtrace for cpu 1
CPU: 1 PID: 10981 Comm: syz-executor209 Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x197/0x210 lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x70/0xb2 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x23b/0x28b lib/nmi_backtrace.c:62
 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
 rcu_dump_cpu_stacks+0x183/0x1cf kernel/rcu/tree_stall.h:254
 print_cpu_stall kernel/rcu/tree_stall.h:455 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:529 [inline]
 rcu_pending kernel/rcu/tree.c:2827 [inline]
 rcu_sched_clock_irq.cold+0x509/0xc02 kernel/rcu/tree.c:2271
 update_process_times+0x2d/0x70 kernel/time/timer.c:1726
 tick_sched_handle+0xa2/0x190 kernel/time/tick-sched.c:167
 tick_sched_timer+0x53/0x140 kernel/time/tick-sched.c:1310
 __run_hrtimer kernel/time/hrtimer.c:1517 [inline]
 __hrtimer_run_queues+0x364/0xe40 kernel/time/hrtimer.c:1579
 hrtimer_interrupt+0x314/0x770 kernel/time/hrtimer.c:1641
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1110 [inline]
 smp_apic_timer_interrupt+0x160/0x610 arch/x86/kernel/apic/apic.c:1135
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829
RIP: 0010:fq_flow_add_tail net/sched/sch_fq.c:148 [inline]
RIP: 0010:fq_dequeue+0x716/0x16a0 net/sched/sch_fq.c:518
Code: 3c 42 80 3c 30 00 0f 85 94 0c 00 00 48 8b 45 d0 49 8b 5d 48 48 c1 e8 03 42 80 3c 30 00 0f 85 00 0c 00 00 48 8b 45 d0 48 89 18 <48> 8b 45 a0 42 80 3c 30 00 0f 85 4c 0c 00 00 49 83 bf d0 02 00 00
RSP: 0018:ffffc90000da84b8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: ffff88809d78c2d0 RBX: 0000000000000000 RCX: ffffffff864629c3
RDX: 0000000000000100 RSI: ffffffff86462b78 RDI: ffff8880a8b25d58
RBP: ffffc90000da8540 R08: ffff888098622140 R09: fffffbfff165a3c4
R10: fffffbfff165a3c3 R11: ffffffff8b2d1e1f R12: ffff88809d78c2d8
R13: ffff8880a8b25d10 R14: dffffc0000000000 R15: ffff88809d78c000
 dequeue_skb net/sched/sch_generic.c:263 [inline]
 qdisc_restart net/sched/sch_generic.c:366 [inline]
 __qdisc_run+0x1a5/0x1770 net/sched/sch_generic.c:384
 __dev_xmit_skb net/core/dev.c:3677 [inline]
 __dev_queue_xmit+0x163f/0x35c0 net/core/dev.c:3982
 dev_queue_xmit+0x18/0x20 net/core/dev.c:4046
 neigh_hh_output include/net/neighbour.h:500 [inline]
 neigh_output include/net/neighbour.h:509 [inline]
 ip6_finish_output2+0xfbe/0x25c0 net/ipv6/ip6_output.c:116
 __ip6_finish_output+0x444/0xaa0 net/ipv6/ip6_output.c:142
 ip6_finish_output+0x38/0x1f0 net/ipv6/ip6_output.c:152
 NF_HOOK_COND include/linux/netfilter.h:296 [inline]
 ip6_output+0x25e/0x880 net/ipv6/ip6_output.c:175
 dst_output include/net/dst.h:436 [inline]
 NF_HOOK include/linux/netfilter.h:307 [inline]
 ndisc_send_skb+0xf1f/0x1490 net/ipv6/ndisc.c:505
 ndisc_send_rs+0x134/0x720 net/ipv6/ndisc.c:699
 addrconf_rs_timer+0x30f/0x6e0 net/ipv6/addrconf.c:3879
 call_timer_fn+0x1ac/0x780 kernel/time/timer.c:1404
 expire_timers kernel/time/timer.c:1449 [inline]
 __run_timers kernel/time/timer.c:1773 [inline]
 __run_timers kernel/time/timer.c:1740 [inline]
 run_timer_softirq+0x6c3/0x1790 kernel/time/timer.c:1786
 __do_softirq+0x262/0x98c kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:373 [inline]
 irq_exit+0x19b/0x1e0 kernel/softirq.c:413
 exiting_irq arch/x86/include/asm/apic.h:536 [inline]
 smp_apic_timer_interrupt+0x1a3/0x610 arch/x86/kernel/apic/apic.c:1137
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829
 </IRQ>
RIP: 0010:__raw_write_unlock_irq include/linux/rwlock_api_smp.h:268 [inline]
RIP: 0010:_raw_write_unlock_irq+0x4f/0x80 kernel/locking/spinlock.c:343
Code: c0 68 35 93 89 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 33 48 83 3d 22 93 c8 01 00 74 20 fb 66 0f 1f 44 00 00 <bf> 01 00 00 00 e8 37 19 86 f9 65 8b 05 28 7c 37 78 85 c0 74 06 41
RSP: 0018:ffffc9000cbc7c88 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13266ad RBX: 0000000000000000 RCX: 0000000000000006
RDX: dffffc0000000000 RSI: 0000000000000008 RDI: ffff8880986229d4
RBP: ffffc9000cbc7c90 R08: 1ffffffff165a3bd R09: fffffbfff165a3be
R10: fffffbfff165a3bd R11: ffffffff8b2d1def R12: ffffffff8a50d700
R13: 0000000000000002 R14: 0000000000000000 R15: ffff88808d159000
 netlink_table_ungrab+0x15/0x30 net/netlink/af_netlink.c:448
 netlink_remove net/netlink/af_netlink.c:611 [inline]
 netlink_release+0x814/0x1c60 net/netlink/af_netlink.c:740
 __sock_release+0xce/0x280 net/socket.c:596
 sock_close+0x1e/0x30 net/socket.c:1282
 __fput+0x2ff/0x890 fs/file_table.c:280
 ____fput+0x16/0x20 fs/file_table.c:313
 task_work_run+0x145/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x316/0x380 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:278 [inline]
 do_syscall_64+0x676/0x790 arch/x86/entry/common.c:304
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4025c0
Code: 01 f0 ff ff 0f 83 40 0d 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 83 3d cd 99 2d 00 00 75 14 b8 03 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 14 0d 00 00 c3 48 83 ec 08 e8 7a 02 00 00
RSP: 002b:00007ffe7a88c768 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00000000004025c0
RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000003
RBP: 000000000004b20d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00000000004037f0 R14: 0000000000000000 R15: 0000000000000000

Crashes (81):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/20 02:24 net-next-old a1ec57c02020 36650b4b .config console log report syz C ci-upstream-net-kasan-gce
2019/11/29 12:44 upstream 81b6b96475ac d29b9e84 .config console log report ci-qemu-upstream
2019/11/29 12:06 upstream 81b6b96475ac d29b9e84 .config console log report ci-qemu-upstream
2019/11/29 11:03 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 11:03 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 11:03 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 11:02 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 11:01 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:59 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:59 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:57 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:57 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:53 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:49 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:49 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:48 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:47 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:44 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:43 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:41 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:40 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:39 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:38 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:33 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:33 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:32 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:30 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:27 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:27 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:24 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:23 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:22 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:20 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:19 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:19 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:18 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:14 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:10 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:10 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:06 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/29 10:06 upstream 81b6b96475ac 4f7e1d0f .config console log report ci-qemu-upstream
2019/11/13 12:40 upstream 0e3f1ad80fc8 048f2d49 .config console log report ci-upstream-kasan-gce-smack-root
2019/11/13 05:28 upstream 100d46bd72ec 048f2d49 .config console log report ci-upstream-kasan-gce-smack-root
2019/11/05 08:09 upstream a99d8080aaf3 76630fc9 .config console log report ci-upstream-kasan-gce-smack-root
2019/12/04 10:14 upstream 63de37476ebd 0ecb9746 .config console log report ci-qemu-upstream-386
* Struck through repros no longer work on HEAD.