rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P7582/1:b..l P5097/1:b..l rcu: (detected by 0, t=10502 jiffies, g=26901, q=320 ncpus=2) task:syz-fuzzer state:R running task stack:22656 pid:5097 tgid:5083 ppid:5081 flags:0x00004000 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:kasan_mem_to_shadow include/linux/kasan.h:61 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:130 [inline] RIP: 0010:memory_is_poisoned mm/kasan/generic.c:161 [inline] RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline] RIP: 0010:kasan_check_range+0x56/0x290 mm/kasan/generic.c:189 Code: fd fe ff 01 00 0f 86 43 02 00 00 48 89 fb 48 c1 eb 03 49 ba 00 00 00 00 00 fc ff df 4e 8d 1c 13 49 ff c8 4d 89 c1 49 c1 e9 03 <49> be 01 00 00 00 00 fc ff df 4f 8d 3c 31 4c 89 fd 4c 29 dd 48 83 RSP: 0018:ffffc9000408f670 EFLAGS: 00000a03 RAX: 0000000000000001 RBX: 1ffffffff1f5b0ad RCX: ffffffff81727254 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8fad8568 RBP: 000000000001ffff R08: ffffffff8fad856f R09: 1ffffffff1f5b0ad R10: dffffc0000000000 R11: fffffbfff1f5b0ad R12: 1ffff92000811edc R13: dffffc0000000000 R14: 0000000000000000 R15: ffffea0001f9bf48 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:571 [inline] cpu_online include/linux/cpumask.h:1153 [inline] trace_lock_acquire include/trace/events/lock.h:24 [inline] lock_acquire+0xd4/0x550 kernel/locking/lockdep.c:5725 rcu_lock_acquire include/linux/rcupdate.h:329 [inline] rcu_read_lock include/linux/rcupdate.h:781 [inline] get_mem_cgroup_from_objcg+0x36/0x150 include/linux/memcontrol.h:528 uncharge_folio+0x1f3/0x8d0 mm/memcontrol.c:7714 __mem_cgroup_uncharge+0xa1/0x100 mm/memcontrol.c:7763 mem_cgroup_uncharge include/linux/memcontrol.h:708 [inline] __folio_put+0x1ff/0x440 mm/swap.c:127 pipe_buf_release include/linux/pipe_fs_i.h:219 [inline] pipe_update_tail fs/pipe.c:224 [inline] pipe_read+0x6f2/0x13e0 fs/pipe.c:344 new_sync_read fs/read_write.c:395 [inline] vfs_read+0x9c4/0xbd0 fs/read_write.c:476 ksys_read+0x1a0/0x2c0 fs/read_write.c:619 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:0x40720e RSP: 002b:000000c000050d80 EFLAGS: 00000216 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000000000000016 RCX: 000000000040720e RDX: 0000000000010000 RSI: 000000c001a9e000 RDI: 0000000000000016 RBP: 000000c000050dc0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000216 R12: 000000c000050f00 R13: 000000c00005578c R14: 000000c0007384e0 R15: 0000000000000000 task:syz-executor.0 state:R running task stack:24472 pid:7582 tgid:7581 ppid:5117 flags:0x00004002 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:lock_acquire+0x264/0x550 kernel/locking/lockdep.c:5758 Code: 2b 00 74 08 4c 89 f7 e8 ea 8a 89 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:ffffc90014a2ed80 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff92002945dbc RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8bcaccc0 RDI: ffffffff8c1ffb80 RBP: ffffc90014a2eec8 R08: ffffffff92fb4587 R09: 1ffffffff25f68b0 R10: dffffc0000000000 R11: fffffbfff25f68b1 R12: 1ffff92002945db8 R13: dffffc0000000000 R14: ffffc90014a2ede0 R15: 0000000000000246 rcu_lock_acquire include/linux/rcupdate.h:329 [inline] rcu_read_lock include/linux/rcupdate.h:781 [inline] is_bpf_text_address+0x46/0x2a0 kernel/bpf/core.c:768 kernel_text_address+0xa7/0xe0 kernel/extable.c:125 __kernel_text_address+0xd/0x40 kernel/extable.c:79 unwind_get_return_address+0x5d/0xc0 arch/x86/kernel/unwind_orc.c:369 arch_stack_walk+0x125/0x1b0 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122 save_stack+0xfb/0x1f0 mm/page_owner.c:156 __set_page_owner+0x92/0x800 mm/page_owner.c:320 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1468 prep_new_page mm/page_alloc.c:1476 [inline] get_page_from_freelist+0x2ce2/0x2d90 mm/page_alloc.c:3437 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4695 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2263 folio_alloc_mpol_noprof+0x36/0x50 mm/mempolicy.c:2281 shmem_alloc_folio mm/shmem.c:1614 [inline] shmem_alloc_and_add_folio+0x24d/0xbd0 mm/shmem.c:1654 shmem_get_folio_gfp+0x82d/0x1f50 mm/shmem.c:2041 shmem_get_folio mm/shmem.c:2146 [inline] shmem_write_begin+0x170/0x4d0 mm/shmem.c:2729 generic_perform_write+0x322/0x640 mm/filemap.c:4016 shmem_file_write_iter+0xfc/0x120 mm/shmem.c:2905 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:0x7f41a767bc2f RSP: 002b:00007f41a8360e80 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000001000000 RCX: 00007f41a767bc2f RDX: 0000000001000000 RSI: 00007f419d400000 RDI: 0000000000000007 RBP: 0000000000000000 R08: 0000000000000000 R09: 00000000000050ed R10: 000000002000a2c2 R11: 0000000000000293 R12: 0000000000000007 R13: 00007f41a8360f80 R14: 00007f41a8360f40 R15: 00007f419d400000 rcu: rcu_preempt kthread starved for 10499 jiffies! g26901 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:25104 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:2000 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2202 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 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline] NMI backtrace for cpu 1 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:86 [inline] NMI backtrace for cpu 1 skipped: idling at acpi_safe_halt+0x21/0x30 drivers/acpi/processor_idle.c:112 sched: RT throttling activated