rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P6613/1:b..l rcu: (detected by 0, t=10506 jiffies, g=17045, q=410 ncpus=2) task:syz-executor.4 state:R running task stack:27240 pid:6613 ppid:5033 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0xc9a/0x5880 kernel/sched/core.c:6710 preempt_schedule_irq+0x52/0x90 kernel/sched/core.c:7022 irqentry_exit+0x35/0x80 kernel/entry/common.c:433 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:lock_acquire+0x1f5/0x520 kernel/locking/lockdep.c:5729 Code: 1c 9d 7e 83 f8 01 0f 85 b9 02 00 00 9c 58 f6 c4 02 0f 85 a4 02 00 00 48 83 7c 24 08 00 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c3 48 c7 03 00 00 00 00 48 c7 43 08 00 00 00 00 48 8b 84 24 RSP: 0018:ffffc90004b67878 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: 1ffff9200096cf11 RCX: ee0dc9d05ea20e1e RDX: 1ffff1100e7a9d60 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: fffffbfff230bfd0 R10: ffffffff9185fe87 R11: 0000000000000001 R12: 0000000000000002 R13: 0000000000000000 R14: ffffffff8c9a16c0 R15: 0000000000000000 rcu_lock_acquire include/linux/rcupdate.h:303 [inline] rcu_read_lock include/linux/rcupdate.h:749 [inline] count_memcg_event_mm.part.0+0x38/0x330 include/linux/memcontrol.h:1105 count_memcg_event_mm include/linux/memcontrol.h:570 [inline] mm_account_fault mm/memory.c:5113 [inline] handle_mm_fault+0x3f6/0x9e0 mm/memory.c:5249 do_user_addr_fault+0x661/0x1360 arch/x86/mm/fault.c:1392 handle_page_fault arch/x86/mm/fault.c:1486 [inline] exc_page_fault+0x98/0x170 arch/x86/mm/fault.c:1542 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:fault_in_readable+0x129/0x210 mm/gup.c:1967 Code: 2d c4 ff 48 39 dd 0f 84 ec 00 00 00 45 31 f6 eb 11 e8 5b 2d c4 ff 48 81 c3 00 10 00 00 48 39 eb 74 1d e8 4a 2d c4 ff 45 89 f7 <8a> 03 31 ff 44 89 fe 88 44 24 28 e8 57 29 c4 ff 45 85 ff 74 d2 e8 RSP: 0018:ffffc90004b67b28 EFLAGS: 00050246 RAX: 0000000000040000 RBX: 0000000020124000 RCX: ffffc9000d4ee000 RDX: 0000000000040000 RSI: ffffffff81bfd546 RDI: 0000000000000005 RBP: 0000000020125000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000001000 R13: 00000000201230c0 R14: 0000000000000000 R15: 0000000000000000 fault_in_iov_iter_readable+0x252/0x2c0 lib/iov_iter.c:216 generic_perform_write+0x1c2/0x5d0 mm/filemap.c:3913 __generic_file_write_iter+0x1f8/0x240 mm/filemap.c:4018 generic_file_write_iter+0xe3/0x350 mm/filemap.c:4044 call_write_iter include/linux/fs.h:1871 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x981/0xda0 fs/read_write.c:584 ksys_write+0x122/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f441488c389 RSP: 002b:00007f4415593168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f44149ac050 RCX: 00007f441488c389 RDX: 00000000200000d2 RSI: 00000000200000c0 RDI: 0000000000000006 RBP: 00007f44148d7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffce9498b1f R14: 00007f4415593300 R15: 0000000000022000 rcu: rcu_preempt kthread starved for 10490 jiffies! g17045 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:28840 pid:15 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0xc9a/0x5880 kernel/sched/core.c:6710 schedule+0xde/0x1a0 kernel/sched/core.c:6786 schedule_timeout+0x14e/0x2b0 kernel/time/timer.c:2167 rcu_gp_fqs_loop+0x190/0x910 kernel/rcu/tree.c:1609 rcu_gp_kthread+0x23a/0x360 kernel/rcu/tree.c:1808 kthread+0x344/0x440 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 rcu: Stack dump where RCU GP kthread last ran: CPU: 0 PID: 75 Comm: kworker/u4:4 Not tainted 6.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:296 [inline] RIP: 0010:smp_call_function_many_cond+0x694/0x1720 kernel/smp.c:835 Code: 89 ee e8 cf 4e 0b 00 85 ed 74 48 48 8b 44 24 08 49 89 c4 83 e0 07 49 c1 ec 03 48 89 c5 4d 01 f4 83 c5 03 e8 8e 52 0b 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 d1 0d 00 00 8b 43 08 31 RSP: 0000:ffffc900020ef948 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffff8880b9941860 RCX: 0000000000000000 RDX: ffff888019ae60c0 RSI: ffffffff8178b002 RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffffed101732830d R13: 0000000000000001 R14: dffffc0000000000 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa082586058 CR3: 000000000c775000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x5a/0xa0 kernel/smp.c:1003 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1938 [inline] text_poke_bp_batch+0x24f/0x780 arch/x86/kernel/alternative.c:2148 text_poke_flush arch/x86/kernel/alternative.c:2339 [inline] text_poke_flush arch/x86/kernel/alternative.c:2336 [inline] text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:2346 arch_jump_label_transform_apply+0x17/0x30 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32f/0x410 kernel/jump_label.c:829 static_key_enable_cpuslocked+0x1b5/0x270 kernel/jump_label.c:205 static_key_enable+0x1a/0x20 kernel/jump_label.c:218 toggle_allocation_gate mm/kfence/core.c:831 [inline] toggle_allocation_gate+0xf8/0x230 mm/kfence/core.c:823 process_one_work+0xa34/0x16f0 kernel/workqueue.c:2597 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2748 kthread+0x344/0x440 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308