rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...!: (1 GPs behind) idle=8204/1/0x4000000000000000 softirq=23490/23492 fqs=3 rcu: (detected by 0, t=10502 jiffies, g=31497, q=93 ncpus=2) Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 8449 Comm: syz-executor.4 Not tainted 6.5.0-rc7-next-20230822-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:trace_lock_acquire include/trace/events/lock.h:24 [inline] RIP: 0010:lock_acquire+0xbf/0x510 kernel/locking/lockdep.c:5724 Code: 07 0f 87 d7 03 00 00 89 d5 be 08 00 00 00 48 89 e8 48 c1 e8 06 48 8d 3c c5 d0 d1 cd 8e e8 89 e4 74 00 48 0f a3 2d 01 39 65 0d <0f> 82 9a 03 00 00 48 c7 c0 50 07 ce 8e 48 ba 00 00 00 00 00 fc ff RSP: 0018:ffffc900001f0ca0 EFLAGS: 00000047 RAX: 0000000000000001 RBX: 1ffff9200003e196 RCX: ffffffff816898c7 RDX: fffffbfff1d9ba3b RSI: 0000000000000008 RDI: ffffffff8ecdd1d0 RBP: 0000000000000001 R08: 0000000000000000 R09: fffffbfff1d9ba3a R10: ffffffff8ecdd1d7 R11: ffffc900001f0ff8 R12: 0000000000000000 R13: 0000000000000000 R14: ffffffff8cbab260 R15: 0000000000000000 FS: 00007f2dfc0c66c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2dfb398000 CR3: 000000001fced000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_lock_acquire include/linux/rcupdate.h:303 [inline] rcu_read_lock include/linux/rcupdate.h:749 [inline] advance_sched+0x67e/0xc60 net/sched/sch_taprio.c:996 __run_hrtimer kernel/time/hrtimer.c:1688 [inline] __hrtimer_run_queues+0x203/0xc10 kernel/time/hrtimer.c:1752 hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1814 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1063 [inline] __sysvec_apic_timer_interrupt+0x105/0x3f0 arch/x86/kernel/apic/apic.c:1080 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1074 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:kasan_check_range+0x154/0x190 mm/kasan/generic.c:188 Code: 74 11 80 38 00 74 ef 4d 8d 1c 2c 48 85 c0 48 89 c2 75 97 48 89 da 4c 89 d8 4c 29 da e9 30 ff ff ff 5b b8 01 00 00 00 5d 41 5c b8 01 00 00 00 c3 48 29 c3 48 89 da 49 89 d3 49 c1 fb 3f 49 c1 RSP: 0018:ffffc900151877d8 EFLAGS: 00000246 RAX: 0000000000000001 RBX: ffffea0000f246c0 RCX: ffffffff81b56fb1 RDX: fffff940001e48d9 RSI: 0000000000000008 RDI: ffffea0000f246c0 RBP: ffffea0000f246f4 R08: 0000000000000000 R09: fffff940001e48d8 R10: ffffea0000f246c7 R11: dffffc0000000000 R12: ffffc90015187908 R13: 00000000000000af R14: ffffea0000f246c0 R15: dffffc0000000000 instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] folio_test_uptodate include/linux/page-flags.h:707 [inline] next_uptodate_folio+0x3e1/0x550 mm/filemap.c:3457 filemap_map_pages+0xa3f/0x1240 mm/filemap.c:3586 do_fault_around mm/memory.c:4528 [inline] do_read_fault mm/memory.c:4561 [inline] do_fault mm/memory.c:4708 [inline] do_pte_missing mm/memory.c:3672 [inline] handle_pte_fault mm/memory.c:4981 [inline] __handle_mm_fault+0x2923/0x3e20 mm/memory.c:5122 handle_mm_fault+0x47a/0xa00 mm/memory.c:5287 faultin_page mm/gup.c:956 [inline] __get_user_pages+0x4b3/0x1410 mm/gup.c:1239 populate_vma_page_range+0x2d4/0x410 mm/gup.c:1666 __mm_populate+0x1d7/0x380 mm/gup.c:1775 mm_populate include/linux/mm.h:3313 [inline] vm_mmap_pgoff+0x2cd/0x3b0 mm/util.c:551 ksys_mmap_pgoff+0x7d/0x5b0 mm/mmap.c:1400 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:93 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline] __x64_sys_mmap+0x125/0x190 arch/x86/kernel/sys_x86_64.c:86 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f2dfb27cae9 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:00007f2dfc0c60c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f2dfb39bf80 RCX: 00007f2dfb27cae9 RDX: b635773f04ebbeeb RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 00007f2dfb2c847a R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f2dfb39bf80 R15: 00007ffce5cbc558 rcu: rcu_preempt kthread starved for 10496 jiffies! g31497 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:28320 pid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0xee1/0x59f0 kernel/sched/core.c:6695 schedule+0xe7/0x1b0 kernel/sched/core.c:6771 schedule_timeout+0x157/0x2c0 kernel/time/timer.c:2167 rcu_gp_fqs_loop+0x1ec/0xa50 kernel/rcu/tree.c:1613 rcu_gp_kthread+0x249/0x380 kernel/rcu/tree.c:1812 kthread+0x33a/0x430 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 rcu: Stack dump where RCU GP kthread last ran: CPU: 0 PID: 2806 Comm: kworker/u4:9 Not tainted 6.5.0-rc7-next-20230822-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:300 [inline] RIP: 0010:smp_call_function_many_cond+0x4d6/0x1570 kernel/smp.c:844 Code: 0b 00 85 ed 74 4d 48 b8 00 00 00 00 00 fc ff df 4d 89 fc 4c 89 fd 49 c1 ec 03 83 e5 07 49 01 c4 83 c5 03 e8 dc 8c 0b 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 3c 0e 00 00 8b 43 08 31 RSP: 0018:ffffc9000ab1f928 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffff8880b9941a60 RCX: 0000000000000000 RDX: ffff888026b38000 RSI: ffffffff817c4564 RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffffed101732834d R13: 0000000000000001 R14: ffff8880b983d8c0 R15: ffff8880b9941a68 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007efc00a1e000 CR3: 000000000c976000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x40/0x90 kernel/smp.c:1012 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1998 [inline] text_poke_bp_batch+0x2ce/0x960 arch/x86/kernel/alternative.c:2208 text_poke_flush arch/x86/kernel/alternative.c:2399 [inline] text_poke_flush arch/x86/kernel/alternative.c:2396 [inline] text_poke_finish+0x30/0x40 arch/x86/kernel/alternative.c:2406 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32e/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:830 [inline] toggle_allocation_gate+0xf4/0x250 mm/kfence/core.c:822 process_one_work+0x887/0x15d0 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x8bb/0x1290 kernel/workqueue.c:2784 kthread+0x33a/0x430 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304