rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 0-...!: (1 ticks this GP) idle=53a4/1/0x4000000000000000 softirq=74493/74493 fqs=20 rcu: (detected by 1, t=10502 jiffies, g=82889, q=749 ncpus=2) Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 17497 Comm: syz.0.3390 Not tainted 6.13.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024 RIP: 0010:__lock_acquire+0x1995/0x2100 kernel/locking/lockdep.c:5196 Code: e9 d6 f1 ff ff 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 9f f2 ff ff 4c 89 ff e8 e7 82 88 00 e9 92 f2 ff ff 48 c7 c1 c0 79 37 9a <80> e1 07 80 c1 03 38 c1 0f 8c c7 f2 ff ff 48 c7 c7 c0 79 37 9a e8 RSP: 0018:ffffc900000078f0 EFLAGS: 00000002 RAX: 0000000000000004 RBX: 1ffff1100fa27534 RCX: ffffffff9a3779c0 RDX: 0000000000000000 RSI: 0000000000000008 RDI: dffffc0000000000 RBP: ffff88807d13a980 R08: ffffffff94270887 R09: 1ffffffff284e110 R10: dffffc0000000000 R11: fffffbfff284e111 R12: ffff88807d13a8c4 R13: ffff88807d139e00 R14: 0000000000000000 R15: ffff88807d13a9a0 FS: 00007eff843046c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30411ff8 CR3: 0000000031860000 CR4: 00000000003526f0 DR0: fffffffffffffbfe DR1: 0000000000000004 DR2: 0000000080000000 DR3: 0000000020000006 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162 debug_object_activate+0x17f/0x580 lib/debugobjects.c:818 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:1076 __run_hrtimer kernel/time/hrtimer.c:1756 [inline] __hrtimer_run_queues+0x6cb/0xd30 kernel/time/hrtimer.c:1803 hrtimer_interrupt+0x403/0xa40 kernel/time/hrtimer.c:1865 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:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xd8/0x140 kernel/locking/spinlock.c:194 Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 9e 06 40 f6 f6 44 24 21 02 75 52 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 53 37 aa f5 65 8b 05 c4 89 40 74 85 c0 74 43 48 c7 04 24 0e 36 RSP: 0018:ffffc900052ef2e0 EFLAGS: 00000206 RAX: 9102ec06dbb04c00 RBX: 1ffff92000a5de60 RCX: ffffffff817b270a RDX: dffffc0000000000 RSI: ffffffff8c0a96c0 RDI: 0000000000000001 RBP: ffffc900052ef380 R08: ffffffff94270a47 R09: 1ffffffff284e148 R10: dffffc0000000000 R11: fffffbfff284e149 R12: dffffc0000000000 R13: 1ffff92000a5de5c R14: ffffc900052ef300 R15: 0000000000000246 stack_depot_save_flags+0x7b4/0x940 lib/stackdepot.c:670 save_stack+0x109/0x1f0 mm/page_owner.c:157 __reset_page_owner+0x76/0x430 mm/page_owner.c:297 reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0xd2c/0x1000 mm/page_alloc.c:2657 stack_depot_save_flags+0x7c6/0x940 lib/stackdepot.c:674 kasan_save_stack mm/kasan/common.c:48 [inline] kasan_save_track+0x51/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4298 [inline] __kmalloc_noprof+0x285/0x4c0 mm/slub.c:4310 kmalloc_noprof include/linux/slab.h:905 [inline] kzalloc_noprof include/linux/slab.h:1037 [inline] __crypto_alloc_tfmgfp+0x174/0x420 crypto/api.c:414 __crypto_alloc_tfm crypto/api.c:441 [inline] crypto_alloc_base+0x6a/0x270 crypto/api.c:481 crypto_alloc_cipher include/crypto/internal/cipher.h:63 [inline] drbg_init_sym_kernel+0xc7/0xbb0 crypto/drbg.c:1752 drbg_alloc_state crypto/drbg.c:1292 [inline] drbg_instantiate crypto/drbg.c:1586 [inline] drbg_kcapi_seed+0x832/0xfb0 crypto/drbg.c:1970 crypto_rng_reset+0x7b/0x110 crypto/rng.c:47 alg_setkey+0x170/0x1b0 crypto/af_alg.c:223 alg_setsockopt+0x383/0x450 crypto/af_alg.c:386 do_sock_setsockopt+0x3af/0x720 net/socket.c:2313 __sys_setsockopt net/socket.c:2338 [inline] __do_sys_setsockopt net/socket.c:2344 [inline] __se_sys_setsockopt net/socket.c:2341 [inline] __x64_sys_setsockopt+0x1ee/0x280 net/socket.c:2341 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:0x7eff83585d19 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:00007eff84304038 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007eff83775fa0 RCX: 00007eff83585d19 RDX: 0000000000000001 RSI: 0000000000000117 RDI: 0000000000000003 RBP: 00007eff83601a20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007eff83775fa0 R15: 00007ffd33103628 rcu: rcu_preempt kthread starved for 10338 jiffies! g82889 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:25976 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0x17fb/0x4be0 kernel/sched/core.c:6756 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6848 schedule_timeout+0x15a/0x290 kernel/time/sleep_timeout.c:99 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2045 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2247 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 rcu: Stack dump where RCU GP kthread last ran: CPU: 1 UID: 0 PID: 52 Comm: kworker/u8:3 Not tainted 6.13.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:340 [inline] RIP: 0010:smp_call_function_many_cond+0x19f8/0x2c60 kernel/smp.c:884 Code: 89 e6 83 e6 01 31 ff e8 56 e9 0b 00 41 83 e4 01 49 bc 00 00 00 00 00 fc ff df 75 07 e8 01 e5 0b 00 eb 38 f3 90 42 0f b6 04 23 <84> c0 75 11 41 f7 45 00 01 00 00 00 74 1e e8 e5 e4 0b 00 eb e4 44 RSP: 0018:ffffc90000bc76e0 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 1ffff110170c8c65 RCX: ffff888022ac0000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90000bc78e0 R08: ffffffff81938e8a R09: 1ffffffff284e110 R10: dffffc0000000000 R11: fffffbfff284e111 R12: dffffc0000000000 R13: ffff8880b8646328 R14: ffff8880b873f940 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020b80030 CR3: 000000000e736000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1051 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_enable_cpuslocked+0x136/0x260 kernel/jump_label.c:210 static_key_enable+0x1a/0x20 kernel/jump_label.c:223 toggle_allocation_gate+0xbc/0x260 mm/kfence/core.c:849 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244