rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...!: (1 ticks this GP) idle=4cbc/0/0x1 softirq=100949/100949 fqs=0 rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P18558/2:b..l rcu: (detected by 0, t=10502 jiffies, g=109129, q=732 ncpus=2) Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.13.0-rc3-syzkaller-00136-g8faabc041a00 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024 RIP: 0010:memory_is_nonzero mm/kasan/generic.c:103 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:129 [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+0x64/0x290 mm/kasan/generic.c:189 Code: 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 fd 10 7f 29 48 85 ed 0f 84 3e 01 00 00 4c RSP: 0018:ffffc90000a18a20 EFLAGS: 00000807 RAX: 0000000000000001 RBX: 1ffffffff2854911 RCX: ffffffff817ab99c RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff942a4888 RBP: 000000000001ffff R08: ffffffff942a488f R09: 1ffffffff2854911 R10: dffffc0000000000 R11: fffffbfff2854911 R12: ffff88801d2f0ac4 R13: 0000000000000000 R14: dffffc0000000001 R15: fffffbfff2854912 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbeb6f452d8 CR3: 0000000046b64000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] hlock_class kernel/locking/lockdep.c:228 [inline] check_wait_context kernel/locking/lockdep.c:4850 [inline] __lock_acquire+0x4ac/0x2100 kernel/locking/lockdep.c:5176 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline] _raw_spin_lock_irq+0xd3/0x120 kernel/locking/spinlock.c:170 __run_hrtimer kernel/time/hrtimer.c:1743 [inline] __hrtimer_run_queues+0x670/0xd30 kernel/time/hrtimer.c:1803 hrtimer_interrupt+0x403/0xa40 kernel/time/hrtimer.c:1865 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline] __sysvec_apic_timer_interrupt+0x110/0x420 arch/x86/kernel/apic/apic.c:1055 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1049 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:92 [inline] RIP: 0010:acpi_safe_halt+0x21/0x30 drivers/acpi/processor_idle.c:112 Code: 90 90 90 90 90 90 90 90 90 65 48 8b 04 25 00 d6 03 00 48 f7 00 08 00 00 00 75 10 66 90 0f 00 2d 15 d1 a0 00 f3 0f 1e fa fb f4 c3 cc cc cc cc 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 RSP: 0018:ffffc900001a7d08 EFLAGS: 00000246 RAX: ffff88801d2f0000 RBX: ffff888020a8f064 RCX: 0000000000324cb9 RDX: 0000000000000001 RSI: ffff888020a8f000 RDI: ffff888020a8f064 RBP: 000000000003a9f8 R08: ffff8880b8737cdb R09: 1ffff110170e6f9b R10: dffffc0000000000 R11: ffffffff8bc8ac80 R12: ffff888020b09800 R13: 0000000000000001 R14: 0000000000000001 R15: ffffffff8f1217a0 acpi_idle_enter+0xe4/0x140 drivers/acpi/processor_idle.c:699 cpuidle_enter_state+0x109/0x470 drivers/cpuidle/cpuidle.c:268 cpuidle_enter+0x5d/0xa0 drivers/cpuidle/cpuidle.c:389 call_cpuidle kernel/sched/idle.c:155 [inline] cpuidle_idle_call kernel/sched/idle.c:230 [inline] do_idle+0x372/0x5c0 kernel/sched/idle.c:325 cpu_startup_entry+0x42/0x60 kernel/sched/idle.c:423 start_secondary+0x102/0x110 arch/x86/kernel/smpboot.c:314 common_startup_64+0x13e/0x147 task:syz.9.2637 state:R running task stack:23888 pid:18558 tgid:18555 ppid:17479 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0x1850/0x4c30 kernel/sched/core.c:6756 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7078 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_release+0x658/0xa30 kernel/locking/lockdep.c:5874 Code: 3c 3b 00 74 08 4c 89 f7 e8 75 f7 8a 00 f6 84 24 91 00 00 00 02 75 77 41 f7 c5 00 02 00 00 74 01 fb 48 c7 44 24 60 0e 36 e0 45 <4b> c7 04 27 00 00 00 00 4b c7 44 27 08 00 00 00 00 65 48 8b 04 25 RSP: 0018:ffffc9000b49e8e0 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff92001693d2e RCX: ffffc9000b49e903 RDX: 0000000000000002 RSI: ffffffff8c0aa960 RDI: ffffffff8c5faee0 RBP: ffffc9000b49ea18 R08: ffffffff90197c37 R09: 1ffffffff2032f86 R10: dffffc0000000000 R11: fffffbfff2032f87 R12: 1ffff92001693d28 R13: 0000000000000246 R14: ffffc9000b49e970 R15: dffffc0000000000 rcu_lock_release include/linux/rcupdate.h:347 [inline] rcu_read_unlock include/linux/rcupdate.h:880 [inline] percpu_ref_tryget_many include/linux/percpu-refcount.h:250 [inline] percpu_ref_tryget+0xf7/0x180 include/linux/percpu-refcount.h:266 css_tryget include/linux/cgroup_refcnt.h:45 [inline] get_mem_cgroup_from_mm+0x103/0x2a0 mm/memcontrol.c:948 __mem_cgroup_charge+0x16/0x80 mm/memcontrol.c:4511 mem_cgroup_charge include/linux/memcontrol.h:646 [inline] shmem_alloc_and_add_folio+0x89e/0x1080 mm/shmem.c:1843 shmem_get_folio_gfp+0x621/0x1840 mm/shmem.c:2355 shmem_fault+0x220/0x5b0 mm/shmem.c:2556 __do_fault+0x135/0x390 mm/memory.c:4907 do_read_fault mm/memory.c:5322 [inline] do_fault mm/memory.c:5456 [inline] do_pte_missing mm/memory.c:3979 [inline] handle_pte_fault+0x39eb/0x5ed0 mm/memory.c:5801 __handle_mm_fault mm/memory.c:5944 [inline] handle_mm_fault+0x1106/0x1bb0 mm/memory.c:6112 do_user_addr_fault arch/x86/mm/fault.c:1389 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x2b9/0x8b0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0010:rep_movs_alternative+0x4a/0x70 arch/x86/lib/copy_user_64.S:71 Code: 75 f1 c3 cc cc cc cc 66 0f 1f 84 00 00 00 00 00 48 8b 06 48 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb c9 a4 c3 cc cc cc cc 48 89 c8 48 c1 e9 03 83 e0 07 f3 48 a5 89 c1 RSP: 0018:ffffc9000b49f550 EFLAGS: 00050206 RAX: 0000000000000001 RBX: 00000000202a9000 RCX: 0000000000001000 RDX: 0000000000000001 RSI: 00000000202a9000 RDI: ffff88807f4aa000 RBP: ffffc9000b49f750 R08: ffff88807f4aafff R09: 1ffff1100fe955ff R10: dffffc0000000000 R11: ffffed100fe95600 R12: 00000000202a9000 R13: dffffc0000000000 R14: ffff88807f4aa000 R15: 0000000000001000 copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:141 [inline] _inline_copy_from_user include/linux/uaccess.h:178 [inline] _copy_from_user+0x7f/0xc0 lib/usercopy.c:18 copy_from_user include/linux/uaccess.h:212 [inline] mfill_atomic mm/userfaultfd.c:827 [inline] mfill_atomic_copy+0xd01/0x1a60 mm/userfaultfd.c:868 userfaultfd_copy fs/userfaultfd.c:1612 [inline] userfaultfd_ioctl+0x2906/0x66f0 fs/userfaultfd.c:2016 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xf5/0x170 fs/ioctl.c:892 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:0x7fe53bf85d29 RSP: 002b:00007fe53ce4c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fe53c175fa0 RCX: 00007fe53bf85d29 RDX: 0000000020000080 RSI: 00000000c028aa03 RDI: 0000000000000006 RBP: 00007fe53c001aa8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe53c175fa0 R15: 00007fe53c29fa28 rcu: rcu_preempt kthread timer wakeup didn't happen for 10501 jiffies! g109129 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 rcu: Possible timer handling issue on cpu=1 timer-softirq=52411 rcu: rcu_preempt kthread starved for 10502 jiffies! g109129 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:I stack:25904 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0x1850/0x4c30 kernel/sched/core.c:6756 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6848 schedule_timeout+0x15a/0x290 kernel/time/sleep_timeout.c:99 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