rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P16329/1:b..l rcu: (detected by 1, t=10502 jiffies, g=107141, q=314 ncpus=2) task:syz-executor.1 state:R running task stack:26416 pid:16329 tgid:16324 ppid:14731 flags:0x00000002 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:create_zero_mask arch/x86/include/asm/word-at-a-time.h:62 [inline] RIP: 0010:sized_strscpy+0xe8/0x220 lib/string.c:146 Code: 48 ba 00 00 00 00 00 fc ff df 80 3c 10 00 74 9f e8 cd bd 75 f6 48 ba 00 00 00 00 00 fc ff df eb 8e 45 31 f6 eb 5d 49 8d 47 ff <49> f7 d7 49 21 c7 49 c1 ef 07 4c 21 fb 4b 8d 3c 34 48 89 f8 48 c1 RSP: 0018:ffffc900098271c0 EFLAGS: 00000286 RAX: 807fffffffffffff RBX: 0000312e726f7475 RCX: fefefefefefefeff RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff888021afe2b8 RBP: 0000000000000008 R08: ffff888021afe2b8 R09: 1ffff1100435fc57 R10: dffffc0000000000 R11: ffffed100435fc58 R12: ffff888018e21028 R13: ffff888021afe2b0 R14: 0000000000000008 R15: 8080000000000000 __update_page_owner_handle mm/page_owner.c:251 [inline] __set_page_owner+0x285/0x800 mm/page_owner.c:325 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1470 prep_new_page mm/page_alloc.c:1478 [inline] get_page_from_freelist+0x2cbd/0x2d70 mm/page_alloc.c:3457 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4715 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:1723 [inline] shmem_alloc_and_add_folio+0x2ce/0x14e0 mm/shmem.c:1783 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:0x7f24e4c7bbef RSP: 002b:00007f24e5adbe80 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000080000 RCX: 00007f24e4c7bbef RDX: 0000000000080000 RSI: 00007f24daa00000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000560 R10: 00000000000003d0 R11: 0000000000000293 R12: 0000000000000003 R13: 00007f24e5adbf80 R14: 00007f24e5adbf40 R15: 00007f24daa00000 rcu: rcu_preempt kthread starved for 1078 jiffies! g107141 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:25200 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: CPU: 1 PID: 16328 Comm: syz-executor.3 Not tainted 6.10.0-rc3-next-20240611-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:finish_task_switch+0x1ea/0x870 kernel/sched/core.c:5066 Code: c9 50 e8 69 b6 0b 00 48 83 c4 08 4c 89 f7 e8 7d 38 00 00 e9 de 04 00 00 4c 89 f7 e8 40 ff 31 0a e8 0b 30 37 00 fb 48 8b 5d c0 <48> 8d bb f8 15 00 00 48 89 f8 48 c1 e8 03 49 be 00 00 00 00 00 fc RSP: 0018:ffffc90004e4f868 EFLAGS: 00000286 RAX: 9bcc0ed0d6386900 RBX: ffff888022f79e00 RCX: ffffffff947c3803 RDX: dffffc0000000000 RSI: ffffffff8bcac1a0 RDI: ffffffff8c200760 RBP: ffffc90004e4f8b0 R08: ffffffff8fae04af R09: 1ffffffff1f5c095 R10: dffffc0000000000 R11: fffffbfff1f5c096 R12: 1ffff110172a7ec7 R13: dffffc0000000000 R14: ffff8880b943e8c0 R15: ffff8880b953f638 FS: 00007f5be8f966c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f24daa7f000 CR3: 0000000070a96000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: context_switch kernel/sched/core.c:5195 [inline] __schedule+0x17f0/0x4a20 kernel/sched/core.c:6529 __schedule_loop kernel/sched/core.c:6606 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6621 do_wait_intr_irq+0x1c1/0x1f0 kernel/sched/wait.c:340 eventfd_write+0x3ae/0x6c0 fs/eventfd.c:265 vfs_write+0x2a2/0xc90 fs/read_write.c:588 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:0x7f5be827cea9 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:00007f5be8f960c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f5be83b3f80 RCX: 00007f5be827cea9 RDX: 0000000000000008 RSI: 00000000200000c0 RDI: 0000000000000005 RBP: 00007f5be82ebff4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f5be83b3f80 R15: 00007ffc23a756f8