rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 0-...!: (1 GPs behind) idle=f56c/1/0x4000000000000000 softirq=139798/139799 fqs=2 rcu: (detected by 1, t=10503 jiffies, g=190485, q=182 ncpus=2) Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 9842 Comm: syz-executor.2 Not tainted 6.5.0-next-20230830-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:lock_release+0x62/0x680 kernel/locking/lockdep.c:5761 Code: 03 48 c7 44 24 18 20 ba 38 8c 48 01 e8 48 c7 44 24 20 00 96 68 81 c7 00 f1 f1 f1 f1 c7 40 04 f1 f1 04 f2 c7 40 08 04 f3 f3 f3 <65> 48 8b 04 25 28 00 00 00 48 89 84 24 88 00 00 00 31 c0 0f 1f 44 RSP: 0018:ffffc90000007c30 EFLAGS: 00000086 RAX: fffff52000000f88 RBX: ffffffff92438860 RCX: ffffffff816911de RDX: 1ffff1100f68b248 RSI: ffffffff842bca93 RDI: ffffffff92438878 RBP: 1ffff92000000f88 R08: 0000000000000001 R09: 0000000000000002 R10: 0000000000000003 R11: ffffc90000007ff8 R12: ffffffff92438878 R13: ffff88801ff4f340 R14: ffffffff8a8f2a60 R15: 1ffff92000000fa6 FS: 00007f0b4202d6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2ed32000 CR3: 0000000046c43000 CR4: 00000000003506f0 DR0: 0000000000008000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:149 [inline] _raw_spin_unlock_irqrestore+0x1a/0x70 kernel/locking/spinlock.c:194 debug_object_activate+0x283/0x490 lib/debugobjects.c:745 debug_hrtimer_activate kernel/time/hrtimer.c:422 [inline] debug_activate kernel/time/hrtimer.c:477 [inline] enqueue_hrtimer+0x23/0x310 kernel/time/hrtimer.c:1087 __run_hrtimer kernel/time/hrtimer.c:1705 [inline] __hrtimer_run_queues+0xa0a/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:PageTail include/linux/page-flags.h:286 [inline] RIP: 0010:folio_flags+0x29/0x1f0 include/linux/page-flags.h:313 Code: 90 41 55 41 54 55 48 89 fd 53 89 f3 e8 30 9d d2 ff 48 8d 7d 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 <0f> 85 8a 01 00 00 4c 8b 65 08 31 ff 41 83 e4 01 4c 89 e6 e8 8f 98 RSP: 0018:ffffc90004b8f7b8 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90005239000 RDX: 1ffffd40002ce2b1 RSI: ffffffff81b54240 RDI: ffffea0001671588 RBP: ffffea0001671580 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: dffffc0000000000 R12: ffffc90004b8f908 R13: 000000000000046f R14: ffffc90004b8fa28 R15: dffffc0000000000 folio_test_locked include/linux/page-flags.h:467 [inline] next_uptodate_folio+0xa9/0x550 mm/filemap.c:3447 filemap_map_pages+0xa3f/0x1240 mm/filemap.c:3589 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:3305 [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:0x7f0b4127cae9 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:00007f0b4202d0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f0b4139bf80 RCX: 00007f0b4127cae9 RDX: b635773f06ebbeee RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 00007f0b412c847a R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f0b4139bf80 R15: 00007ffe05eae558 rcu: rcu_preempt kthread starved for 10490 jiffies! g190485 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:28224 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: 1 PID: 22218 Comm: kworker/u4:3 Not tainted 6.5.0-next-20230830-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:ffffc9000e7d7928 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffff8880b9844180 RCX: 0000000000000000 RDX: ffff888049520000 RSI: ffffffff817c5294 RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffffed1017308831 R13: 0000000000000001 R14: ffff8880b993d8c0 R15: ffff8880b9844188 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c013b11000 CR3: 000000000c976000 CR4: 00000000003506e0 DR0: 0000000000008000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 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:1990 [inline] text_poke_bp_batch+0x2ce/0x960 arch/x86/kernel/alternative.c:2200 text_poke_flush arch/x86/kernel/alternative.c:2391 [inline] text_poke_flush arch/x86/kernel/alternative.c:2388 [inline] text_poke_finish+0x30/0x40 arch/x86/kernel/alternative.c:2398 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