rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P16757/1:b..l rcu: (detected by 0, t=10502 jiffies, g=108653, q=148 ncpus=2) task:syz-executor.2 state:R running task stack:24976 pid:16757 tgid:16751 ppid:15704 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5192 [inline] __schedule+0x17e8/0x4a20 kernel/sched/core.c:6529 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:6851 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:native_irq_disable arch/x86/include/asm/irqflags.h:37 [inline] RIP: 0010:arch_local_irq_disable arch/x86/include/asm/irqflags.h:72 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:104 [inline] RIP: 0010:lock_is_held_type+0x6e/0x190 kernel/locking/lockdep.c:5884 Code: 2c 25 00 d6 03 00 41 83 bd dc 0a 00 00 00 0f 85 da 00 00 00 41 89 f6 49 89 ff 48 c7 04 24 00 00 00 00 9c 8f 04 24 4c 8b 24 24 48 c7 c7 c0 ce ca 8b e8 65 1b 00 00 65 ff 05 fe ad 74 74 41 83 RSP: 0018:ffffc90009d1f6c0 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 00000000ffffffff RCX: 0000000080000000 RDX: dffffc0000000000 RSI: 00000000ffffffff RDI: ffffffff8e3626d8 RBP: 1ffff1100fb3294a R08: ffffffff92fc96c7 R09: 1ffffffff25f92d8 R10: dffffc0000000000 R11: fffffbfff25f92d9 R12: 0000000000000246 R13: ffff88802ee89e00 R14: 00000000ffffffff R15: ffffffff8e3626d8 lock_is_held include/linux/lockdep.h:231 [inline] task_css include/linux/cgroup.h:433 [inline] mem_cgroup_from_task+0x77/0x120 mm/memcontrol.c:1215 get_mem_cgroup_from_mm+0xd7/0x2a0 mm/memcontrol.c:1268 __mem_cgroup_charge+0x16/0x80 mm/memcontrol.c:7544 mem_cgroup_charge include/linux/memcontrol.h:692 [inline] shmem_alloc_and_add_folio+0x85a/0x14e0 mm/shmem.c:1793 shmem_get_folio_gfp+0xa22/0x2660 mm/shmem.c:2189 shmem_get_folio mm/shmem.c:2294 [inline] shmem_write_begin+0x170/0x4d0 mm/shmem.c:2899 generic_perform_write+0x322/0x640 mm/filemap.c:4016 shmem_file_write_iter+0xfc/0x120 mm/shmem.c:3075 new_sync_write fs/read_write.c:497 [inline] vfs_write+0xa72/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:0x7fcf3107bcaf RSP: 002b:00007fcf31ed6e80 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000001000000 RCX: 00007fcf3107bcaf RDX: 0000000001000000 RSI: 00007fcf26e00000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 00000000000050e1 R10: 0000000000000002 R11: 0000000000000293 R12: 0000000000000003 R13: 00007fcf31ed6f80 R14: 00007fcf31ed6f40 R15: 00007fcf26e00000 rcu: rcu_preempt kthread starved for 10522 jiffies! g108653 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:26640 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5192 [inline] __schedule+0x17e8/0x4a20 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:2029 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2231 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:144 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 PID: 16773 Comm: syz-executor.0 Not tainted 6.10.0-rc2-next-20240607-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:get_current arch/x86/include/asm/current.h:49 [inline] RIP: 0010:write_comp_data kernel/kcov.c:235 [inline] RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x8/0x90 kernel/kcov.c:304 Code: 44 0a 20 c3 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 4c 8b 04 24 <65> 48 8b 14 25 00 d6 03 00 65 8b 05 b0 6e 6d 7e a9 00 01 ff 00 74 RSP: 0018:ffffc90009bbfc58 EFLAGS: 00000246 RAX: ffffffff815ce9ac RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000eb6a000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90009bbfdb0 R08: ffffffff815cea03 R09: 1ffffffff1f5c04d R10: dffffc0000000000 R11: fffffbfff1f5c04e R12: ffff888060214560 R13: ffffc90009bbfe50 R14: dffffc0000000000 R15: 1ffff92001377f90 FS: 00007f62637f56c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30921000 CR3: 000000002efa4000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: signal_delivered kernel/signal.c:2948 [inline] signal_setup_done+0x433/0x600 kernel/signal.c:2957 handle_signal arch/x86/kernel/signal.c:285 [inline] arch_do_signal_or_restart+0x4e9/0x830 arch/x86/kernel/signal.c:312 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_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6262aa46f0 Code: 83 c0 16 83 e0 f7 74 12 50 48 8d 3d 9a 9a 04 00 e8 25 78 fa ff 0f 1f 44 00 00 c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 <83> ff 21 74 0b c3 66 2e 0f 1f 84 00 00 00 00 00 55 53 48 89 f3 48 RSP: 002b:00007f62637f4bb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: 0000000000000000 RBX: 00007f6262bb3f88 RCX: 00007f6262a7cf69 RDX: 00007f62637f4bc0 RSI: 00007f62637f4cf0 RDI: 0000000000000021 RBP: 00007f6262bb3f80 R08: 00007f62637f56c0 R09: 00007f62637f56c0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f6262bb3f8c R13: 000000000000000b R14: 00007ffd0c5161d0 R15: 00007ffd0c5162b8