syzbot


INFO: rcu detected stall in netlink_sendmsg (2)

Status: fixed on 2019/10/09 10:54
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: d4d6ec6dac07 sch_hhf: ensure quantum and hhf_non_hh_weight are non-zero
First crash: 1242d, last: 1235d

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: no output from test machine (log)
Repro: C syz .config
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: rcu detected stall in netlink_sendmsg C done 3 1234d 1238d 1/1 fixed on 2019/12/10 03:52
upstream INFO: rcu detected stall in netlink_sendmsg (3) C done 6 1086d 1139d 16/24 fixed on 2020/02/18 14:31
upstream INFO: rcu detected stall in netlink_sendmsg syz 83 1444d 1500d 12/24 fixed on 2019/03/06 07:43
upstream INFO: rcu detected stall in netlink_sendmsg (4) C done error 37 64d 1037d 0/24 upstream: reported C repro on 2020/03/31 17:43

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-...!: (10500 ticks this GP) idle=cf2/1/0x4000000000000002 softirq=8976/8976 fqs=0 
	(t=10500 jiffies g=9053 q=213)
rcu: rcu_preempt kthread starved for 10500 jiffies! g9053 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=0
rcu: RCU grace-period kthread stack dump:
rcu_preempt     I29520    10      2 0x80004000
Call Trace:
 context_switch kernel/sched/core.c:3254 [inline]
 __schedule+0x755/0x1580 kernel/sched/core.c:3880
 schedule+0xd9/0x260 kernel/sched/core.c:3947
 schedule_timeout+0x486/0xc50 kernel/time/timer.c:1807
 rcu_gp_fqs_loop kernel/rcu/tree.c:1611 [inline]
 rcu_gp_kthread+0x9b2/0x18c0 kernel/rcu/tree.c:1768
 kthread+0x361/0x430 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
NMI backtrace for cpu 0
CPU: 0 PID: 9752 Comm: syz-executor098 Not tainted 5.3.0-rc8+ #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+0x172/0x1f0 lib/dump_stack.c:113
 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:2736 [inline]
 rcu_sched_clock_irq.cold+0x4dd/0xc13 kernel/rcu/tree.c:2183
 update_process_times+0x32/0x80 kernel/time/timer.c:1639
 tick_sched_handle+0xa2/0x190 kernel/time/tick-sched.c:167
 tick_sched_timer+0x53/0x140 kernel/time/tick-sched.c:1296
 __run_hrtimer kernel/time/hrtimer.c:1389 [inline]
 __hrtimer_run_queues+0x364/0xe40 kernel/time/hrtimer.c:1451
 hrtimer_interrupt+0x314/0x770 kernel/time/hrtimer.c:1509
 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:830
 </IRQ>
RIP: 0010:__read_once_size include/linux/compiler.h:199 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:70 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x20/0x50 kernel/kcov.c:102
Code: ff 90 90 90 90 90 90 90 90 90 55 48 89 e5 65 48 8b 04 25 40 fe 01 00 65 8b 15 f4 88 8f 7e 81 e2 00 01 1f 00 48 8b 75 08 75 2b <8b> 90 f0 12 00 00 83 fa 02 75 20 48 8b 88 f8 12 00 00 8b 80 f4 12
RSP: 0018:ffff888097e57338 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: ffff88808d232140 RBX: ffff8880a572ec38 RCX: ffffffff85c670f9
RDX: 0000000000000000 RSI: ffffffff85c66ad1 RDI: ffff8880a572ec40
RBP: ffff888097e57338 R08: ffff88808d232140 R09: 0000000000000000
R10: fffffbfff134afaf R11: ffff88808d232140 R12: dffffc0000000000
R13: ffff8880a572e940 R14: ffff8880a572ecd8 R15: ffff8880a572ecd0
 __read_once_size include/linux/compiler.h:199 [inline]
 list_empty include/linux/list.h:268 [inline]
 hhf_dequeue+0x51/0xa20 net/sched/sch_hhf.c:427
 dequeue_skb net/sched/sch_generic.c:258 [inline]
 qdisc_restart net/sched/sch_generic.c:361 [inline]
 __qdisc_run+0x1e7/0x19d0 net/sched/sch_generic.c:379
 __dev_xmit_skb net/core/dev.c:3533 [inline]
 __dev_queue_xmit+0x16f1/0x3650 net/core/dev.c:3838
 dev_queue_xmit+0x18/0x20 net/core/dev.c:3902
 __netlink_deliver_tap_skb net/netlink/af_netlink.c:294 [inline]
 __netlink_deliver_tap net/netlink/af_netlink.c:312 [inline]
 netlink_deliver_tap+0x8e2/0xbf0 net/netlink/af_netlink.c:325
 __netlink_sendskb+0x62/0xc0 net/netlink/af_netlink.c:1246
 netlink_sendskb net/netlink/af_netlink.c:1255 [inline]
 netlink_unicast+0x60a/0x710 net/netlink/af_netlink.c:1343
 netlink_ack+0x63f/0xb30 net/netlink/af_netlink.c:2447
 netlink_rcv_skb+0x376/0x450 net/netlink/af_netlink.c:2483
 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5241
 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline]
 netlink_unicast+0x531/0x710 net/netlink/af_netlink.c:1328
 netlink_sendmsg+0x8a5/0xd60 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg+0xd7/0x130 net/socket.c:657
 ___sys_sendmsg+0x803/0x920 net/socket.c:2311
 __sys_sendmsg+0x105/0x1d0 net/socket.c:2356
 __do_sys_sendmsg net/socket.c:2365 [inline]
 __se_sys_sendmsg net/socket.c:2363 [inline]
 __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2363
 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x441b09
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 7b 10 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fff54c46b68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000441b09
RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000003
RBP: 00007fff54c46b80 R08: 0000000001bbbbbb R09: 0000000001bbbbbb
R10: 0000000001bbbbbb R11: 0000000000000246 R12: 0000000000000000
R13: 00000000004030a0 R14: 0000000000000000 R15: 0000000000000000

Crashes (11):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce 2019/09/14 21:53 upstream a7f89616b737 32d59357 .config console log report syz C
ci-upstream-kasan-gce-selinux-root 2019/09/13 14:05 upstream 505a8ec7e11a 40fa42bc .config console log report syz C
ci-upstream-kasan-gce 2019/09/11 17:04 upstream 3120b9a6a3f7 a60cb4cd .config console log report syz C
ci-upstream-kasan-gce-386 2019/09/14 12:19 upstream a7f89616b737 32d59357 .config console log report syz C
ci-upstream-kasan-gce-386 2019/09/13 17:24 upstream 505a8ec7e11a 40fa42bc .config console log report syz C
ci-upstream-net-this-kasan-gce 2019/09/10 18:22 net c8dc55956b09 a60cb4cd .config console log report syz C
ci-upstream-net-this-kasan-gce 2019/09/09 02:09 net 28abe5796252 a60cb4cd .config console log report syz C
ci-upstream-net-kasan-gce 2019/09/15 03:34 net-next 1ba569fc2250 32d59357 .config console log report syz C
ci-upstream-net-kasan-gce 2019/09/09 01:04 net-next 6703a605b5ab a60cb4cd .config console log report syz C
ci-upstream-net-this-kasan-gce 2019/09/08 23:52 net 28abe5796252 a60cb4cd .config console log report
ci-upstream-net-kasan-gce 2019/09/08 09:53 net-next 6703a605b5ab a60cb4cd .config console log report
* Struck through repros no longer work on HEAD.