rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...!: (1 GPs behind) idle=9e9c/1/0x4000000000000000 softirq=24396/24398 fqs=1 rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P8188/2:b..l rcu: (detected by 0, t=10505 jiffies, g=19597, q=809 ncpus=2) Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 8138 Comm: syz.6.489 Not tainted 6.13.0-rc4-syzkaller-00012-g9b2ffa6148b1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:mark_lock+0xa/0x360 kernel/locking/lockdep.c:4710 Code: 45 0a 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 41 57 41 56 41 55 41 54 53 <48> 83 ec 10 49 89 f7 48 89 3c 24 49 bd 00 00 00 00 00 fc ff df 83 RSP: 0018:ffffc90000a189d8 EFLAGS: 00000006 RAX: 00000000000c4994 RBX: 1ffff11005f79520 RCX: ffffffff817b274a RDX: 0000000000000008 RSI: ffff88802fbca8e0 RDI: ffff88802fbc9e00 RBP: ffff88802fbca8e0 R08: ffffffff942709b7 R09: 1ffffffff284e136 R10: dffffc0000000000 R11: fffffbfff284e137 R12: ffff88802fbca8c4 R13: ffff88802fbc9e00 R14: 0000000000000000 R15: ffff88802fbca900 FS: 00007f13e3f146c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020003c80 CR3: 00000000638c6000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: mark_usage kernel/locking/lockdep.c:4670 [inline] __lock_acquire+0xc3e/0x2100 kernel/locking/lockdep.c:5180 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] advance_sched+0xab/0xca0 net/sched/sch_taprio.c:924 __run_hrtimer kernel/time/hrtimer.c:1739 [inline] __hrtimer_run_queues+0x59b/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:futex_wait+0x3c/0x360 kernel/futex/waitwake.c:689 Code: 83 e4 e0 48 81 ec e0 00 00 00 44 89 44 24 08 48 89 4c 24 18 89 54 24 04 89 74 24 0c 48 89 7c 24 10 65 48 8b 04 25 28 00 00 00 <48> 89 84 24 c0 00 00 00 49 bc 00 00 00 00 00 fc ff df 4c 8d 6c 24 RSP: 0018:ffffc9000b707c00 EFLAGS: 00000286 RAX: 1d2ab89769ebe100 RBX: 1ffff920016e0fac RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 00007f13e3375fa8 RBP: ffffc9000b707d10 R08: 00000000ffffffff R09: ffffffff81924c02 R10: 000000000000000d R11: ffff88802fbc9e00 R12: 0000000000000000 R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000002 do_futex+0x33b/0x560 kernel/futex/syscalls.c:102 __do_sys_futex kernel/futex/syscalls.c:179 [inline] __se_sys_futex+0x3f9/0x480 kernel/futex/syscalls.c:160 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:0x7f13e3185d29 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:00007f13e3f140e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: ffffffffffffffda RBX: 00007f13e3375fa8 RCX: 00007f13e3185d29 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f13e3375fa8 RBP: 00007f13e3375fa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f13e3375fac R13: 0000000000000000 R14: 00007ffe625f8690 R15: 00007ffe625f8778 task:syz.1.499 state:R running task stack:27360 pid:8188 tgid:8187 ppid:5826 flags:0x00000000 Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0x17fb/0x4be0 kernel/sched/core.c:6756 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7078 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:percpu_ref_tryget_many include/linux/percpu-refcount.h:244 [inline] RIP: 0010:percpu_ref_tryget+0xa3/0x180 include/linux/percpu-refcount.h:266 Code: bf 00 00 00 00 00 fc ff df 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 58 5c f7 ff 48 8b 03 a8 03 75 69 65 48 ff 00 01 e8 26 dd b4 09 85 c0 74 3a e8 bd 1a 79 ff 84 c0 75 31 e8 14 RSP: 0018:ffffc9000c85f660 EFLAGS: 00000286 RAX: 0000607f47623258 RBX: ffff88802981a010 RCX: ffff888026bc0000 RDX: dffffc0000000000 RSI: ffffffff8c5edcc0 RDI: ffffffff8c5edc80 RBP: 1ffffffff20310a0 R08: ffffffff94270887 R09: 1ffffffff284e110 R10: dffffc0000000000 R11: fffffbfff284e111 R12: ffff88802981a000 R13: dffffc0000000000 R14: ffffffff820bf3a4 R15: dffffc0000000000 css_tryget include/linux/cgroup_refcnt.h:45 [inline] get_mem_cgroup_from_objcg+0x108/0x1d0 include/linux/memcontrol.h:501 obj_cgroup_charge_pages+0x81/0x230 mm/memcontrol.c:2644 obj_cgroup_charge+0x380/0x5d0 mm/memcontrol.c:2937 __memcg_slab_post_alloc_hook+0x1b1/0x7e0 mm/memcontrol.c:2998 memcg_slab_post_alloc_hook mm/slub.c:2152 [inline] slab_post_alloc_hook mm/slub.c:4129 [inline] slab_alloc_node mm/slub.c:4168 [inline] __do_kmalloc_node mm/slub.c:4297 [inline] __kmalloc_node_noprof+0x30d/0x4d0 mm/slub.c:4304 __kvmalloc_node_noprof+0x72/0x190 mm/util.c:650 xt_alloc_table_info+0x3d/0xa0 net/netfilter/x_tables.c:1193 do_replace net/ipv6/netfilter/ip6_tables.c:1143 [inline] do_ip6t_set_ctl+0xba0/0x1270 net/ipv6/netfilter/ip6_tables.c:1644 nf_setsockopt+0x295/0x2c0 net/netfilter/nf_sockopt.c:101 rawv6_setsockopt+0x327/0x740 net/ipv6/raw.c:1054 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:0x7f74e5185d29 RSP: 002b:00007f74e4ff9038 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f74e5375fa0 RCX: 00007f74e5185d29 RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003 RBP: 00007f74e5201aa8 R08: 0000000000000488 R09: 0000000000000000 R10: 0000000020000b00 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f74e5375fa0 R15: 00007ffd3c959b78 rcu: rcu_preempt kthread starved for 10495 jiffies! g19597 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:25784 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: 0 UID: 0 PID: 6514 Comm: kworker/u8:21 Not tainted 6.13.0-rc4-syzkaller-00012-g9b2ffa6148b1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:ffffc9000c6f76e0 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 1ffff110170e88b9 RCX: ffff8880273ada00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc9000c6f78e0 R08: ffffffff81938eca R09: 1ffffffff284e110 R10: dffffc0000000000 R11: fffffbfff284e111 R12: dffffc0000000000 R13: ffff8880b87445c8 R14: ffff8880b863f940 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6c789452d8 CR3: 000000000e736000 CR4: 00000000003526f0 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