rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P3548/1:b..l (detected by 0, t=10502 jiffies, g=8925, q=75 ncpus=2) task:syz-executor.0 state:R running task stack:20080 pid:3548 ppid:3539 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5241 [inline] __schedule+0x132c/0x4330 kernel/sched/core.c:6554 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6866 irqentry_exit+0x53/0x80 kernel/entry/common.c:433 asm_sysvec_reschedule_ipi+0x16/0x20 arch/x86/include/asm/idtentry.h:654 RIP: 0010:rcu_dynticks_curr_cpu_in_eqs include/linux/context_tracking.h:122 [inline] RIP: 0010:rcu_is_watching+0x65/0xb0 kernel/rcu/tree.c:720 Code: e8 10 a7 6d 00 48 c7 c3 a8 4a 03 00 49 03 1e 48 89 d8 48 c1 e8 03 42 0f b6 04 38 84 c0 75 1e 8b 03 65 ff 0d 05 82 8f 7e 74 0c <83> e0 04 c1 e8 02 5b 41 5e 41 5f c3 e8 92 a0 8d ff eb ed 89 d9 80 RSP: 0000:ffffc9000478f700 EFLAGS: 00000286 RAX: 000000000013d0dc RBX: ffff8880b9934aa8 RCX: ffffffff8169ed5b RDX: 0000000000000000 RSI: ffffffff8b3ceac0 RDI: ffffffff8b3cea80 RBP: ffffc9000478f878 R08: dffffc0000000000 R09: fffffbfff1ce7076 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920008f1eec R13: dffffc0000000000 R14: ffffffff8cb90858 R15: dffffc0000000000 trace_lock_acquire include/trace/events/lock.h:24 [inline] lock_acquire+0xfa/0x5a0 kernel/locking/lockdep.c:5640 rcu_lock_acquire+0x20/0x30 include/linux/rcupdate.h:306 rcu_read_lock include/linux/rcupdate.h:747 [inline] percpu_ref_get_many include/linux/percpu-refcount.h:202 [inline] percpu_ref_get include/linux/percpu-refcount.h:222 [inline] obj_cgroup_get include/linux/memcontrol.h:779 [inline] memcg_slab_post_alloc_hook mm/slab.h:535 [inline] slab_post_alloc_hook+0x19f/0x370 mm/slab.h:745 slab_alloc_node mm/slub.c:3398 [inline] __kmem_cache_alloc_node+0x137/0x260 mm/slub.c:3437 __do_kmalloc_node mm/slab_common.c:954 [inline] __kmalloc_node+0xa2/0x230 mm/slab_common.c:962 kmalloc_node include/linux/slab.h:579 [inline] kvmalloc_node+0x6e/0x180 mm/util.c:581 kvmalloc include/linux/slab.h:706 [inline] xt_alloc_table_info+0x39/0xa0 net/netfilter/x_tables.c:1192 do_replace net/ipv6/netfilter/ip6_tables.c:1141 [inline] do_ip6t_set_ctl+0xac8/0x3f50 net/ipv6/netfilter/ip6_tables.c:1638 nf_setsockopt+0x28a/0x2b0 net/netfilter/nf_sockopt.c:101 __sys_setsockopt+0x57e/0xa00 net/socket.c:2252 __do_sys_setsockopt net/socket.c:2263 [inline] __se_sys_setsockopt net/socket.c:2260 [inline] __x64_sys_setsockopt+0xb1/0xc0 net/socket.c:2260 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fbd52c7e83a RSP: 002b:00007ffd4f38efd8 EFLAGS: 00000206 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007ffd4f38f060 RCX: 00007fbd52c7e83a RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003 RBP: 0000000000000003 R08: 00000000000002e8 R09: 0079746972756365 R10: 00007fbd52d77fe0 R11: 0000000000000206 R12: 00007fbd52d77f80 R13: 00007ffd4f38effc R14: 0000000000000000 R15: 00007fbd52d78d00 rcu: rcu_preempt kthread starved for 10535 jiffies! g8925 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:26712 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5241 [inline] __schedule+0x132c/0x4330 kernel/sched/core.c:6554 schedule+0xbf/0x180 kernel/sched/core.c:6630 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1935 rcu_gp_fqs_loop+0x2c2/0x1010 kernel/rcu/tree.c:1661 rcu_gp_kthread+0xa3/0x3a0 kernel/rcu/tree.c:1860 kthread+0x26e/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 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: 3768 Comm: syz-executor.3 Not tainted 6.1.47-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:this_cpu_pvti arch/x86/include/asm/kvmclock.h:13 [inline] RIP: 0010:kvm_clock_read arch/x86/kernel/kvmclock.c:79 [inline] RIP: 0010:kvm_sched_clock_read+0x7/0x40 arch/x86/kernel/kvmclock.c:91 Code: 52 e9 8a 89 c2 48 89 d9 49 c7 c0 60 53 e9 8a 5b e9 4e 1b 20 03 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 65 ff 05 81 5c c6 7e <65> 48 8b 3d 01 61 c6 7e e8 8c 05 00 00 65 ff 0d 6d 5c c6 7e 74 08 RSP: 0018:ffffc900001e0e18 EFLAGS: 00000082 RAX: f3f3f300f1f1f1f1 RBX: ffffffff8cb90858 RCX: ffffffff8139de41 RDX: 0000000000000000 RSI: ffffffff8b3ceac0 RDI: 0000000000000001 RBP: ffffc900001e0ef0 R08: dffffc0000000000 R09: fffffbfff1ce7076 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc900001e0e80 R13: dffffc0000000000 R14: 1ffff9200003c1cc R15: 0000000000000000 FS: 00007f654c5186c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f654a1ddd58 CR3: 000000007a99c000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: sched_clock_cpu+0x71/0x2b0 kernel/sched/clock.c:369 irqtime_account_irq+0x70/0x1e0 kernel/sched/cputime.c:60 account_hardirq_exit include/linux/vtime.h:159 [inline] __irq_exit_rcu+0xb8/0x240 kernel/softirq.c:647 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline] RIP: 0010:_raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:202 Code: 81 14 f6 ff 90 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 ee 21 db f6 48 89 df e8 06 5f dc f6 e8 01 c2 01 f7 fb bf 01 00 00 00 86 13 cf f6 65 8b 05 47 7e 73 75 85 c0 74 02 5b c3 e8 c4 9c 71 RSP: 0018:ffffc900051ffb30 EFLAGS: 00000286 RAX: b4b13519c03b0200 RBX: ffff8880729b4a00 RCX: ffffffff91c92103 RDX: dffffc0000000000 RSI: ffffffff8aebe220 RDI: 0000000000000001 RBP: ffffc900051ffc70 R08: dffffc0000000000 R09: ffffed100e536941 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100e5369d3 R13: 000000001c000004 R14: 0000000000000021 R15: ffff8880729b4e98 spin_unlock_irq include/linux/spinlock.h:400 [inline] get_signal+0x154b/0x17d0 kernel/signal.c:2865 arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f654b87cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f654c5180c8 EFLAGS: 00000246 RAX: 000000000000000b RBX: 00007f654b99bf80 RCX: 00007f654b87cae9 RDX: 0000000000000318 RSI: 00000000200bd000 RDI: 0000000000000005 RBP: 00007f654b8c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f654b99bf80 R15: 00007ffdacbb3e88 sched: RT throttling activated