rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...!: (6 ticks this GP) idle=939c/1/0x4000000000000000 softirq=79829/79835 fqs=3 rcu: (detected by 0, t=10502 jiffies, g=97781, q=227 ncpus=2) Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 19169 Comm: syz.5.3760 Not tainted 6.13.0-syzkaller-08265-g9c5968db9e62 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:__raw_callee_save___pv_queued_spin_unlock+0x10/0x18 Code: 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 52 b8 01 00 00 00 31 d2 f0 0f b0 17 <75> 06 5a c3 cc cc cc cc 56 0f b6 f0 e8 9f ff ff ff 5e 5a c3 cc cc RSP: 0018:ffffc90000a18ad0 EFLAGS: 00000046 RAX: 0000000000000001 RBX: 1ffffffff34c3a42 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffffff9a61d208 RBP: dffffc0000000000 R08: ffffffff9a61d20b R09: 1ffffffff34c3a41 R10: dffffc0000000000 R11: fffffbfff34c3a42 R12: 1ffffffff34c3a43 R13: ffffffff9a61d218 R14: ffffffff9a61d210 R15: ffffffff9a61d208 FS: 00007f22151f66c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c28f70c CR3: 0000000035222000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: pv_queued_spin_unlock arch/x86/include/asm/paravirt.h:582 [inline] queued_spin_unlock arch/x86/include/asm/qspinlock.h:57 [inline] do_raw_spin_unlock+0x13c/0x8b0 kernel/locking/spinlock_debug.c:142 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:150 [inline] _raw_spin_unlock_irqrestore+0x81/0x140 kernel/locking/spinlock.c:194 debug_object_activate+0x3f7/0x580 lib/debugobjects.c:836 debug_hrtimer_activate kernel/time/hrtimer.c:428 [inline] debug_activate kernel/time/hrtimer.c:469 [inline] enqueue_hrtimer+0x30/0x3c0 kernel/time/hrtimer.c:1075 __run_hrtimer kernel/time/hrtimer.c:1755 [inline] __hrtimer_run_queues+0x6cb/0xd30 kernel/time/hrtimer.c:1802 hrtimer_interrupt+0x403/0xa40 kernel/time/hrtimer.c:1864 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:preempt_count_add+0x6/0x190 kernel/sched/core.c:5846 Code: 48 8b 3c 24 e8 6b d2 95 00 eb 8c e9 ee fe ff ff 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 41 57 <41> 56 53 89 fb 48 c7 c0 80 d9 3c 9a 48 c1 e8 03 49 bf 00 00 00 00 RSP: 0018:ffffc9000cc16760 EFLAGS: 00000202 RAX: 0000000000000001 RBX: 1ffff92001982d08 RCX: ffffc9000cc174a0 RDX: dffffc0000000000 RSI: ffffffff820b2904 RDI: 0000000000000001 RBP: ffffc9000cc16878 R08: 0000000000000009 R09: ffffc9000cc16930 R10: ffffc9000cc16890 R11: ffffffff81ab1ef0 R12: dffffc0000000000 R13: ffffc9000cc16840 R14: ffffffff820b2904 R15: 0000000000000000 unwind_next_frame+0xb0/0x22d0 arch/x86/kernel/unwind_orc.c:479 arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122 save_stack+0xfb/0x1f0 mm/page_owner.c:156 __set_page_owner+0x92/0x800 mm/page_owner.c:320 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4739 alloc_pages_mpol+0x311/0x660 mm/mempolicy.c:2270 folio_alloc_mpol_noprof+0x36/0x70 mm/mempolicy.c:2289 shmem_alloc_folio mm/shmem.c:1863 [inline] shmem_alloc_and_add_folio+0x4a0/0x1090 mm/shmem.c:1902 shmem_get_folio_gfp+0x621/0x1840 mm/shmem.c:2522 shmem_fault+0x220/0x5b0 mm/shmem.c:2723 __do_fault+0x135/0x390 mm/memory.c:4977 do_read_fault mm/memory.c:5392 [inline] do_fault mm/memory.c:5526 [inline] do_pte_missing mm/memory.c:4047 [inline] handle_pte_fault mm/memory.c:5889 [inline] __handle_mm_fault+0x4c44/0x70f0 mm/memory.c:6032 handle_mm_fault+0x2c1/0x7e0 mm/memory.c:6201 faultin_page mm/gup.c:1196 [inline] __get_user_pages+0x1a92/0x4140 mm/gup.c:1491 populate_vma_page_range+0x264/0x330 mm/gup.c:1929 __mm_populate+0x27a/0x460 mm/gup.c:2032 mm_populate include/linux/mm.h:3386 [inline] vm_mmap_pgoff+0x303/0x430 mm/util.c:580 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:0x7f221738cda9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f22151f6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f22175a5fa0 RCX: 00007f221738cda9 RDX: b635773f06ebbeef RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 00007f221740e2a0 R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f22175a5fa0 R15: 00007ffc5adfb178 rcu: rcu_preempt kthread starved for 10496 jiffies! g97781 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:25624 pid:17 tgid:17 ppid:2 task_flags:0x208040 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5377 [inline] __schedule+0x18bc/0x4c40 kernel/sched/core.c:6764 __schedule_loop kernel/sched/core.c:6841 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6856 schedule_timeout+0x15a/0x290 kernel/time/sleep_timeout.c:99 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2024 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2226 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 rcu: Stack dump where RCU GP kthread last ran: CPU: 0 UID: 0 PID: 19172 Comm: syz.4.3755 Not tainted 6.13.0-syzkaller-08265-g9c5968db9e62 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:csd_lock_wait kernel/smp.c:340 [inline] RIP: 0010:smp_call_function_many_cond+0x1bae/0x2d30 kernel/smp.c:885 Code: 89 e6 83 e6 01 31 ff e8 a0 e8 0b 00 41 83 e4 01 4c 8b 64 24 68 75 07 e8 50 e4 0b 00 eb 41 f3 90 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 03 84 c0 75 11 41 f7 45 00 01 00 00 00 74 1e e8 2b e4 0b RSP: 0018:ffffc9000ccc7940 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: 1ffff110170e88c1 RCX: 0000000000080000 RDX: ffffc90014ed4000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc9000ccc7b40 R08: ffffffff81b37820 R09: 1ffffffff2858d08 R10: dffffc0000000000 R11: fffffbfff2858d09 R12: ffff8880b863f988 R13: ffff8880b8744608 R14: ffff8880b863f980 R15: 0000000000000001 FS: 00007f7f465f66c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000033dc8000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 000000000000000b DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1052 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:2114 [inline] text_poke_bp_batch+0x352/0xb30 arch/x86/kernel/alternative.c:2324 text_poke_flush arch/x86/kernel/alternative.c:2515 [inline] text_poke_finish+0x30/0x50 arch/x86/kernel/alternative.c:2522 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146 static_key_slow_inc_cpuslocked+0x80/0xf0 kernel/jump_label.c:168 static_key_slow_inc+0x1a/0x30 kernel/jump_label.c:191 kvm_create_vm virt/kvm/kvm_main.c:1210 [inline] kvm_dev_ioctl_create_vm virt/kvm/kvm_main.c:5398 [inline] kvm_dev_ioctl+0x1855/0x2460 virt/kvm/kvm_main.c:5440 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:0x7f7f4878cda9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7f465f6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f7f489a6080 RCX: 00007f7f4878cda9 RDX: 0000000000000000 RSI: 000000000000ae01 RDI: 0000000000000009 RBP: 00007f7f4880e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f7f489a6080 R15: 00007ffee69fe3b8