sched: DL replenish lagged too much rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P5431/1:b..l P11/1:b..l P5438/2:b..l rcu: (detected by 0, t=10502 jiffies, g=8181, q=1913679 ncpus=2) task:syz.2.32 state:R running task stack:20576 pid:5438 tgid:5430 ppid:5247 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5322 [inline] __schedule+0x1895/0x4b30 kernel/sched/core.c:6682 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7004 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:lock_acquire+0x264/0x550 kernel/locking/lockdep.c:5829 Code: 2b 00 74 08 4c 89 f7 e8 8a 3f 8e 00 f6 44 24 61 02 0f 85 85 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:ffffc90004767080 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff920008ece1c RCX: 961054cfc57bf800 RDX: dffffc0000000000 RSI: ffffffff8c0adc40 RDI: ffffffff8c60fb20 RBP: ffffc900047671c8 R08: ffffffff942cc807 R09: 1ffffffff2859900 R10: dffffc0000000000 R11: fffffbfff2859901 R12: 1ffff920008ece18 R13: dffffc0000000000 R14: ffffc900047670e0 R15: 0000000000000246 rcu_lock_acquire include/linux/rcupdate.h:337 [inline] rcu_read_lock include/linux/rcupdate.h:849 [inline] filemap_map_pages+0x260/0x20d0 mm/filemap.c:3644 do_fault_around mm/memory.c:5240 [inline] do_read_fault mm/memory.c:5273 [inline] do_fault mm/memory.c:5416 [inline] do_pte_missing mm/memory.c:3965 [inline] handle_pte_fault+0x2b98/0x6800 mm/memory.c:5751 __handle_mm_fault mm/memory.c:5894 [inline] handle_mm_fault+0x1106/0x1bb0 mm/memory.c:6062 faultin_page mm/gup.c:1187 [inline] __get_user_pages+0x1b16/0x48d0 mm/gup.c:1485 populate_vma_page_range+0x264/0x330 mm/gup.c:1923 __mm_populate+0x27a/0x460 mm/gup.c:2026 mm_populate include/linux/mm.h:3371 [inline] vm_mmap_pgoff+0x2c3/0x3d0 mm/util.c:593 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd304d7dff9 RSP: 002b:00007fd3047de038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007fd304f36130 RCX: 00007fd304d7dff9 RDX: 0000000000000003 RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 00007fd304df0296 R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fd304f36130 R15: 00007ffd51cf4d68 task:kworker/u8:0 state:R running task stack:22968 pid:11 tgid:11 ppid:2 flags:0x00004000 Workqueue: bat_events batadv_nc_worker Call Trace: context_switch kernel/sched/core.c:5322 [inline] __schedule+0x1895/0x4b30 kernel/sched/core.c:6682 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7004 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:__kasan_check_read+0xa/0x20 mm/kasan/shadow.c:31 Code: db eb d0 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 89 f6 48 8b 0c 24 <31> d2 e9 6f e6 ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 RSP: 0018:ffffc90000107a18 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff81707dc0 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff901d11a8 RBP: ffffc90000107b48 R08: ffffffff8b8ffc4e R09: 1ffffffff2859900 R10: dffffc0000000000 R11: fffffbfff2859901 R12: 1ffff92000020f50 R13: ffffffff8b8ffb1b R14: ffff888063878e40 R15: dffffc0000000000 instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] cpumask_test_cpu include/linux/cpumask.h:570 [inline] cpu_online include/linux/cpumask.h:1117 [inline] trace_lock_release include/trace/events/lock.h:69 [inline] lock_release+0xb0/0xa30 kernel/locking/lockdep.c:5836 rcu_lock_release include/linux/rcupdate.h:347 [inline] rcu_read_unlock include/linux/rcupdate.h:880 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline] batadv_nc_worker+0x28b/0x610 net/batman-adv/network-coding.c:719 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 task:syz.2.32 state:R running task stack:21760 pid:5431 tgid:5430 ppid:5247 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5322 [inline] __schedule+0x1895/0x4b30 kernel/sched/core.c:6682 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7004 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:veth_get_iflink+0x0/0x260 drivers/net/veth.c:1442 Code: ff ff e8 53 3e 82 fb e9 66 ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 55 41 57 41 56 53 48 89 fb e8 ce 8d 18 fb 48 81 c3 80 RSP: 0018:ffffc90004746998 EFLAGS: 00000287 RAX: ffffffff89910ee7 RBX: ffff888062fca108 RCX: 0000000000040000 RDX: ffffc900094e9000 RSI: 000000000002ad2d RDI: ffff888062fca000 RBP: ffffc90004746a50 R08: ffffffff89987d26 R09: 1ffffffff2859900 R10: dffffc0000000000 R11: ffffffff867c5970 R12: ffff888062fca000 R13: dffffc0000000000 R14: 1ffff920008e8d38 R15: dffffc0000000000 nla_put_iflink net/core/rtnetlink.c:1718 [inline] rtnl_fill_link_netnsid+0x1a3/0x2c0 net/core/rtnetlink.c:1755 rtnl_fill_ifinfo+0x1d8a/0x22b0 net/core/rtnetlink.c:2040 rtmsg_ifinfo_build_skb+0x18a/0x260 net/core/rtnetlink.c:4182 rtmsg_ifinfo_event net/core/rtnetlink.c:4215 [inline] rtmsg_ifinfo+0x91/0x1b0 net/core/rtnetlink.c:4224 netdev_state_change+0x139/0x1a0 net/core/dev.c:1380 do_setlink+0x3e6/0x41f0 net/core/rtnetlink.c:3243 rtnl_group_changelink net/core/rtnetlink.c:3550 [inline] __rtnl_newlink net/core/rtnetlink.c:3809 [inline] rtnl_newlink+0x1119/0x20a0 net/core/rtnetlink.c:3846 rtnetlink_rcv_msg+0x73f/0xcf0 net/core/rtnetlink.c:6749 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2551 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:729 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:744 ____sys_sendmsg+0x52a/0x7e0 net/socket.c:2607 ___sys_sendmsg net/socket.c:2661 [inline] __sys_sendmsg+0x292/0x380 net/socket.c:2690 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd304d7dff9 RSP: 002b:00007fd305a9c038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fd304f35f80 RCX: 00007fd304d7dff9 RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000009 RBP: 00007fd304df0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fd304f35f80 R15: 00007ffd51cf4d68 rcu: rcu_preempt kthread starved for 2720 jiffies! g8181 f0x2 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:24272 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5322 [inline] __schedule+0x1895/0x4b30 kernel/sched/core.c:6682 __schedule_loop kernel/sched/core.c:6759 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6774 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2615 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2045 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2247 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 rcu: Stack dump where RCU GP kthread last ran: Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 25 Comm: kworker/1:0 Not tainted 6.12.0-rc2-syzkaller-00631-g6d858708d465 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: events_long defense_work_handler RIP: 0010:unwind_next_frame+0xcf/0x22d0 arch/x86/kernel/unwind_orc.c:482 Code: 20 bf 01 00 00 00 e8 30 d5 21 00 49 8d 6d 50 48 89 e8 48 c1 e8 03 48 89 44 24 38 42 80 3c 20 00 74 08 48 89 ef e8 d1 30 bd 00 <48> 8b 5d 00 48 85 db 74 24 48 81 c3 88 00 00 00 48 89 d8 48 c1 e8 RSP: 0018:ffffc90000a17230 EFLAGS: 00000246 RAX: 1ffff92000142e6a RBX: 1ffff92000142e60 RCX: ffffffff9a3d3903 RDX: dffffc0000000000 RSI: ffffffff899308c4 RDI: 0000000000000001 RBP: ffffc90000a17350 R08: 0000000000000004 R09: ffffc90000a173f0 R10: ffffc90000a17350 R11: ffffffff8180a0e0 R12: dffffc0000000000 R13: ffffc90000a17300 R14: ffffffff899308c4 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd3047fef98 CR3: 000000000e734000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:579 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x59/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:2342 [inline] slab_free mm/slub.c:4579 [inline] kmem_cache_free+0x1a2/0x420 mm/slub.c:4681 kfree_skb_reason include/linux/skbuff.h:1262 [inline] enqueue_to_backlog+0xb4/0xc80 net/core/dev.c:4902 netif_rx_internal+0x17a/0x630 net/core/dev.c:5197 __netif_rx+0x78/0xc0 net/core/dev.c:5217 loopback_xmit+0x454/0x6b0 drivers/net/loopback.c:89 __netdev_start_xmit include/linux/netdevice.h:4976 [inline] netdev_start_xmit include/linux/netdevice.h:4985 [inline] xmit_one net/core/dev.c:3590 [inline] dev_hard_start_xmit+0x27a/0x7e0 net/core/dev.c:3606 sch_direct_xmit+0x29c/0x5d0 net/sched/sch_generic.c:343 qdisc_restart net/sched/sch_generic.c:408 [inline] __qdisc_run+0xbfe/0x2170 net/sched/sch_generic.c:416 __dev_xmit_skb net/core/dev.c:3892 [inline] __dev_queue_xmit+0x10c0/0x3f30 net/core/dev.c:4396 dev_queue_xmit include/linux/netdevice.h:3154 [inline] neigh_hh_output include/net/neighbour.h:526 [inline] neigh_output include/net/neighbour.h:540 [inline] ip_finish_output2+0xd41/0x1390 net/ipv4/ip_output.c:236 synproxy_send_client_synack+0x8b8/0xf30 net/netfilter/nf_synproxy_core.c:484 nft_synproxy_eval_v4+0x3ca/0x610 net/netfilter/nft_synproxy.c:59 nft_synproxy_do_eval+0x362/0xa60 net/netfilter/nft_synproxy.c:141 expr_call_ops_eval net/netfilter/nf_tables_core.c:240 [inline] nft_do_chain+0x4ad/0x1da0 net/netfilter/nf_tables_core.c:288 nft_do_chain_inet+0x418/0x6b0 net/netfilter/nft_chain_filter.c:161 nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline] nf_hook_slow+0xc3/0x220 net/netfilter/core.c:626 nf_hook include/linux/netfilter.h:269 [inline] NF_HOOK+0x29e/0x450 include/linux/netfilter.h:312 NF_HOOK+0x3a4/0x450 include/linux/netfilter.h:314 __netif_receive_skb_one_core net/core/dev.c:5668 [inline] __netif_receive_skb+0x2bf/0x650 net/core/dev.c:5781 process_backlog+0x662/0x15b0 net/core/dev.c:6113 __napi_poll+0xcb/0x490 net/core/dev.c:6834 napi_poll net/core/dev.c:6903 [inline] net_rx_action+0x89b/0x1240 net/core/dev.c:7025 handle_softirqs+0x2c5/0x980 kernel/softirq.c:554 do_softirq+0x11b/0x1e0 kernel/softirq.c:455 __local_bh_enable_ip+0x1bb/0x200 kernel/softirq.c:382 local_bh_enable include/linux/bottom_half.h:33 [inline] update_defense_level+0x8ec/0xcf0 net/netfilter/ipvs/ip_vs_ctl.c:210 defense_work_handler+0x22/0xd0 net/netfilter/ipvs/ip_vs_ctl.c:235 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244