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): P5284/1:b..l P5244/1:b..l P5245/2:b..l rcu: (detected by 1, t=10502 jiffies, g=7777, q=1191782 ncpus=2) task:syz-executor state:R running task stack:19808 pid:5245 tgid:5245 ppid:5219 flags:0x20000000 Call Trace: context_switch kernel/sched/core.c:5264 [inline] __schedule+0x1893/0x4b50 kernel/sched/core.c:6607 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:6929 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:pagefault_disabled_inc include/linux/uaccess.h:228 [inline] RIP: 0010:pagefault_disable include/linux/uaccess.h:245 [inline] RIP: 0010:copy_from_kernel_nofault+0x61/0x2e0 mm/maccess.c:34 Code: fc ff df 65 4c 8b 34 25 c0 d6 03 00 49 81 c6 84 17 00 00 4c 89 f1 48 c1 e9 03 48 89 0c 24 0f b6 04 01 84 c0 0f 85 e5 01 00 00 <41> ff 06 bf 07 00 00 00 4c 89 ee e8 8f a7 c6 ff 49 83 fd 07 76 58 RSP: 0018:ffffc90003a9f620 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 0000000000000ffc RCX: 1ffff11005861a70 RDX: 0000000000000000 RSI: ffff88807a9d07c8 RDI: ffff88807a9d07c8 RBP: ffff88807f80c000 R08: ffffffff81430cd9 R09: 1ffffffff2849ef8 R10: dffffc0000000000 R11: fffffbfff2849ef9 R12: ffff88807a9d07c8 R13: 0000000000000001 R14: ffff88802c30d384 R15: ffff888060fbeffc prepend_copy fs/d_path.c:50 [inline] prepend fs/d_path.c:76 [inline] prepend_name fs/d_path.c:101 [inline] __prepend_path fs/d_path.c:133 [inline] prepend_path+0x51f/0xbe0 fs/d_path.c:172 d_absolute_path+0x179/0x310 fs/d_path.c:234 tomoyo_get_absolute_path security/tomoyo/realpath.c:101 [inline] tomoyo_realpath_from_path+0x2b4/0x5e0 security/tomoyo/realpath.c:271 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x2b7/0x740 security/tomoyo/file.c:822 security_inode_getattr+0x130/0x330 security/security.c:2371 vfs_getattr+0x45/0x430 fs/stat.c:204 vfs_statx_path fs/stat.c:251 [inline] vfs_statx_fd fs/stat.c:282 [inline] do_statx_fd+0x124/0x460 fs/stat.c:752 __do_sys_statx fs/stat.c:792 [inline] __se_sys_statx+0x153/0x2b0 fs/stat.c:771 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0xb4/0x110 arch/x86/entry/common.c:386 do_fast_syscall_32+0x34/0x80 arch/x86/entry/common.c:411 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf7ff1579 RSP: 002b:00000000f75dea80 EFLAGS: 00000206 ORIG_RAX: 000000000000017f RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000f738642a RDX: 0000000000001800 RSI: 00000000000007ff RDI: 00000000f75deb3c RBP: 00000000f75dec90 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 task:syz-executor state:R running task stack:20320 pid:5244 tgid:5244 ppid:5222 flags:0x20004002 Call Trace: context_switch kernel/sched/core.c:5264 [inline] __schedule+0x1893/0x4b50 kernel/sched/core.c:6607 preempt_schedule_common+0x84/0xd0 kernel/sched/core.c:6786 preempt_schedule+0xe1/0xf0 kernel/sched/core.c:6810 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk.S:12 __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline] _raw_spin_unlock+0x3e/0x50 kernel/locking/spinlock.c:186 spin_unlock include/linux/spinlock.h:391 [inline] copy_pte_range mm/memory.c:1191 [inline] copy_pmd_range+0x7ad5/0x8500 mm/memory.c:1252 copy_pud_range mm/memory.c:1289 [inline] copy_p4d_range mm/memory.c:1313 [inline] copy_page_range+0x99f/0xe90 mm/memory.c:1411 dup_mmap kernel/fork.c:749 [inline] dup_mm kernel/fork.c:1672 [inline] copy_mm+0x11e2/0x1f30 kernel/fork.c:1721 copy_process+0x1854/0x3d80 kernel/fork.c:2373 kernel_clone+0x226/0x8f0 kernel/fork.c:2780 __do_compat_sys_ia32_clone arch/x86/kernel/sys_ia32.c:254 [inline] __se_compat_sys_ia32_clone arch/x86/kernel/sys_ia32.c:240 [inline] __ia32_compat_sys_ia32_clone+0x255/0x2a0 arch/x86/kernel/sys_ia32.c:240 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0xb4/0x110 arch/x86/entry/common.c:386 do_fast_syscall_32+0x34/0x80 arch/x86/entry/common.c:411 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf748d579 RSP: 002b:00000000f75dfcdc EFLAGS: 00000206 ORIG_RAX: 0000000000000078 RAX: ffffffffffffffda RBX: 0000000001200011 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000056d0a4a8 RBP: 00000000f747bff4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 task:syz.2.3 state:R running task stack:23696 pid:5284 tgid:5284 ppid:5243 flags:0x20004006 Call Trace: context_switch kernel/sched/core.c:5264 [inline] __schedule+0x1893/0x4b50 kernel/sched/core.c:6607 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:6929 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:preempt_count arch/x86/include/asm/preempt.h:26 [inline] RIP: 0010:rcu_lockdep_current_cpu_online+0x9/0x120 kernel/rcu/tree.c:4770 Code: ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 41 57 41 56 53 <65> 8b 0d b8 d3 88 7e b0 01 f7 c1 00 00 f0 00 0f 85 d5 00 00 00 83 RSP: 0018:ffffc90004467018 EFLAGS: 00000202 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffff88801f38da00 RDX: ffff88801f38da00 RSI: ffffffff8c60dce0 RDI: ffffffff8c60dca0 RBP: ffff88804ddb4510 R08: ffffffff81cbcaf8 R09: 1ffffffff2038b55 R10: dffffc0000000000 R11: fffffbfff2038b56 R12: ffffc90004467140 R13: 1ffff9200088ce28 R14: ffffea0001e11ec0 R15: ffff888148e9eec0 rcu_read_lock_held_common kernel/rcu/update.c:113 [inline] rcu_read_lock_held+0x1e/0x50 kernel/rcu/update.c:349 xa_entry include/linux/xarray.h:1220 [inline] xas_reload+0x1a4/0x470 include/linux/xarray.h:1605 find_get_entry mm/filemap.c:2007 [inline] find_lock_entries+0x306/0x10f0 mm/filemap.c:2091 shmem_undo_range+0x2d6/0x1df0 mm/shmem.c:1005 shmem_truncate_range mm/shmem.c:1132 [inline] shmem_evict_inode+0x29b/0xa80 mm/shmem.c:1260 evict+0x4e8/0x9b0 fs/inode.c:731 __dentry_kill+0x20d/0x630 fs/dcache.c:615 dput+0x19f/0x2b0 fs/dcache.c:857 __fput+0x5d2/0x880 fs/file_table.c:439 task_work_run+0x24f/0x310 kernel/task_work.c:228 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xa2f/0x27f0 kernel/exit.c:882 do_group_exit+0x207/0x2c0 kernel/exit.c:1031 get_signal+0x176f/0x1810 kernel/signal.c:2936 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xc9/0x370 kernel/entry/common.c:218 __do_fast_syscall_32+0xc4/0x110 arch/x86/entry/common.c:389 do_fast_syscall_32+0x34/0x80 arch/x86/entry/common.c:411 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf73ad579 RSP: 002b:00000000f74ffb1c EFLAGS: 00000206 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 0000000000000003 RCX: 000000000000001e RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 rcu: rcu_preempt kthread starved for 10580 jiffies! g7777 f0x2 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:25888 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5264 [inline] __schedule+0x1893/0x4b50 kernel/sched/core.c:6607 __schedule_loop kernel/sched/core.c:6684 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6699 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 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 5276 Comm: kworker/0:4 Not tainted 6.11.0-syzkaller-07341-gbaeb9a7d8b60 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Workqueue: events nsim_dev_trap_report_work RIP: 0010:__debug_check_no_obj_freed lib/debugobjects.c:979 [inline] RIP: 0010:debug_check_no_obj_freed+0x2be/0x580 lib/debugobjects.c:1019 Code: ff c7 48 8b 44 24 38 48 85 c0 0f 84 a4 02 00 00 49 89 c4 49 89 c5 49 c1 ed 03 48 b8 00 00 00 00 00 fc ff df 41 80 7c 05 00 00 <74> 08 4c 89 e7 e8 08 95 3e fd 49 8b 04 24 48 89 44 24 38 49 8d 5c RSP: 0018:ffffc90000006f00 EFLAGS: 00000046 RAX: dffffc0000000000 RBX: ffff88805c4bc1a0 RCX: dffffc0000000000 RDX: dffffc0000000000 RSI: 0000000000000004 RDI: ffffc90000006de0 RBP: ffffc90000007060 R08: 0000000000000003 R09: fffff52000000dbc R10: dffffc0000000000 R11: fffff52000000dbc R12: ffff88805b47c118 R13: 1ffff1100b68f823 R14: ffff88802ccd1250 R15: 000000000000004e FS: 0000000000000000(0000) GS:ffff8880b8800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000c40d313 CR3: 000000007e2a6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: slab_free_hook mm/slub.c:2274 [inline] slab_free mm/slub.c:4580 [inline] kfree+0x120/0x440 mm/slub.c:4728 skb_kfree_head net/core/skbuff.c:1086 [inline] skb_free_head net/core/skbuff.c:1098 [inline] skb_release_data+0x6a0/0x8a0 net/core/skbuff.c:1125 skb_release_all net/core/skbuff.c:1190 [inline] __kfree_skb net/core/skbuff.c:1204 [inline] consume_skb+0x9f/0xf0 net/core/skbuff.c:1436 nft_synproxy_eval_v4+0x3d2/0x610 net/netfilter/nft_synproxy.c:60 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:5662 [inline] __netif_receive_skb+0x2bf/0x650 net/core/dev.c:5775 process_backlog+0x662/0x15b0 net/core/dev.c:6107 __napi_poll+0xcb/0x490 net/core/dev.c:6771 napi_poll net/core/dev.c:6840 [inline] net_rx_action+0x89b/0x1240 net/core/dev.c:6962 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 spin_unlock_bh include/linux/spinlock.h:396 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:820 [inline] nsim_dev_trap_report_work+0x75d/0xaa0 drivers/net/netdevsim/dev.c:850 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