rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: (detected by 0, t=10502 jiffies, g=250597, q=94 ncpus=2) rcu: All QSes seen, last rcu_preempt kthread activity 10502 (4295240493-4295229991), jiffies_till_next_fqs=1, root ->qsmask 0x0 rcu: rcu_preempt kthread starved for 10502 jiffies! g250597 f0x2 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:27512 pid: 17 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5116 [inline] __schedule+0xa00/0x4b30 kernel/sched/core.c:6428 schedule+0xd2/0x1f0 kernel/sched/core.c:6500 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1935 rcu_gp_fqs_loop+0x186/0x810 kernel/rcu/tree.c:1999 rcu_gp_kthread+0x1de/0x320 kernel/rcu/tree.c:2187 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 rcu: Stack dump where RCU GP kthread last ran: Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 2981 Comm: udevd Not tainted 5.18.0-next-20220601-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:rcu_lockdep_current_cpu_online kernel/rcu/tree.c:1185 [inline] RIP: 0010:rcu_lockdep_current_cpu_online+0x28/0x140 kernel/rcu/tree.c:1177 Code: 00 90 65 8b 15 a9 1a 9d 7e 81 e2 00 00 f0 00 b8 01 00 00 00 75 0a 8b 15 36 fe 55 0c 85 d2 75 01 c3 55 53 65 ff 05 88 1a 9d 7e f3 db 11 08 48 c7 c3 c0 ad 03 00 83 f8 07 89 c5 0f 87 e9 00 00 RSP: 0018:ffffc900001f0c28 EFLAGS: 00000002 RAX: 0000000000000001 RBX: 1ffff9200003e18c RCX: ffffffff815e7ef8 RDX: 0000000000000001 RSI: 0000000000010004 RDI: ffffffff8b7f68e8 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff8dbb51d7 R10: fffffbfff1b76a3a R11: 0000000000000001 R12: 0000000000000001 R13: 0000000000000000 R14: ffffffff9080bac0 R15: 0000000000000000 FS: 00007f985b08e840(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc4549691b8 CR3: 0000000024a9f000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_read_lock_held_common kernel/rcu/update.c:112 [inline] rcu_read_lock_held_common kernel/rcu/update.c:102 [inline] rcu_read_lock_sched_held+0x25/0x70 kernel/rcu/update.c:123 trace_lock_acquire include/trace/events/lock.h:24 [inline] lock_acquire+0x480/0x570 kernel/locking/lockdep.c:5636 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162 debug_object_deactivate lib/debugobjects.c:732 [inline] debug_object_deactivate+0x101/0x300 lib/debugobjects.c:720 debug_hrtimer_deactivate kernel/time/hrtimer.c:425 [inline] debug_deactivate kernel/time/hrtimer.c:481 [inline] __run_hrtimer kernel/time/hrtimer.c:1653 [inline] __hrtimer_run_queues+0x3f8/0xe50 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:free_unref_page+0x36d/0x7b0 mm/page_alloc.c:3449 Code: c6 b9 10 bc 81 4c 89 cf e8 f0 65 a2 ff 48 85 db 0f 85 b4 00 00 00 9c 58 f6 c4 02 0f 85 59 01 00 00 48 85 db 74 01 fb 45 84 f6 <0f> 85 aa fc ff ff 48 b8 00 00 00 00 00 fc ff df 48 89 ea 48 c1 ea RSP: 0018:ffffc90001ccfb98 EFLAGS: 00000202 RAX: 0000000000000006 RBX: 0000000000000200 RCX: 1ffffffff1b76461 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffea0001db7380 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000001 R13: 0000000000076dce R14: 0000000000000001 R15: 0000000000000000 __unfreeze_partials+0x17c/0x1a0 mm/slub.c:2521 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0xa2/0xc0 mm/kasan/common.c:446 kasan_slab_alloc include/linux/kasan.h:224 [inline] slab_post_alloc_hook mm/slab.h:750 [inline] slab_alloc_node mm/slub.c:3214 [inline] slab_alloc mm/slub.c:3222 [inline] __kmem_cache_alloc_lru mm/slub.c:3229 [inline] kmem_cache_alloc+0x204/0x3b0 mm/slub.c:3239 getname_flags.part.0+0x50/0x4f0 fs/namei.c:139 getname_flags include/linux/audit.h:323 [inline] getname+0x8e/0xd0 fs/namei.c:218 do_sys_openat2+0xf5/0x4c0 fs/open.c:1272 do_sys_open fs/open.c:1294 [inline] __do_sys_openat fs/open.c:1310 [inline] __se_sys_openat fs/open.c:1305 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1305 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f985ad2a5a4 Code: f9 41 89 f0 41 83 e2 40 75 2c 89 f0 25 00 00 41 00 3d 00 00 41 00 74 1e 44 89 c2 4c 89 ce bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 2c c3 0f 1f 00 48 8d 44 24 08 c7 44 24 b8 10 RSP: 002b:00007ffd180ae238 EFLAGS: 00000287 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000556cf1d88b20 RCX: 00007f985ad2a5a4 RDX: 0000000000090800 RSI: 0000556cf1d73930 RDI: 00000000ffffff9c RBP: 0000556cf1dc83b0 R08: 0000000000090800 R09: 0000556cf1d73930 R10: 0000000000000000 R11: 0000000000000287 R12: 0000556cf1d73930 R13: 0000000000000100 R14: 0000000000000000 R15: 0000000000000000 watchdog: BUG: soft lockup - CPU#0 stuck for 227s! [kworker/u4:28:17987] Modules linked in: irq event stamp: 7864668 hardirqs last enabled at (7864667): [] asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 hardirqs last disabled at (7864668): [] sysvec_apic_timer_interrupt+0xb/0xc0 arch/x86/kernel/apic/apic.c:1106 softirqs last enabled at (7768154): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last enabled at (7768154): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 softirqs last disabled at (7768127): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last disabled at (7768127): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 CPU: 0 PID: 17987 Comm: kworker/u4:28 Not tainted 5.18.0-next-20220601-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:check_kcov_mode kernel/kcov.c:166 [inline] RIP: 0010:write_comp_data+0x21/0x90 kernel/kcov.c:229 Code: 84 00 00 00 00 00 0f 1f 00 65 8b 05 29 df 87 7e 49 89 f1 89 c6 49 89 d2 81 e6 00 01 00 00 49 89 f8 65 48 8b 14 25 80 6f 02 00 00 01 ff 00 74 0e 85 f6 74 59 8b 82 a4 15 00 00 85 c0 74 4f 8b RSP: 0018:ffffc90004fbf948 EFLAGS: 00000246 RAX: 0000000000000001 RBX: ffff8880b9d401e0 RCX: ffffffff816fffdd RDX: ffff8880788f3b00 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffffed10173a803d R13: 0000000000000001 R14: 0000000000000001 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000040 CR3: 000000000ba8e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000003b DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: csd_lock_wait kernel/smp.c:414 [inline] smp_call_function_many_cond+0x4bd/0x1110 kernel/smp.c:988 on_each_cpu_cond_mask+0x56/0xa0 kernel/smp.c:1154 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1231 [inline] text_poke_bp_batch+0x233/0x6c0 arch/x86/kernel/alternative.c:1419 text_poke_flush arch/x86/kernel/alternative.c:1589 [inline] text_poke_flush arch/x86/kernel/alternative.c:1586 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1596 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32f/0x410 kernel/jump_label.c:830 static_key_enable_cpuslocked+0x1b1/0x260 kernel/jump_label.c:177 static_key_enable+0x16/0x20 kernel/jump_label.c:190 toggle_allocation_gate mm/kfence/core.c:808 [inline] toggle_allocation_gate+0x100/0x390 mm/kfence/core.c:800 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 2981 Comm: udevd Not tainted 5.18.0-next-20220601-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:hlock_class kernel/locking/lockdep.c:231 [inline] RIP: 0010:hlock_class kernel/locking/lockdep.c:220 [inline] RIP: 0010:check_wait_context kernel/locking/lockdep.c:4752 [inline] RIP: 0010:__lock_acquire+0x73e/0x5660 kernel/locking/lockdep.c:5003 Code: b9 5f 90 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 de 32 00 00 8b 05 31 9d 01 0f 85 c0 0f 84 43 07 00 00 31 c0 e9 0f ff ff ff <4c> 8b 64 24 58 40 38 6c 24 50 76 0d e8 31 c2 9b 02 85 c0 0f 85 6d RSP: 0018:ffffc900001f0af0 EFLAGS: 00000046 RAX: 0000000000000000 RBX: 000000000000005d RCX: ffffffff815e1b92 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff900b2358 RBP: 0000000000000002 R08: 0000000000000000 R09: ffffffff900ad8cf R10: fffffbfff2015b19 R11: 0000000000000001 R12: 0000000000000002 R13: ffff88807d9a3b00 R14: ffff88807d9a4560 R15: dffffc0000000000 FS: 00007f985b08e840(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc4549691b8 CR3: 0000000024a9f000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire kernel/locking/lockdep.c:5665 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162 debug_object_deactivate lib/debugobjects.c:732 [inline] debug_object_deactivate+0x101/0x300 lib/debugobjects.c:720 debug_hrtimer_deactivate kernel/time/hrtimer.c:425 [inline] debug_deactivate kernel/time/hrtimer.c:481 [inline] __run_hrtimer kernel/time/hrtimer.c:1653 [inline] __hrtimer_run_queues+0x3f8/0xe50 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:free_unref_page+0x36d/0x7b0 mm/page_alloc.c:3449 Code: c6 b9 10 bc 81 4c 89 cf e8 f0 65 a2 ff 48 85 db 0f 85 b4 00 00 00 9c 58 f6 c4 02 0f 85 59 01 00 00 48 85 db 74 01 fb 45 84 f6 <0f> 85 aa fc ff ff 48 b8 00 00 00 00 00 fc ff df 48 89 ea 48 c1 ea RSP: 0018:ffffc90001ccfb98 EFLAGS: 00000202 RAX: 0000000000000006 RBX: 0000000000000200 RCX: 1ffffffff1b76461 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffea0001db7380 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000001 R13: 0000000000076dce R14: 0000000000000001 R15: 0000000000000000 __unfreeze_partials+0x17c/0x1a0 mm/slub.c:2521 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0xa2/0xc0 mm/kasan/common.c:446 kasan_slab_alloc include/linux/kasan.h:224 [inline] slab_post_alloc_hook mm/slab.h:750 [inline] slab_alloc_node mm/slub.c:3214 [inline] slab_alloc mm/slub.c:3222 [inline] __kmem_cache_alloc_lru mm/slub.c:3229 [inline] kmem_cache_alloc+0x204/0x3b0 mm/slub.c:3239 getname_flags.part.0+0x50/0x4f0 fs/namei.c:139 getname_flags include/linux/audit.h:323 [inline] getname+0x8e/0xd0 fs/namei.c:218 do_sys_openat2+0xf5/0x4c0 fs/open.c:1272 do_sys_open fs/open.c:1294 [inline] __do_sys_openat fs/open.c:1310 [inline] __se_sys_openat fs/open.c:1305 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1305 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f985ad2a5a4 Code: f9 41 89 f0 41 83 e2 40 75 2c 89 f0 25 00 00 41 00 3d 00 00 41 00 74 1e 44 89 c2 4c 89 ce bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 2c c3 0f 1f 00 48 8d 44 24 08 c7 44 24 b8 10 RSP: 002b:00007ffd180ae238 EFLAGS: 00000287 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000556cf1d88b20 RCX: 00007f985ad2a5a4 RDX: 0000000000090800 RSI: 0000556cf1d73930 RDI: 00000000ffffff9c RBP: 0000556cf1dc83b0 R08: 0000000000090800 R09: 0000556cf1d73930 R10: 0000000000000000 R11: 0000000000000287 R12: 0000556cf1d73930 R13: 0000000000000100 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: 00 90 65 8b 15 a9 add %dl,-0x56ea749b(%rax) 6: 1a 9d 7e 81 e2 00 sbb 0xe2817e(%rbp),%bl c: 00 f0 add %dh,%al e: 00 b8 01 00 00 00 add %bh,0x1(%rax) 14: 75 0a jne 0x20 16: 8b 15 36 fe 55 0c mov 0xc55fe36(%rip),%edx # 0xc55fe52 1c: 85 d2 test %edx,%edx 1e: 75 01 jne 0x21 20: c3 retq 21: 55 push %rbp 22: 53 push %rbx 23: 65 ff 05 88 1a 9d 7e incl %gs:0x7e9d1a88(%rip) # 0x7e9d1ab2 * 2a: e8 f3 db 11 08 callq 0x811dc22 <-- trapping instruction 2f: 48 c7 c3 c0 ad 03 00 mov $0x3adc0,%rbx 36: 83 f8 07 cmp $0x7,%eax 39: 89 c5 mov %eax,%ebp 3b: 0f .byte 0xf 3c: 87 e9 xchg %ebp,%ecx