rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...!: (1 GPs behind) idle=6434/1/0x4000000000000000 softirq=115931/115932 fqs=4 rcu: (detected by 0, t=10502 jiffies, g=164017, q=546 ncpus=2) Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 17222 Comm: syz.2.3198 Not tainted 6.11.0-rc3-syzkaller-00007-gd74da846046a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 RIP: 0010:instrument_atomic_read include/linux/instrumented.h:68 [inline] RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] RIP: 0010:cpumask_test_cpu include/linux/cpumask.h:562 [inline] RIP: 0010:cpu_online include/linux/cpumask.h:1105 [inline] RIP: 0010:trace_hrtimer_start include/trace/events/timer.h:222 [inline] RIP: 0010:debug_activate kernel/time/hrtimer.c:479 [inline] RIP: 0010:enqueue_hrtimer+0x6c/0x3c0 kernel/time/hrtimer.c:1085 Code: 07 00 00 00 89 ee e8 a3 8d 12 00 83 fd 07 0f 87 7c 01 00 00 e8 55 89 12 00 89 eb 48 89 d8 48 c1 e8 06 48 8d 3c c5 28 ce 17 90 08 00 00 00 e8 1a d2 79 00 31 ed 48 0f a3 1d c8 df 96 0e 0f 92 RSP: 0018:ffffc90000a18d28 EFLAGS: 00000056 RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffff88802fcebc00 RDX: 0000000000010000 RSI: 0000000000000001 RDI: ffffffff9017ce28 RBP: 0000000000000001 R08: ffffffff8180ee2d R09: 1ffffffff2a263fd R10: dffffc0000000000 R11: fffffbfff2a263fe R12: dffffc0000000000 R13: ffff8880b932c980 R14: ffff888051adb340 R15: ffff8880b932c880 FS: 00007fc00a1f86c0(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000002f3c0000 CR4: 0000000000350ef0 Call Trace: __run_hrtimer kernel/time/hrtimer.c:1706 [inline] __hrtimer_run_queues+0x6cb/0xd50 kernel/time/hrtimer.c:1753 hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1815 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline] __sysvec_apic_timer_interrupt+0x112/0x3f0 arch/x86/kernel/apic/apic.c:1049 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:task_css include/linux/cgroup.h:433 [inline] RIP: 0010:mem_cgroup_from_task+0x64/0x120 mm/memcontrol.c:890 Code: f8 ff 48 8b 1b e8 ec 9c b3 09 85 c0 74 56 e8 83 e4 75 ff 85 c0 75 4d 48 c7 c7 68 5e 96 8e be ff ff ff ff e8 fe 98 b3 09 85 c0 <75> 38 48 c7 c7 d8 5e 96 8e be ff ff ff ff e8 e9 98 b3 09 85 c0 75 RSP: 0018:ffffc9000422f728 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff888022ffa800 RCX: 0000000080000000 RDX: dffffc0000000000 RSI: ffffffff8c0ae6e0 RDI: ffffffff8c606400 RBP: 1ffff11002b0e22a R08: ffffffff9372e847 R09: 1ffffffff26e5d08 R10: dffffc0000000000 R11: fffffbfff26e5d09 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff88802a1e8000 R15: dffffc0000000000 get_mem_cgroup_from_mm+0xd7/0x2a0 mm/memcontrol.c:943 __mem_cgroup_charge+0x16/0x80 mm/memcontrol.c:4453 mem_cgroup_charge include/linux/memcontrol.h:672 [inline] shmem_alloc_and_add_folio+0x88f/0x14f0 mm/shmem.c:1792 shmem_get_folio_gfp+0x8dc/0x2370 mm/shmem.c:2188 shmem_get_folio mm/shmem.c:2293 [inline] shmem_write_begin+0x170/0x4d0 mm/shmem.c:2898 generic_perform_write+0x39b/0x840 mm/filemap.c:4019 shmem_file_write_iter+0xfc/0x120 mm/shmem.c:3074 new_sync_write fs/read_write.c:497 [inline] vfs_write+0xa74/0xc90 fs/read_write.c:590 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 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:0x7fc00a3784df Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 c9 8c 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 1c 8d 02 00 48 RSP: 002b:00007fc00a1f7df0 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000001000000 RCX: 00007fc00a3784df RDX: 0000000001000000 RSI: 00007fbfff800000 RDI: 0000000000000006 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000009600 R10: 0000000020012cc2 R11: 0000000000000293 R12: 0000000000000006 R13: 00007fc00a1f7ef0 R14: 00007fc00a1f7eb0 R15: 00007fbfff800000 rcu: rcu_preempt kthread starved for 10493 jiffies! g164017 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:25232 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5188 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6529 __schedule_loop kernel/sched/core.c:6606 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6621 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2581 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2034 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2236 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/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: CPU: 0 UID: 0 PID: 17223 Comm: syz.0.3199 Not tainted 6.11.0-rc3-syzkaller-00007-gd74da846046a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 RIP: 0010:csd_lock_wait kernel/smp.c:312 [inline] RIP: 0010:smp_call_function_many_cond+0x1865/0x29d0 kernel/smp.c:856 Code: 89 e6 83 e6 01 31 ff e8 99 14 0c 00 41 83 e4 01 49 bc 00 00 00 00 00 fc ff df 75 07 e8 44 10 0c 00 eb 38 f3 90 42 0f b6 04 23 <84> c0 75 11 41 f7 45 00 01 00 00 00 74 1e e8 28 10 0c 00 eb e4 44 RSP: 0018:ffffc90003e4f8a0 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 1ffff110172688f9 RCX: ffff88802682da00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90003e4fa80 R08: ffffffff81876737 R09: 1ffffffff26e5d08 R10: dffffc0000000000 R11: fffffbfff26e5d09 R12: dffffc0000000000 R13: ffff8880b93447c8 R14: ffff8880b923fb80 R15: 0000000000000001 FS: 000055558d1ac500(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b34105ff8 CR3: 000000004e2dc000 CR4: 0000000000350ef0 Call Trace: on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1023 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:2085 [inline] text_poke_bp_batch+0x352/0xb30 arch/x86/kernel/alternative.c:2295 text_poke_flush arch/x86/kernel/alternative.c:2486 [inline] text_poke_finish+0x30/0x50 arch/x86/kernel/alternative.c:2493 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146 static_key_disable_cpuslocked+0xd2/0x1c0 kernel/jump_label.c:240 static_key_disable+0x1a/0x20 kernel/jump_label.c:248 tracepoint_remove_func kernel/tracepoint.c:417 [inline] tracepoint_probe_unregister+0x6f2/0x990 kernel/tracepoint.c:551 bpf_raw_tp_link_release+0x45/0x70 kernel/bpf/syscall.c:3541 bpf_link_free+0xf7/0x250 kernel/bpf/syscall.c:3067 bpf_link_put_direct kernel/bpf/syscall.c:3107 [inline] bpf_link_release+0x7b/0x90 kernel/bpf/syscall.c:3114 __fput+0x24c/0x8a0 fs/file_table.c:422 task_work_run+0x251/0x310 kernel/task_work.c:228 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [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+0x168/0x370 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc6f91799f9 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:00007ffd1e66ede8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007fc6f9317a80 RCX: 00007fc6f91799f9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007fc6f9317a80 R08: 0000000000000006 R09: 00007ffd1e66f0cf R10: 00000000005e5550 R11: 0000000000000246 R12: 000000000015e632 R13: 00007ffd1e66eee0 R14: 00007ffd1e66ef00 R15: ffffffffffffffff