rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...!: (5 ticks this GP) idle=77bc/1/0x4000000000000000 softirq=8521/8521 fqs=0 rcu: (detected by 0, t=10502 jiffies, g=8213, q=383 ncpus=2) Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 5613 Comm: syz.0.33 Not tainted 6.11.0-rc2-syzkaller-00111-gee9a43b7cfe2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 RIP: 0010:__lock_is_held kernel/locking/lockdep.c:5497 [inline] RIP: 0010:lock_is_held_type+0x82/0x190 kernel/locking/lockdep.c:5831 Code: 41 89 f6 49 89 ff 48 c7 04 24 00 00 00 00 9c 8f 04 24 4c 8b 24 24 fa 48 c7 c7 40 e2 0a 8c e8 55 1b 00 00 65 ff 05 ce ac 4c 74 <41> 83 bd d8 0a 00 00 00 7e 47 4c 89 eb 48 81 c3 e0 0a 00 00 31 ed RSP: 0018:ffffc90000a18a98 EFLAGS: 00000002 RAX: 0000000000000001 RBX: 00000000ffffffff RCX: ffff88802ac80000 RDX: ffff88802ac80000 RSI: ffffffff8c0ae240 RDI: ffffffff8c6060c0 RBP: ffffc90000a18c30 R08: ffffffff8180be2e R09: 0000000000000000 R10: ffff88805fbf4340 R11: ffffed100bf7e86b R12: 0000000000000046 R13: ffff88802ac80000 R14: 00000000ffffffff R15: ffff8880b932c898 FS: 00007fe0da7fd6c0(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f63c3c99440 CR3: 000000002fefe000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_is_held include/linux/lockdep.h:249 [inline] __run_hrtimer kernel/time/hrtimer.c:1655 [inline] __hrtimer_run_queues+0x2d9/0xd50 kernel/time/hrtimer.c:1753 hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1815 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline] __sysvec_apic_timer_interrupt+0x110/0x3f0 arch/x86/kernel/apic/apic.c:1049 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x52/0xc0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:variable_ffs arch/x86/include/asm/bitops.h:321 [inline] RIP: 0010:handle_softirqs+0x1df/0x970 kernel/softirq.c:542 Code: 89 7c 24 70 0f b7 db 48 c7 c7 60 ca 09 8c e8 28 a9 5e 0a 65 66 c7 05 86 87 ac 7e 00 00 e8 79 8b 43 00 fb 49 c7 c4 c0 a0 60 8e ff ff ff ff 0f bc c3 41 89 c7 41 ff c7 0f 84 e6 03 00 00 89 5c RSP: 0018:ffffc90000a18e40 EFLAGS: 00000286 RAX: 15eb3771a2789000 RBX: 0000000000000286 RCX: ffffffff81702eca RDX: dffffc0000000000 RSI: ffffffff8c0ad560 RDI: ffffffff8c6060c0 RBP: ffffc90000a18f50 R08: ffffffff9372e82f R09: 1ffffffff26e5d05 R10: dffffc0000000000 R11: fffffbfff26e5d06 R12: ffffffff8e60a0c0 R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffff920001431dc __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu+0xf4/0x1c0 kernel/softirq.c:637 irq_exit_rcu+0x9/0x30 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:lock_acquire+0x264/0x550 kernel/locking/lockdep.c:5763 Code: 2b 00 74 08 4c 89 f7 e8 9a 00 8b 00 f6 44 24 61 02 0f 85 85 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25 RSP: 0018:ffffc9000453eb40 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff920008a7d74 RCX: 15eb3771a2789000 RDX: dffffc0000000000 RSI: ffffffff8c0ae6e0 RDI: ffffffff8c6060c0 RBP: ffffc9000453ec88 R08: ffffffff9372e937 R09: 1ffffffff26e5d26 R10: dffffc0000000000 R11: fffffbfff26e5d27 R12: 1ffff920008a7d70 R13: dffffc0000000000 R14: ffffc9000453eba0 R15: 0000000000000246 down_write+0x99/0x220 kernel/locking/rwsem.c:1579 crypto_larval_add crypto/api.c:138 [inline] crypto_larval_lookup crypto/api.c:296 [inline] crypto_alg_mod_lookup+0x338/0x720 crypto/api.c:331 crypto_find_alg crypto/api.c:580 [inline] crypto_alloc_tfm_node+0x130/0x360 crypto/api.c:617 drbg_init_hash_kernel+0x4d/0x220 crypto/drbg.c:1668 drbg_alloc_state crypto/drbg.c:1291 [inline] drbg_instantiate crypto/drbg.c:1585 [inline] drbg_kcapi_seed+0x832/0xfb0 crypto/drbg.c:1969 crypto_rng_reset crypto/rng.c:47 [inline] crypto_get_default_rng+0x159/0x200 crypto/rng.c:121 aead_init_geniv+0x63/0x260 crypto/geniv.c:118 crypto_create_tfm_node+0x167/0x3d0 crypto/api.c:522 crypto_alloc_tfm_node+0x161/0x360 crypto/api.c:623 esp_init_aead net/ipv4/esp4.c:1022 [inline] esp_init_state+0x387/0x10b0 net/ipv4/esp4.c:1149 __xfrm_init_state+0x9db/0xea0 net/xfrm/xfrm_state.c:2915 xfrm_state_construct net/xfrm/xfrm_user.c:840 [inline] xfrm_add_sa+0x2a76/0x3b50 net/xfrm/xfrm_user.c:898 xfrm_user_rcv_msg+0x75b/0xa80 net/xfrm/xfrm_user.c:3315 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2550 xfrm_netlink_rcv+0x79/0x90 net/xfrm/xfrm_user.c:3337 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x7f0/0x990 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2597 ___sys_sendmsg net/socket.c:2651 [inline] __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2680 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:0x7fe0d99779f9 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:00007fe0da7fd038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fe0d9b06058 RCX: 00007fe0d99779f9 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 000000000000000a RBP: 00007fe0d99e58ee R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe0d9b06058 R15: 00007fe0d9c2fa38 rcu: rcu_preempt kthread timer wakeup didn't happen for 10501 jiffies! g8213 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 rcu: Possible timer handling issue on cpu=1 timer-softirq=3470 rcu: rcu_preempt kthread starved for 10502 jiffies! g8213 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:I stack:25816 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5188 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6529 __schedule_loop kernel/sched/core.c:6606 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6621 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2581 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2034 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2236 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