syzbot


INFO: rcu detected stall in inet_twsk_put

Status: auto-closed as invalid on 2020/08/11 12:16
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 818d, last: 774d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in inet_twsk_put (2) 4 500d 566d 0/22 auto-closed as invalid on 2021/05/17 08:41
linux-4.19 INFO: rcu detected stall in inet_twsk_put 1 782d 782d 0/1 auto-closed as invalid on 2020/09/02 15:40

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	1-....: (10499 ticks this GP) idle=f8e/1/0x4000000000000004 softirq=140278/140278 fqs=5241 
	(t=10501 jiffies g=164637 q=299932)
NMI backtrace for cpu 1
CPU: 1 PID: 1490 Comm: syz-executor.5 Not tainted 5.7.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+0x1e9/0x30e 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:254
 print_cpu_stall kernel/rcu/tree_stall.h:475 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:549 [inline]
 rcu_pending kernel/rcu/tree.c:3225 [inline]
 rcu_sched_clock_irq+0x186a/0x1ac0 kernel/rcu/tree.c:2296
 update_process_times+0x12c/0x180 kernel/time/timer.c:1727
 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:1113 [inline]
 smp_apic_timer_interrupt+0x109/0x280 arch/x86/kernel/apic/apic.c:1138
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829
RIP: 0010:trace_kmem_cache_free+0x8a/0x100 include/trace/events/kmem.h:145
Code: 00 48 8d 5b 18 75 e9 65 ff 0d 0e 34 51 7e 0f 84 82 00 00 00 65 8b 05 fd c8 50 7e 83 f8 40 73 64 89 c0 48 0f a3 05 86 d3 ba 07 <73> 52 65 83 05 e8 33 51 7e 01 48 8b 05 6d 23 b7 07 e8 00 48 af ff
RSP: 0018:ffffc90000da8cf8 EFLAGS: 00000283 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000001 RBX: ffffffff895d2660 RCX: ffffffff81590f92
RDX: dffffc0000000000 RSI: ffff8880a32b08d0 RDI: ffffffff86d574a7
RBP: 1ffff1101465611f R08: dffffc0000000000 R09: fffffbfff16294c9
R10: fffffbfff16294c9 R11: 0000000000000000 R12: ffff8880a32b08d0
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8880a32b08f8
 inet_twsk_free net/ipv4/inet_timewait_sock.c:73 [inline]
 inet_twsk_put+0x137/0x1a0 net/ipv4/inet_timewait_sock.c:80
 call_timer_fn+0x91/0x160 kernel/time/timer.c:1405
 expire_timers kernel/time/timer.c:1450 [inline]
 __run_timers+0x776/0x970 kernel/time/timer.c:1774
 run_timer_softirq+0x46/0x80 kernel/time/timer.c:1787
 __do_softirq+0x268/0x80c kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:373 [inline]
 irq_exit+0x223/0x230 kernel/softirq.c:413
 exiting_irq arch/x86/include/asm/apic.h:546 [inline]
 smp_apic_timer_interrupt+0x113/0x280 arch/x86/kernel/apic/apic.c:1140
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829
 </IRQ>
RIP: 0010:memset_erms+0x9/0x10 arch/x86/lib/memset_64.S:66
Code: c1 e9 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 f3 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 <f3> aa 4c 89 c8 c3 90 49 89 fa 40 0f b6 ce 48 b8 01 01 01 01 01 01
RSP: 0018:ffffc900065279d8 EFLAGS: 00010207 ORIG_RAX: ffffffffffffff13
RAX: dffffc00000000ff RBX: ffff8880502eb000 RCX: 00000000000000c0
RDX: 0000000000000200 RSI: 00000000000000ff RDI: ffffed100a05d740
RBP: ffffea000140bad8 R08: ffffffff81b0b388 R09: ffffed100a05d600
R10: fffffbfff16fcc15 R11: 0000000000000000 R12: ffffea000140bac0
R13: ffffea000140baf0 R14: dffffc0000000000 R15: 1ffffd400028175e
 free_pages_prepare mm/page_alloc.c:1237 [inline]
 free_pcp_prepare+0x28d/0x4b0 mm/page_alloc.c:1250
 free_unref_page_prepare mm/page_alloc.c:3068 [inline]
 free_unref_page+0x12/0x230 mm/page_alloc.c:3117
 __vunmap+0x8e6/0xa20 mm/vmalloc.c:2316
 kcov_put kernel/kcov.c:396 [inline]
 kcov_close+0x27/0x50 kernel/kcov.c:495
 __fput+0x2ed/0x750 fs/file_table.c:280
 task_work_run+0x147/0x1d0 kernel/task_work.c:123
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0x5ef/0x1f80 kernel/exit.c:796
 do_group_exit+0x15e/0x2c0 kernel/exit.c:894
 get_signal+0x13cf/0x1d60 kernel/signal.c:2739
 do_signal+0x33/0x610 arch/x86/kernel/signal.c:784
 exit_to_usermode_loop arch/x86/entry/common.c:161 [inline]
 prepare_exit_to_usermode+0x32a/0x600 arch/x86/entry/common.c:196
 ret_from_intr+0x26/0x2b
RIP: 0033:0x45c829
Code: 08 0f 57 c0 0f 11 44 24 48 48 8b 4c 24 30 48 89 4c 24 48 48 89 44 24 50 48 8b 4c 24 48 48 8b 54 24 78 48 39 c2 74 12 c6 84 24 <90> 00 00 00 00 48 8b 6c 24 58 48 83 c4 60 c3 48 8b 44 24 70 48 89
RSP: 002b:00007fb74bce5cf8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff09
RAX: 0000000000000000 RBX: 000000000078bf08 RCX: 000000000045c829
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000078bf08
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000078bf0c
R13: 00007ffde723040f R14: 00007fb74bce69c0 R15: 000000000078bf0c

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2020/05/13 12:11 upstream 24085f70a6e1 9a6d42fb .config log report
ci-upstream-kasan-gce-smack-root 2020/05/06 20:06 upstream 3c40cdb0e93e 4618eb2d .config log report
ci-upstream-kasan-gce-smack-root 2020/04/03 05:04 upstream 7be97138e727 a34e2c33 .config log report
ci-upstream-kasan-gce-smack-root 2020/03/30 02:17 upstream e595dd94515e 05736b29 .config log report