rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P3738/1:b..l (detected by 1, t=10502 jiffies, g=6957, q=267 ncpus=2) task:syz-executor.1 state:R running task stack:24792 pid:3738 ppid:3574 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5245 [inline] __schedule+0x142d/0x4550 kernel/sched/core.c:6558 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870 irqentry_exit+0x53/0x80 kernel/entry/common.c:439 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 RIP: 0010:__preempt_count_add kernel/rcu/tree.c:717 [inline] RIP: 0010:rcu_is_watching+0x2/0xb0 kernel/rcu/tree.c:720 Code: 44 24 21 02 0f 84 02 ff ff ff e9 6c ff ff ff 48 c7 c7 20 16 13 8d 4c 89 f6 e8 1a 4d f0 02 e9 2b ff ff ff e8 50 ce 17 09 41 57 <41> 56 53 65 ff 05 0c 24 8f 7e e8 8f e6 17 09 89 c3 83 f8 08 73 76 RSP: 0018:ffffc90004727358 EFLAGS: 00000202 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffff88807bcb1dc0 RDX: dffffc0000000000 RSI: ffffffff8aec13c0 RDI: ffffffff8b3d4660 RBP: ffffea0001494940 R08: dffffc0000000000 R09: fffffbfff2093a45 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: dffffc0000000000 R14: ffffffff81e8bab4 R15: ffff88807e0ee180 rcu_read_lock include/linux/rcupdate.h:792 [inline] get_mem_cgroup_from_mm+0x63/0x290 mm/memcontrol.c:1036 __mem_cgroup_charge+0x12/0x80 mm/memcontrol.c:6919 mem_cgroup_charge include/linux/memcontrol.h:672 [inline] shmem_add_to_page_cache+0xaa6/0x1e60 mm/shmem.c:708 shmem_get_folio_gfp+0x164e/0x3470 mm/shmem.c:1971 shmem_fault+0x235/0x9c0 mm/shmem.c:2156 __do_fault+0x136/0x4f0 mm/memory.c:4261 do_read_fault mm/memory.c:4612 [inline] do_fault mm/memory.c:4741 [inline] handle_pte_fault mm/memory.c:5013 [inline] __handle_mm_fault mm/memory.c:5155 [inline] handle_mm_fault+0x3412/0x5340 mm/memory.c:5276 faultin_page mm/gup.c:1009 [inline] __get_user_pages+0x4f3/0x1190 mm/gup.c:1233 populate_vma_page_range+0x217/0x2b0 mm/gup.c:1590 __mm_populate+0x275/0x440 mm/gup.c:1704 mm_populate include/linux/mm.h:2797 [inline] vm_mmap_pgoff+0x22b/0x2d0 mm/util.c:525 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f4b2667d0a9 RSP: 002b:00007f4b273850c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f4b267b4050 RCX: 00007f4b2667d0a9 RDX: b635773f06ebbeee RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 00007f4b266ec074 R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f4b267b4050 R15: 00007ffc65a88bb8 rcu: rcu_preempt kthread starved for 10538 jiffies! g6957 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:26712 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5245 [inline] __schedule+0x142d/0x4550 kernel/sched/core.c:6558 schedule+0xbf/0x180 kernel/sched/core.c:6634 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1965 rcu_gp_fqs_loop+0x2d2/0x1150 kernel/rcu/tree.c:1706 rcu_gp_kthread+0xa3/0x3b0 kernel/rcu/tree.c:1905 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 rcu: Stack dump where RCU GP kthread last ran: Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 3752 Comm: syz-executor.0 Not tainted 6.1.94-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:__sanitizer_cov_trace_pc+0x58/0x60 kernel/kcov.c:225 Code: f8 15 00 00 83 fa 02 75 21 48 8b 91 00 16 00 00 48 8b 32 48 8d 7e 01 8b 89 fc 15 00 00 48 39 cf 73 08 48 89 3a 48 89 44 f2 08 0f 1f 80 00 00 00 00 4c 8b 04 24 65 48 8b 15 84 db 77 7e 65 8b RSP: 0018:ffffc900047e7b08 EFLAGS: 00000246 RAX: ffffffff817e1a2b RBX: ffffc900047e7c50 RCX: 0000000000040000 RDX: ffffc9000bf3f000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc900047e7d30 R08: dffffc0000000000 R09: ffffed1003d8f001 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 1ffff11003d8f000 R14: 0000000000000000 R15: ffffc900047e7c50 FS: 00007f7ca1d516c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32b27000 CR3: 0000000027d9b000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: futex_unqueue+0x1b/0xf0 kernel/futex/core.c:584 futex_wait+0x20b/0x5c0 kernel/futex/waitwake.c:660 do_futex+0x3b5/0x490 kernel/futex/syscalls.c:106 __do_sys_futex kernel/futex/syscalls.c:183 [inline] __se_sys_futex+0x3d7/0x460 kernel/futex/syscalls.c:164 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f7ca107d0a9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7ca1d51178 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: ffffffffffffffda RBX: 00007f7ca11b4128 RCX: 00007f7ca107d0a9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f7ca11b4128 RBP: 00007f7ca11b4120 R08: 00007f7ca1d516c0 R09: 00007f7ca1d516c0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7ca11b412c R13: 000000000000006e R14: 00007fff9f7b7cf0 R15: 00007fff9f7b7dd8