syzbot


INFO: rcu detected stall in inet_twsk_kill

Status: auto-closed as invalid on 2020/10/18 02:42
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 887d, last: 756d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 INFO: rcu detected stall in inet_twsk_kill 2 730d 830d 0/1 auto-closed as invalid on 2020/12/13 21:12
linux-4.19 INFO: rcu detected stall in inet_twsk_kill 1 783d 783d 0/1 auto-closed as invalid on 2020/10/21 08:34
upstream INFO: rcu detected stall in inet_twsk_kill (2) 6 532d 625d 0/23 auto-closed as invalid on 2021/05/30 18:52

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-...!: (1 GPs behind) idle=726/1/0x4000000000000000 softirq=339683/339685 fqs=0 
	(t=10501 jiffies g=441133 q=848)
rcu: rcu_preempt kthread starved for 10502 jiffies! g441133 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=1
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
rcu_preempt     R  running task    28896    10      2 0x00004000
Call Trace:
 context_switch kernel/sched/core.c:3458 [inline]
 __schedule+0x8ec/0xd90 kernel/sched/core.c:4215
NMI backtrace for cpu 0
CPU: 0 PID: 24887 Comm: syz-executor.3 Not tainted 5.8.0-rc5-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+0x1f0/0x31e lib/dump_stack.c:118
 nmi_cpu_backtrace+0x9f/0x180 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x16a/0x280 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
 rcu_dump_cpu_stacks+0x199/0x2a0 kernel/rcu/tree_stall.h:320
 print_cpu_stall kernel/rcu/tree_stall.h:553 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:627 [inline]
 rcu_pending kernel/rcu/tree.c:3489 [inline]
 rcu_sched_clock_irq+0x1928/0x1eb0 kernel/rcu/tree.c:2504
 update_process_times+0x12c/0x180 kernel/time/timer.c:1737
 tick_sched_handle kernel/time/tick-sched.c:176 [inline]
 tick_sched_timer+0x254/0x410 kernel/time/tick-sched.c:1320
 __run_hrtimer kernel/time/hrtimer.c:1520 [inline]
 __hrtimer_run_queues+0x42d/0x930 kernel/time/hrtimer.c:1584
 hrtimer_interrupt+0x373/0xd60 kernel/time/hrtimer.c:1646
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1080 [inline]
 __sysvec_apic_timer_interrupt+0xf0/0x260 arch/x86/kernel/apic/apic.c:1097
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:50 [inline]
 sysvec_apic_timer_interrupt+0x112/0x130 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:585
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:770 [inline]
RIP: 0010:lock_acquire+0x1bf/0x720 kernel/locking/lockdep.c:4962
Code: c1 e8 03 80 3c 10 00 74 0c 48 c7 c7 f8 c7 4b 89 e8 a6 03 5a 00 48 83 3d c6 2b f2 07 00 0f 84 09 05 00 00 48 8b 7c 24 10 57 9d <0f> 1f 44 00 00 65 48 8b 04 25 28 00 00 00 48 3b 44 24 50 0f 85 e0
RSP: 0000:ffffc90000007cb8 EFLAGS: 00000286
RAX: 1ffffffff12978ff RBX: 0000000000000000 RCX: ffffffff815a8114
RDX: dffffc0000000000 RSI: 0000000000000008 RDI: 0000000000000286
RBP: 1ffff11012cee539 R08: dffffc0000000000 R09: fffffbfff1674aae
R10: fffffbfff1674aae R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffff8880967729cc R15: 0000000000000000
 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151
 spin_lock include/linux/spinlock.h:353 [inline]
 inet_twsk_kill+0x314/0x5a0 net/ipv4/inet_timewait_sock.c:58
 call_timer_fn+0x91/0x160 kernel/time/timer.c:1415
 expire_timers kernel/time/timer.c:1460 [inline]
 __run_timers+0x736/0x930 kernel/time/timer.c:1784
 run_timer_softirq+0x46/0x80 kernel/time/timer.c:1797
 __do_softirq+0x268/0x80c kernel/softirq.c:292
 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline]
 do_softirq_own_stack+0xe0/0x1a0 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:387 [inline]
 __irq_exit_rcu+0x1e1/0x1f0 kernel/softirq.c:417
 irq_exit_rcu+0x6/0x50 kernel/softirq.c:429
 sysvec_apic_timer_interrupt+0x117/0x130 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:585
RIP: 0033:0x45c1d9
Code: Bad RIP value.
RSP: 002b:00007f45e94c8c78 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000003400 RCX: 000000000045c1d9
RDX: 00000000000ca200 RSI: 0000000000000004 RDI: 0000000000000003
RBP: 000000000078bf40 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000078bf0c
R13: 00007fff91a4f2df R14: 00007f45e94c99c0 R15: 000000000078bf0c
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 24888 Comm: syz-executor.0 Not tainted 5.8.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:90 [inline]
RIP: 0010:memory_is_nonzero mm/kasan/generic.c:108 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:134 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:165 [inline]
RIP: 0010:check_memory_region_inline mm/kasan/generic.c:183 [inline]
RIP: 0010:check_memory_region+0x76/0x2f0 mm/kasan/generic.c:192
Code: 8d 54 37 ff 49 c1 ea 03 49 bd 01 00 00 00 00 fc ff df 4d 01 ea 4d 89 d6 4d 29 ce 49 83 fe 10 7f 2d 4d 85 f6 0f 84 ab 01 00 00 <4c> 89 cb 4c 29 d3 0f 1f 40 00 45 0f b6 19 45 84 db 0f 85 f3 01 00
RSP: 0018:ffffc90000da8378 EFLAGS: 00000002
RAX: 0000000000000001 RBX: 000000000001ffff RCX: ffffffff816545ef
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff898d3ea8
RBP: 000002291edebdd8 R08: dffffc0000000000 R09: fffffbfff131a7d5
R10: fffffbfff131a7d6 R11: 0000000000000000 R12: 1ffffffff131a7d5
R13: dffffc0000000001 R14: 0000000000000001 R15: ffff8880ae927640
FS:  00007f01d7889700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31322000 CR3: 00000000a9569000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 instrument_atomic_read include/linux/instrumented.h:56 [inline]
 test_bit include/asm-generic/bitops/instrumented-non-atomic.h:110 [inline]
 cpumask_test_cpu include/linux/cpumask.h:367 [inline]
 trace_hrtimer_cancel+0x18f/0x2b0 include/trace/events/timer.h:290
 debug_deactivate kernel/time/hrtimer.c:483 [inline]
 __run_hrtimer kernel/time/hrtimer.c:1488 [inline]
 __hrtimer_run_queues+0x291/0x930 kernel/time/hrtimer.c:1584
 hrtimer_interrupt+0x373/0xd60 kernel/time/hrtimer.c:1646
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1080 [inline]
 __sysvec_apic_timer_interrupt+0xf0/0x260 arch/x86/kernel/apic/apic.c:1097
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:50 [inline]
 sysvec_apic_timer_interrupt+0x112/0x130 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:585
RIP: 0010:unwind_get_return_address+0x5/0x90 arch/x86/kernel/unwind_orc.c:313
Code: d9 80 e1 07 80 c1 03 38 c1 0f 8c 22 ff ff ff 48 89 df e8 2e 1c 80 00 e9 15 ff ff ff e8 04 19 ea 06 0f 1f 40 00 41 57 41 56 53 <48> 89 fb 49 be 00 00 00 00 00 fc ff df 48 89 f8 48 c1 e8 03 42 8a
RSP: 0018:ffffc90000da86d8 EFLAGS: 00000202
RAX: 0000000000000001 RBX: ffffc90000da86f8 RCX: 0000000000000301
RDX: ffffc90000da87d0 RSI: 0000000000000001 RDI: ffffc90000da86f8
RBP: ffffc90000da8788 R08: dffffc0000000000 R09: ffffc90000da8748
R10: fffff520001b50eb R11: 0000000000000000 R12: ffff88809e4260c0
R13: ffffffff8163c0d0 R14: ffffc90000da8798 R15: 0000000000000000
 arch_stack_walk+0x98/0xe0 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0xad/0x150 kernel/stacktrace.c:123
 save_stack mm/kasan/common.c:48 [inline]
 set_track mm/kasan/common.c:56 [inline]
 __kasan_kmalloc+0x103/0x140 mm/kasan/common.c:494
 slab_post_alloc_hook mm/slab.h:586 [inline]
 slab_alloc mm/slab.c:3320 [inline]
 __do_kmalloc mm/slab.c:3654 [inline]
 __kmalloc+0x228/0x330 mm/slab.c:3665
 kmalloc include/linux/slab.h:560 [inline]
 kzalloc+0x1d/0x40 include/linux/slab.h:669
 neigh_alloc net/core/neighbour.c:399 [inline]
 ___neigh_create+0x54c/0x1c50 net/core/neighbour.c:577
 ip6_finish_output2+0x95b/0x1400 net/ipv6/ip6_output.c:114
 dst_output include/net/dst.h:443 [inline]
 NF_HOOK include/linux/netfilter.h:307 [inline]
 ndisc_send_skb+0x92d/0xd20 net/ipv6/ndisc.c:506
 addrconf_rs_timer+0x226/0x680 net/ipv6/addrconf.c:3848
 call_timer_fn+0x91/0x160 kernel/time/timer.c:1415
 expire_timers kernel/time/timer.c:1460 [inline]
 __run_timers+0x736/0x930 kernel/time/timer.c:1784
 run_timer_softirq+0x46/0x80 kernel/time/timer.c:1797
 __do_softirq+0x268/0x80c kernel/softirq.c:292
 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline]
 do_softirq_own_stack+0xe0/0x1a0 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:387 [inline]
 __irq_exit_rcu+0x1e1/0x1f0 kernel/softirq.c:417
 irq_exit_rcu+0x6/0x50 kernel/softirq.c:429
 sysvec_apic_timer_interrupt+0x117/0x130 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:585
RIP: 0010:preempt_schedule_irq+0xc0/0x150 kernel/sched/core.c:4473
Code: 5a f9 43 80 3c 37 00 74 0c 48 c7 c7 08 c8 4b 89 e8 c5 28 94 f9 48 83 3d f5 50 2c 01 00 0f 84 81 00 00 00 fb 66 0f 1f 44 00 00 <bf> 01 00 00 00 e8 b6 ec ff ff 43 80 3c 34 00 74 0c 48 c7 c7 00 c8
RSP: 0018:ffffc90016eff728 EFLAGS: 00000282
RAX: 00000000000004f7 RBX: ffffc90016eff768 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff881f76f8
RBP: 0000000000000000 R08: dffffc0000000000 R09: fffffbfff1674aa5
R10: fffffbfff1674aa5 R11: 0000000000000000 R12: 1ffffffff1297900
R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffffffff1297901
 idtentry_exit_cond_resched arch/x86/entry/common.c:663 [inline]
 idtentry_exit_cond_rcu+0xcb/0xe0 arch/x86/entry/common.c:710
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:585
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:770 [inline]
RIP: 0010:lock_acquire+0x1bf/0x720 kernel/locking/lockdep.c:4962
Code: c1 e8 03 80 3c 10 00 74 0c 48 c7 c7 f8 c7 4b 89 e8 a6 03 5a 00 48 83 3d c6 2b f2 07 00 0f 84 09 05 00 00 48 8b 7c 24 10 57 9d <0f> 1f 44 00 00 65 48 8b 04 25 28 00 00 00 48 3b 44 24 50 0f 85 e0
RSP: 0018:ffffc90016eff818 EFLAGS: 00000286
RAX: 1ffffffff12978ff RBX: 0000000000000000 RCX: 957043d2358cfa21
RDX: dffffc0000000000 RSI: ffff88809e4269b8 RDI: 0000000000000286
RBP: 1ffff11013c84d31 R08: dffffc0000000000 R09: fffffbfff1674a9f
R10: fffffbfff1674a9f R11: 0000000000000000 R12: 0000000000000002
R13: 0000000000000000 R14: ffff88809e42698c R15: 0000000000000000
 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:241
 rcu_read_lock include/linux/rcupdate.h:634 [inline]
 is_bpf_text_address+0x24/0x280 kernel/bpf/core.c:704
 kernel_text_address kernel/extable.c:151 [inline]
 __kernel_text_address+0x93/0x110 kernel/extable.c:105
 unwind_get_return_address+0x48/0x90 arch/x86/kernel/unwind_orc.c:317
 arch_stack_walk+0x98/0xe0 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0xad/0x150 kernel/stacktrace.c:123
 save_stack mm/kasan/common.c:48 [inline]
 set_track mm/kasan/common.c:56 [inline]
 __kasan_kmalloc+0x103/0x140 mm/kasan/common.c:494
 slab_post_alloc_hook mm/slab.h:586 [inline]
 slab_alloc mm/slab.c:3320 [inline]
 kmem_cache_alloc+0x1f5/0x2d0 mm/slab.c:3484
 anon_vma_chain_alloc mm/rmap.c:136 [inline]
 anon_vma_clone+0xa1/0x4d0 mm/rmap.c:282
 __split_vma+0x1a9/0x4a0 mm/mmap.c:2681
 __do_munmap+0x38f/0x14d0 mm/mmap.c:2782
 mremap_to mm/mremap.c:589 [inline]
 __do_sys_mremap mm/mremap.c:722 [inline]
 __se_sys_mremap+0xb06/0x1260 mm/mremap.c:663
 do_syscall_64+0x73/0xe0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45c1d9
Code: Bad RIP value.
RSP: 002b:00007f01d7888c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000019
RAX: ffffffffffffffda RBX: 000000000001f940 RCX: 000000000045c1d9
RDX: 0000000000800000 RSI: 0000000000002000 RDI: 0000000020a94000
RBP: 000000000078bf50 R08: 0000000020130000 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000246 R12: 000000000078bf0c
R13: 00007ffdb80f80ff R14: 00007f01d78899c0 R15: 000000000078bf0c

Crashes (6):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2020/07/20 02:38 upstream 92188b41f139 9c812472 .config log report
ci-upstream-kasan-gce-smack-root 2020/06/04 20:37 upstream acf25aa66371 6720fdef .config log report
ci-upstream-kasan-gce-smack-root 2020/04/19 13:31 upstream 50cc09c18985 6dfd45e1 .config log report
ci-upstream-kasan-gce-smack-root 2020/04/17 12:10 upstream 7a56db0299f9 18397578 .config log report
ci-upstream-kasan-gce-smack-root 2020/04/11 06:49 upstream ab6f762f0f53 a8c6a3f8 .config log report
ci-upstream-kasan-gce-smack-root 2020/03/11 01:39 upstream e94148454103 35f53e45 .config log report