rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 0-...!: (0 ticks this GP) idle=f86c/1/0x4000000000000000 softirq=28365/28365 fqs=1 rcu: (detected by 1, t=10502 jiffies, g=34149, q=218 ncpus=2) Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 8976 Comm: syz.2.1096 Not tainted 6.10.0-syzkaller-11185-g2c9b3512402e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 RIP: 0010:rb_red_parent lib/rbtree.c:66 [inline] RIP: 0010:__rb_insert lib/rbtree.c:88 [inline] RIP: 0010:rb_insert_color+0x29/0x690 lib/rbtree.c:436 Code: 90 f3 0f 1e fa 55 41 57 41 56 41 55 41 54 53 48 83 ec 38 49 89 f7 48 89 fd 48 bb 00 00 00 00 00 fc ff df 48 89 f8 48 c1 e8 03 <80> 3c 18 00 74 08 48 89 ef e8 e9 c8 76 f6 48 89 6c 24 08 4c 8b 75 RSP: 0018:ffffc90000007c50 EFLAGS: 00000802 RAX: 1ffff1100f9e5468 RBX: dffffc0000000000 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: ffff8880b942c9d0 RDI: ffff88807cf2a340 RBP: ffff88807cf2a340 R08: ffff88807cf2a357 R09: 0000000000000000 R10: ffff88807cf2a340 R11: ffffed100f9e546b R12: ffff8880b942c9d0 R13: ffff8880b942c9d0 R14: 0000000000000000 R15: ffff8880b942c9d0 FS: 00005555942e3500(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fab21c0bfa8 CR3: 000000001c3e4000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000000e DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: rb_insert_color_cached include/linux/rbtree.h:114 [inline] rb_add_cached include/linux/rbtree.h:183 [inline] timerqueue_add+0x260/0x290 lib/timerqueue.c:40 enqueue_hrtimer+0x1b2/0x3c0 kernel/time/hrtimer.c:1093 __run_hrtimer kernel/time/hrtimer.c:1706 [inline] __hrtimer_run_queues+0x6cb/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+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1043 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 ee 66 64 f6 f6 44 24 21 02 75 52 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 33 cf d0 f5 65 8b 05 14 04 72 74 85 c0 74 43 48 c7 04 24 0e 36 RSP: 0018:ffffc9000c147b80 EFLAGS: 00000206 RAX: 74ce64a265bad600 RBX: 1ffff92001828f74 RCX: ffffffff947c8703 RDX: dffffc0000000000 RSI: ffffffff8bcacd20 RDI: 0000000000000001 RBP: ffffc9000c147c10 R08: ffffffff8fae89af R09: 1ffffffff1f5d135 R10: dffffc0000000000 R11: fffffbfff1f5d136 R12: dffffc0000000000 R13: 1ffff92001828f70 R14: ffffc9000c147ba0 R15: 0000000000000246 __debug_check_no_obj_freed lib/debugobjects.c:999 [inline] debug_check_no_obj_freed+0x561/0x580 lib/debugobjects.c:1020 slab_free_hook mm/slub.c:2202 [inline] slab_free mm/slub.c:4464 [inline] kmem_cache_free+0x10f/0x350 mm/slub.c:4539 file_free+0x24/0x1f0 fs/file_table.c:65 task_work_run+0x24f/0x310 kernel/task_work.c:222 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x168/0x370 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0331375b59 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:00007ffc9e76b5a8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 000000000004c4fa RCX: 00007f0331375b59 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: ffffffffffffffff R08: 0000000000000001 R09: 000000029e76b8cf R10: 00007f0331200000 R11: 0000000000000246 R12: 00007f0331505f6c R13: 0000000000000032 R14: 00007f0331507a60 R15: 00007f0331505f60 rcu: rcu_preempt kthread starved for 10495 jiffies! g34149 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:26456 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5188 [inline] __schedule+0x17ae/0x4a10 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 rcu: Stack dump where RCU GP kthread last ran: CPU: 1 PID: 5278 Comm: kworker/u8:16 Not tainted 6.10.0-syzkaller-11185-g2c9b3512402e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:312 [inline] RIP: 0010:smp_call_function_many_cond+0x1860/0x29d0 kernel/smp.c:856 Code: 45 8b 65 00 44 89 e6 83 e6 01 31 ff e8 89 14 0c 00 41 83 e4 01 49 bc 00 00 00 00 00 fc ff df 75 07 e8 34 10 0c 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 18 10 RSP: 0018:ffffc90004537700 EFLAGS: 00000293 RAX: ffffffff818732a8 RBX: 1ffff11017288c29 RCX: ffff888028a93c00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc900045378e0 R08: ffffffff81873277 R09: 1ffffffff25fa0c0 R10: dffffc0000000000 R11: fffffbfff25fa0c1 R12: dffffc0000000000 R13: ffff8880b9446148 R14: ffff8880b953f980 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d611ff8 CR3: 000000000e134000 CR4: 00000000003506f0 Call Trace: on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1023 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:2085 [inline] text_poke_bp_batch+0x352/0xb30 arch/x86/kernel/alternative.c:2295 text_poke_flush arch/x86/kernel/alternative.c:2486 [inline] text_poke_finish+0x30/0x50 arch/x86/kernel/alternative.c:2493 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+0xb5/0x250 mm/kfence/core.c:826 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3312 worker_thread+0x86d/0xd40 kernel/workqueue.c:3390 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