syzbot


INFO: rcu detected stall in ip_list_rcv

Status: upstream: reported on 2024/07/20 04:22
Reported-by: syzbot+1005b28bcc8052edb8ae@syzkaller.appspotmail.com
First crash: 140d, last: 84d
Similar bugs (11)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: soft lockup in ip_list_rcv (2) kvm 8 956d 956d 0/28 auto-closed as invalid on 2022/06/25 08:42
linux-6.1 INFO: rcu detected stall in ip_list_rcv 1 101d 101d 0/3 auto-obsoleted due to no activity on 2024/12/06 18:02
upstream INFO: rcu detected stall in ip_list_rcv (6) virt netfilter C done done 38 8d01h 369d 0/28 upstream: reported C repro on 2023/12/04 09:45
upstream INFO: rcu detected stall in ip_list_rcv (5) lsm netfilter 3 512d 571d 0/28 auto-obsoleted due to no activity on 2023/10/11 22:12
upstream INFO: rcu detected stall in ip_list_rcv net C error done 3 1530d 1556d 15/28 fixed on 2020/11/16 12:12
upstream INFO: rcu detected stall in ip_list_rcv (4) netfilter 1 888d 888d 0/28 auto-closed as invalid on 2022/09/01 16:20
upstream INFO: rcu detected stall in ip_list_rcv (2) netfilter 3 1384d 1463d 0/28 auto-closed as invalid on 2021/05/23 12:59
upstream INFO: rcu detected stall in ip_list_rcv (3) net 1 1076d 1076d 0/28 closed as invalid on 2022/02/08 10:10
android-5-15 BUG: soft lockup in ip_list_rcv 20 74d 228d 0/2 premoderation: reported on 2024/04/23 12:02
android-6-1 BUG: soft lockup in ip_list_rcv 2 126d 149d 0/2 auto-obsoleted due to no activity on 2024/10/31 19:10
android-5-10 BUG: soft lockup in ip_list_rcv 1 122d 122d 0/2 auto-obsoleted due to no activity on 2024/11/04 20:30

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	1-....: (10453 ticks this GP) idle=187/1/0x4000000000000000 softirq=44483/44484 fqs=332 
	(t=10502 jiffies g=63413 q=1313)
rcu: rcu_preempt kthread starved for 435 jiffies! g63413 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:27064 pid:   15 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5027 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6373
 schedule+0x11b/0x1f0 kernel/sched/core.c:6456
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1914
 rcu_gp_fqs_loop+0x2bf/0x1080 kernel/rcu/tree.c:1972
 rcu_gp_kthread+0xa4/0x360 kernel/rcu/tree.c:2145
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>
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: 10039 Comm: syz.1.1870 Not tainted 5.15.167-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:arch_static_branch arch/x86/include/asm/jump_label.h:27 [inline]
RIP: 0010:static_key_false include/linux/jump_label.h:212 [inline]
RIP: 0010:native_write_msr arch/x86/include/asm/msr.h:156 [inline]
RIP: 0010:wrmsr arch/x86/include/asm/msr.h:263 [inline]
RIP: 0010:native_apic_msr_write+0x35/0x50 arch/x86/include/asm/apic.h:208
Code: 74 2a 83 ff 30 74 25 eb 10 81 ff d0 00 00 00 74 1b 81 ff e0 00 00 00 74 13 c1 ef 04 81 c7 00 08 00 00 89 f9 89 f0 31 d2 0f 30 <66> 90 c3 89 f6 31 d2 e9 8f 41 f4 02 66 2e 0f 1f 84 00 00 00 00 00
RSP: 0018:ffffc90000006608 EFLAGS: 00000046
RAX: 0000000000000088 RBX: ffffffff8c3b49b8 RCX: 0000000000000838
RDX: 0000000000000000 RSI: 0000000000000088 RDI: 0000000000000838
RBP: 0000000000000088 R08: ffffffff81726d3d R09: fffffbfff1bd2c16
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b9027240
R13: dffffc0000000000 R14: 0000000000000088 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055813c903f90 CR3: 000000001f082000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 apic_write arch/x86/include/asm/apic.h:395 [inline]
 lapic_next_event+0x5b/0x70 arch/x86/kernel/apic/apic.c:468
 clockevents_program_event+0x1c5/0x310 kernel/time/clockevents.c:334
 hrtimer_interrupt+0x546/0x980 kernel/time/hrtimer.c:1827
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1085 [inline]
 __sysvec_apic_timer_interrupt+0x139/0x470 arch/x86/kernel/apic/apic.c:1102
 sysvec_apic_timer_interrupt+0x3e/0xb0 arch/x86/kernel/apic/apic.c:1096
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:lock_acquire+0x252/0x4f0 kernel/locking/lockdep.c:5627
Code: 2b 00 74 08 4c 89 f7 e8 0c 75 67 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0018:ffffc90000006860 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92000000d18 RCX: 1ffff92000000cb8
RDX: dffffc0000000000 RSI: ffffffff8a8b3da0 RDI: ffffffff8ad904c0
RBP: ffffc900000069b8 R08: dffffc0000000000 R09: fffffbfff20e2419
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000000d14
R13: dffffc0000000000 R14: ffffc900000068c0 R15: 0000000000000246
 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:312
 rcu_read_lock include/linux/rcupdate.h:739 [inline]
 nf_hook+0x9f/0x430 include/linux/netfilter.h:226
 __ip_local_out+0x3b2/0x4f0 net/ipv4/ip_output.c:115
 ip_local_out net/ipv4/ip_output.c:124 [inline]
 __ip_queue_xmit+0x11d9/0x1ce0 net/ipv4/ip_output.c:532
 __tcp_transmit_skb+0x1f39/0x3810 net/ipv4/tcp_output.c:1402
 tcp_rcv_established+0x135b/0x1e20 net/ipv4/tcp_input.c:5990
 tcp_v4_do_rcv+0x423/0x960 net/ipv4/tcp_ipv4.c:1728
 tcp_v4_rcv+0x2740/0x2d80 net/ipv4/tcp_ipv4.c:2140
 ip_protocol_deliver_rcu+0x381/0x730 net/ipv4/ip_input.c:204
 ip_local_deliver_finish+0x1db/0x320 net/ipv4/ip_input.c:231
 NF_HOOK+0x364/0x410 include/linux/netfilter.h:302
 dst_input include/net/dst.h:453 [inline]
 ip_sublist_rcv_finish net/ipv4/ip_input.c:577 [inline]
 ip_list_rcv_finish net/ipv4/ip_input.c:628 [inline]
 ip_sublist_rcv+0xb0f/0xe50 net/ipv4/ip_input.c:636
 ip_list_rcv+0x422/0x470 net/ipv4/ip_input.c:671
 __netif_receive_skb_list_ptype net/core/dev.c:5528 [inline]
 __netif_receive_skb_list_core+0x6b1/0x890 net/core/dev.c:5576
 __netif_receive_skb_list net/core/dev.c:5628 [inline]
 netif_receive_skb_list_internal+0x9ed/0xdf0 net/core/dev.c:5719
 gro_normal_list net/core/dev.c:5873 [inline]
 napi_complete_done+0x352/0x820 net/core/dev.c:6611
 virtqueue_napi_complete drivers/net/virtio_net.c:357 [inline]
 virtnet_poll+0xbd1/0x1260 drivers/net/virtio_net.c:1592
 __napi_poll+0xc7/0x440 net/core/dev.c:7035
 napi_poll net/core/dev.c:7102 [inline]
 net_rx_action+0x617/0xda0 net/core/dev.c:7192
 handle_softirqs+0x3a7/0x930 kernel/softirq.c:558
 __do_softirq kernel/softirq.c:592 [inline]
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x157/0x240 kernel/softirq.c:641
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:653
 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:schedule_debug kernel/sched/core.c:5579 [inline]
RIP: 0010:__schedule+0x12f/0x45b0 kernel/sched/core.c:6264
Code: 74 08 48 89 df e8 a1 c1 8d f7 48 8b 1b 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 88 c1 8d f7 48 81 3b 9d 6e ac 57 <0f> 85 2e 18 00 00 45 85 ff 44 89 bc 24 98 00 00 00 75 42 49 8d 5e
RSP: 0018:ffffc900030a7120 EFLAGS: 00000246
RAX: 1ffff92000614000 RBX: ffffc900030a0000 RCX: 0000000000000000
RDX: 0000000000000010 RSI: ffffffff8ad904a0 RDI: ffffffff8ad90460
RBP: ffffc900030a72f0 R08: dffffc0000000000 R09: ffffc900030a7280
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b9000000
R13: dffffc0000000000 R14: ffff88802800d940 R15: 0000000000000001
 preempt_schedule_common+0x83/0xd0 kernel/sched/core.c:6549
 preempt_schedule+0xd9/0xe0 kernel/sched/core.c:6574
 preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:34
 __raw_spin_unlock include/linux/spinlock_api_smp.h:152 [inline]
 _raw_spin_unlock+0x36/0x40 kernel/locking/spinlock.c:186
 spin_unlock include/linux/spinlock.h:403 [inline]
 zap_pte_range mm/memory.c:1435 [inline]
 zap_pmd_range mm/memory.c:1494 [inline]
 zap_pud_range mm/memory.c:1523 [inline]
 zap_p4d_range mm/memory.c:1544 [inline]
 unmap_page_range+0x8a7/0x2630 mm/memory.c:1565
 unmap_vmas+0x1f8/0x390 mm/memory.c:1642
 exit_mmap+0x3b6/0x670 mm/mmap.c:3186
 __mmput+0x112/0x3b0 kernel/fork.c:1126
 exit_mm+0x688/0x7f0 kernel/exit.c:550
 do_exit+0x626/0x2480 kernel/exit.c:861
 do_group_exit+0x144/0x310 kernel/exit.c:996
 get_signal+0xc66/0x14e0 kernel/signal.c:2897
 arch_do_signal_or_restart+0xc3/0x1890 arch/x86/kernel/signal.c:867
 handle_signal_work kernel/entry/common.c:154 [inline]
 exit_to_user_mode_loop+0x97/0x130 kernel/entry/common.c:178
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214
 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
 syscall_exit_to_user_mode+0x5d/0x240 kernel/entry/common.c:307
 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f1ea4545ef9
Code: Unable to access opcode bytes at RIP 0x7f1ea4545ecf.
RSP: 002b:00007f1ea29be0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: 0000000000000001 RBX: 00007f1ea46fdf88 RCX: 00007f1ea4545ef9
RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007f1ea46fdf8c
RBP: 00007f1ea46fdf80 R08: 0000000000000010 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000246 R12: 00007f1ea46fdf8c
R13: 0000000000000000 R14: 00007ffe9764bd80 R15: 00007ffe9764be68
 </TASK>
NMI backtrace for cpu 1
CPU: 1 PID: 10016 Comm: syz.2.1865 Not tainted 5.15.167-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:166 [inline]
 rcu_dump_cpu_stacks+0x223/0x390 kernel/rcu/tree_stall.h:349
 print_cpu_stall+0x320/0x600 kernel/rcu/tree_stall.h:633
 check_cpu_stall kernel/rcu/tree_stall.h:727 [inline]
 rcu_pending kernel/rcu/tree.c:3932 [inline]
 rcu_sched_clock_irq+0x8d9/0x1150 kernel/rcu/tree.c:2619
 update_process_times+0x196/0x200 kernel/time/timer.c:1818
 tick_sched_handle kernel/time/tick-sched.c:254 [inline]
 tick_sched_timer+0x386/0x550 kernel/time/tick-sched.c:1473
 __run_hrtimer kernel/time/hrtimer.c:1688 [inline]
 __hrtimer_run_queues+0x55b/0xcf0 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1085 [inline]
 __sysvec_apic_timer_interrupt+0x139/0x470 arch/x86/kernel/apic/apic.c:1102
 sysvec_apic_timer_interrupt+0x3e/0xb0 arch/x86/kernel/apic/apic.c:1096
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:bpf_tree_comp kernel/bpf/core.c:606 [inline]
RIP: 0010:__lt_find include/linux/rbtree_latch.h:115 [inline]
RIP: 0010:latch_tree_find include/linux/rbtree_latch.h:208 [inline]
RIP: 0010:bpf_ksym_find kernel/bpf/core.c:688 [inline]
RIP: 0010:is_bpf_text_address+0x109/0x260 kernel/bpf/core.c:722
Code: 03 4c 8d 6c 6d 00 49 f7 dd 4e 8d bc 2b 60 ff ff ff 4c 89 f8 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 ff e8 8a 27 3d 00 4d 8b 3f <4c> 89 ff 4c 89 f6 e8 3c 5f f3 ff 4d 39 f7 76 0b e8 52 5d f3 ff 48
RSP: 0000:ffffc90000dd0300 EFLAGS: 00000246
RAX: 1ffffffff1b4683a RBX: ffffffff8da34270 RCX: ffff8880294a1dc0
RDX: 0000000000000100 RSI: ffffffff8ad904a0 RDI: ffffffff8ad90460
RBP: 0000000000000000 R08: ffffffff818cfc2d R09: fffffbfff20e2419
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 0000000000000000 R14: 00007f55e90ccef9 R15: ffffffffa0030000
 kernel_text_address kernel/extable.c:151 [inline]
 __kernel_text_address+0x94/0x100 kernel/extable.c:105
 unwind_get_return_address+0x49/0x80 arch/x86/kernel/unwind_orc.c:323
 arch_stack_walk+0xf3/0x140 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:46 [inline]
 set_alloc_info mm/kasan/common.c:434 [inline]
 __kasan_slab_alloc+0x8e/0xc0 mm/kasan/common.c:467
 kasan_slab_alloc include/linux/kasan.h:254 [inline]
 slab_post_alloc_hook+0x53/0x380 mm/slab.h:519
 slab_alloc_node mm/slub.c:3220 [inline]
 slab_alloc mm/slub.c:3228 [inline]
 kmem_cache_alloc+0xf3/0x280 mm/slub.c:3233
 dst_alloc+0x12c/0x190 net/core/dst.c:88
 ip6_dst_alloc net/ipv6/route.c:342 [inline]
 icmp6_dst_alloc+0x76/0x4f0 net/ipv6/route.c:3275
 ndisc_send_skb+0x305/0x13c0 net/ipv6/ndisc.c:491
 addrconf_rs_timer+0x357/0x610 net/ipv6/addrconf.c:3959
 call_timer_fn+0x16d/0x560 kernel/time/timer.c:1451
 expire_timers kernel/time/timer.c:1496 [inline]
 __run_timers+0x67c/0x890 kernel/time/timer.c:1767
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1780
 handle_softirqs+0x3a7/0x930 kernel/softirq.c:558
 __do_softirq kernel/softirq.c:592 [inline]
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x157/0x240 kernel/softirq.c:641
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:653
 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:debug_lockdep_rcu_enabled+0x0/0x30 kernel/rcu/update.c:279
Code: 5d 41 b5 03 00 75 e7 48 c7 c7 a0 29 8b 8a 48 c7 c6 60 4e 8b 8a e8 50 b1 17 f7 0f 0b eb d0 cc cc cc cc cc cc cc cc cc cc cc cc <31> c0 83 3d ab 0e b5 03 00 74 1d 83 3d 22 41 b5 03 00 74 14 65 48
RSP: 0000:ffffc900031577f8 EFLAGS: 00000206
RAX: da7f1deca6589f00 RBX: 1ffff9200062af08 RCX: ffffffff96868f03
RDX: dffffc0000000000 RSI: ffffffff8a8b2b00 RDI: ffffffff8ad904c0
RBP: ffffc900031578c8 R08: ffffffff8186dcf8 R09: ffffed101722765a
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880769e2000
R13: 0000000000000246 R14: ffffc90003157840 R15: dffffc0000000000
 rcu_read_unlock include/linux/rcupdate.h:768 [inline]
 mod_objcg_mlstate+0x23a/0x330 mm/memcontrol.c:832
 drain_obj_stock+0x203/0x380 mm/memcontrol.c:3200
 refill_obj_stock+0x105/0x460 mm/memcontrol.c:3239
 obj_cgroup_charge+0x1c4/0x390 mm/memcontrol.c:3298
 memcg_slab_pre_alloc_hook mm/slab.h:287 [inline]
 slab_pre_alloc_hook+0xa6/0xc0 mm/slab.h:497
 slab_alloc_node mm/slub.c:3134 [inline]
 slab_alloc mm/slub.c:3228 [inline]
 kmem_cache_alloc+0x3f/0x280 mm/slub.c:3233
 __d_alloc+0x2a/0x700 fs/dcache.c:1749
 d_alloc_pseudo+0x19/0x70 fs/dcache.c:1878
 alloc_file_pseudo+0x131/0x2f0 fs/file_table.c:225
 __anon_inode_getfile fs/anon_inodes.c:109 [inline]
 anon_inode_getfile+0xc4/0x180 fs/anon_inodes.c:147
 __do_sys_perf_event_open kernel/events/core.c:12561 [inline]
 __se_sys_perf_event_open+0x11a0/0x4510 kernel/events/core.c:12335
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f55e90ccef9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f55e7545038 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: ffffffffffffffda RBX: 00007f55e9284f80 RCX: 00007f55e90ccef9
RDX: ffffffffffffffff RSI: 0000000000000000 RDI: 0000000020000000
RBP: 00007f55e913fb76 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f55e9284f80 R15: 00007ffe22c36d48
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/13 19:34 linux-5.15.y 3a5928702e71 b58f933c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in ip_list_rcv
2024/07/20 04:21 linux-5.15.y 7c6d66f0266f 890ce4f3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in ip_list_rcv
* Struck through repros no longer work on HEAD.