rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P15762/1:b..l (detected by 1, t=10502 jiffies, g=65801, q=587) task:syz.4.4472 state:R running task stack:25592 pid:15762 ppid: 15474 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5027 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6373 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6777 irqentry_exit+0x53/0x80 kernel/entry/common.c:432 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:should_resched arch/x86/include/asm/preempt.h:103 [inline] RIP: 0010:__local_bh_enable_ip+0x16c/0x1f0 kernel/softirq.c:390 Code: 8a e8 d8 e2 e5 08 65 66 8b 05 50 19 b6 7e 66 85 c0 75 57 bf 01 00 00 00 e8 61 ed 09 00 e8 ac 62 39 00 fb 65 8b 05 3c f0 b4 7e <85> c0 75 05 e8 0b 0d b3 ff 48 c7 44 24 20 0e 36 e0 45 49 c7 04 1c RSP: 0018:ffffc90003587420 EFLAGS: 00000282 RAX: 0000000000000000 RBX: 1ffff920006b0e88 RCX: ffffffff96865f03 RDX: dffffc0000000000 RSI: ffffffff8a8b2a20 RDI: ffffffff8ad8f7c0 RBP: ffffc900035874d0 R08: ffffffff8186e408 R09: ffffed101722765a R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 1ffff920006b0e8c R14: ffffc90003587460 R15: 0000000000000200 rcu_read_unlock_bh include/linux/rcupdate.h:809 [inline] __dev_queue_xmit+0x1c56/0x3230 net/core/dev.c:4275 __bpf_tx_skb net/core/filter.c:2118 [inline] __bpf_redirect_no_mac net/core/filter.c:2152 [inline] __bpf_redirect+0x79c/0xe90 net/core/filter.c:2175 ____bpf_clone_redirect net/core/filter.c:2442 [inline] bpf_clone_redirect+0x249/0x360 net/core/filter.c:2414 bpf_prog_6893982b85ceadf7+0x56/0xf9c bpf_dispatcher_nop_func include/linux/bpf.h:790 [inline] __bpf_prog_run include/linux/filter.h:621 [inline] bpf_prog_run include/linux/filter.h:635 [inline] bpf_test_run+0x5f4/0x8a0 net/bpf/test_run.c:119 bpf_prog_test_run_skb+0xb41/0x1420 net/bpf/test_run.c:669 bpf_prog_test_run+0x32f/0x3a0 kernel/bpf/syscall.c:3368 __sys_bpf+0x3ac/0x670 kernel/bpf/syscall.c:4669 __do_sys_bpf kernel/bpf/syscall.c:4755 [inline] __se_sys_bpf kernel/bpf/syscall.c:4753 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4753 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:0x7faa9833ceb9 RSP: 002b:00007faa967b6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007faa984f5f80 RCX: 00007faa9833ceb9 RDX: 000000000000002c RSI: 0000000020000080 RDI: 000000000000000a RBP: 00007faa983aefbe R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007faa984f5f80 R15: 00007fff15ca9268 rcu: rcu_preempt kthread starved for 10535 jiffies! g65801 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: task:rcu_preempt state:R running task stack:26464 pid: 15 ppid: 2 flags:0x00004000 Call Trace: 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 rcu: Stack dump where RCU GP kthread last ran: NMI backtrace for cpu 1 CPU: 1 PID: 15757 Comm: syz.3.4470 Not tainted 5.15.165-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __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_check_gp_kthread_starvation+0x1d2/0x240 kernel/rcu/tree_stall.h:487 print_other_cpu_stall+0x137a/0x14d0 kernel/rcu/tree_stall.h:592 check_cpu_stall kernel/rcu/tree_stall.h:745 [inline] rcu_pending kernel/rcu/tree.c:3932 [inline] rcu_sched_clock_irq+0xa38/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:1686 [inline] __hrtimer_run_queues+0x55b/0xcf0 kernel/time/hrtimer.c:1750 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812 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:stack_trace_consume_entry+0xce/0x270 kernel/stacktrace.c:93 Code: 26 4c 89 0c 24 48 89 df 49 89 f5 4d 89 c6 e8 79 30 5c 00 4d 89 f0 4c 8b 0c 24 4c 89 ee 48 ba 00 00 00 00 00 fc ff df 48 8b 1b <45> 8d 70 01 41 0f b6 04 17 84 c0 0f 85 2d 01 00 00 45 89 31 4a 8d RSP: 0018:ffffc90000dcffd0 EFLAGS: 00000246 RAX: 1ffff920001ba020 RBX: ffffc90000dd01a0 RCX: 0000000000000302 RDX: dffffc0000000000 RSI: ffffffff890d61ca RDI: ffffc90000dd010c RBP: ffffc90000dd0108 R08: 0000000000000006 R09: ffffc90000dd0110 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920001ba021 R13: 1ffff920001ba021 R14: 0000000000000000 R15: 1ffff920001ba022 arch_stack_walk+0x101/0x140 arch/x86/kernel/stacktrace.c:27 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 kmem_cache_zalloc include/linux/slab.h:711 [inline] fill_pool lib/debugobjects.c:171 [inline] __debug_object_init+0x980/0xd30 lib/debugobjects.c:614 debug_timer_init kernel/time/timer.c:724 [inline] debug_init kernel/time/timer.c:772 [inline] init_timer_key+0x3e/0x2d0 kernel/time/timer.c:816 neigh_alloc net/core/neighbour.c:451 [inline] ___neigh_create+0xa15/0x2220 net/core/neighbour.c:591 ip6_finish_output2+0x11aa/0x14f0 net/ipv6/ip6_output.c:123 dst_output include/net/dst.h:443 [inline] NF_HOOK include/linux/netfilter.h:302 [inline] ndisc_send_skb+0xae0/0x13c0 net/ipv6/ndisc.c:511 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 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:stack_trace_save+0x32/0x1c0 kernel/stacktrace.c:114 Code: 41 55 41 54 53 48 83 e4 e0 48 81 ec a0 00 00 00 89 d3 89 74 24 1c 49 89 fc 65 48 8b 04 25 28 00 00 00 48 89 84 24 80 00 00 00 <49> bd 00 00 00 00 00 fc ff df 4c 8d 74 24 40 48 c7 44 24 20 b3 8a RSP: 0018:ffffc90002ef6ee0 EFLAGS: 00000282 RAX: d2be2519e159a800 RBX: 0000000000000002 RCX: 0000000000000000 RDX: 0000000000000002 RSI: 0000000000000010 RDI: ffffc90002ef7000 RBP: ffffc90002ef6fb0 R08: ffffffff81d0d74d R09: ffffc90002ef7000 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90002ef7000 R13: 1ffff920005dedfc R14: ffffc90002ef7000 R15: 1ffff110047660b0 save_stack+0xf6/0x1e0 mm/page_owner.c:119 __reset_page_owner+0x52/0x180 mm/page_owner.c:140 reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0xc34/0xcf0 mm/page_alloc.c:3317 free_unref_page+0x95/0x2d0 mm/page_alloc.c:3396 kasan_depopulate_vmalloc_pte+0x66/0x80 mm/kasan/shadow.c:375 apply_to_pte_range mm/memory.c:2545 [inline] apply_to_pmd_range mm/memory.c:2589 [inline] apply_to_pud_range mm/memory.c:2625 [inline] apply_to_p4d_range mm/memory.c:2661 [inline] __apply_to_page_range+0x9bf/0xcc0 mm/memory.c:2695 kasan_release_vmalloc+0x96/0xb0 mm/kasan/shadow.c:485 __purge_vmap_area_lazy+0x15ae/0x1740 mm/vmalloc.c:1704 _vm_unmap_aliases+0x453/0x4e0 mm/vmalloc.c:2107 change_page_attr_set_clr+0x308/0x1050 arch/x86/mm/pat/set_memory.c:1740 change_page_attr_clear arch/x86/mm/pat/set_memory.c:1797 [inline] set_memory_x+0xee/0x130 arch/x86/mm/pat/set_memory.c:1930 bpf_jit_binary_lock_ro include/linux/filter.h:893 [inline] bpf_int_jit_compile+0xbf6f/0xc6e0 arch/x86/net/bpf_jit_comp.c:2372 bpf_prog_select_runtime+0x701/0x9f0 kernel/bpf/core.c:1930 bpf_prog_load+0x131c/0x1b60 kernel/bpf/syscall.c:2357 __sys_bpf+0x343/0x670 kernel/bpf/syscall.c:4651 __do_sys_bpf kernel/bpf/syscall.c:4755 [inline] __se_sys_bpf kernel/bpf/syscall.c:4753 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4753 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:0x7f0130db5eb9 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:00007f012f22f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f0130f6ef80 RCX: 00007f0130db5eb9 RDX: 0000000000000090 RSI: 00000000200003c0 RDI: 0000000000000005 RBP: 00007f0130e27fbe R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f0130f6ef80 R15: 00007fff4278f0b8