rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P5492/1:b..l (detected by 0, t=10502 jiffies, g=13625, q=78) task:syz-executor.4 state:R running task stack:26528 pid: 5492 ppid: 4998 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5027 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6373 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6777 irqentry_exit+0x53/0x80 kernel/entry/common.c:432 asm_sysvec_reschedule_ipi+0x16/0x20 arch/x86/include/asm/idtentry.h:681 RIP: 0010:native_irq_disable arch/x86/include/asm/irqflags.h:40 [inline] RIP: 0010:arch_local_irq_disable arch/x86/include/asm/irqflags.h:75 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:107 [inline] RIP: 0010:lock_is_held_type+0x69/0x180 kernel/locking/lockdep.c:5662 Code: 8b 2d 4b 2e ce 75 41 83 bd ec 0a 00 00 00 0f 85 db 00 00 00 41 89 f6 49 89 ff 48 c7 04 24 00 00 00 00 9c 8f 04 24 4c 8b 24 24 48 c7 c7 80 38 8b 8a e8 0a 12 00 00 65 ff 05 53 37 ce 75 41 83 RSP: 0018:ffffc90003067a98 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 1ffff9200060cf5c RCX: 0000000080000000 RDX: dffffc0000000000 RSI: 00000000ffffffff RDI: ffffffff8c91fbe0 RBP: 00000000ffffffff R08: dffffc0000000000 R09: fffffbfff20ec621 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000246 R13: ffff88802625bb80 R14: 00000000ffffffff R15: ffffffff8c91fbe0 lock_is_held include/linux/lockdep.h:287 [inline] rcu_read_lock_sched_held+0x89/0x130 kernel/rcu/update.c:125 task_css include/linux/cgroup.h:496 [inline] mem_cgroup_from_task+0x49/0x110 mm/memcontrol.c:935 get_obj_cgroup_from_current+0x148/0x2f0 mm/memcontrol.c:2923 memcg_slab_pre_alloc_hook mm/slab.h:283 [inline] slab_pre_alloc_hook+0x87/0xc0 mm/slab.h:497 slab_alloc_node mm/slub.c:3134 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x3f/0x280 mm/slub.c:3233 vm_area_dup+0x1e/0xb0 kernel/fork.c:357 __split_vma+0xb4/0x4a0 mm/mmap.c:2729 mprotect_fixup+0x675/0x7d0 mm/mprotect.c:477 do_mprotect_pkey+0x75b/0xa50 mm/mprotect.c:636 __do_sys_mprotect mm/mprotect.c:662 [inline] __se_sys_mprotect mm/mprotect.c:659 [inline] __x64_sys_mprotect+0x7c/0x90 mm/mprotect.c:659 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7ffbe4b1c167 RSP: 002b:00007ffeeaafc978 EFLAGS: 00000206 ORIG_RAX: 000000000000000a RAX: ffffffffffffffda RBX: 00007ffbe3e9d6c0 RCX: 00007ffbe4b1c167 RDX: 0000000000000003 RSI: 0000000000020000 RDI: 00007ffbe3e7e000 RBP: 0000000000000000 R08: 00000000ffffffff R09: 0000000000000000 R10: 0000000000021000 R11: 0000000000000206 R12: 00007ffeeaafcbd0 R13: ffffffffffffffc0 R14: 0000000000001000 R15: 0000000000000000 rcu: rcu_preempt kthread starved for 10532 jiffies! g13625 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:27064 pid: 15 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5027 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6373 schedule+0x11b/0x1f0 kernel/sched/core.c:6456 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1914 rcu_gp_fqs_loop+0x2bf/0x1080 kernel/rcu/tree.c:1972 rcu_gp_kthread+0xa4/0x360 kernel/rcu/tree.c:2145 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 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: 5494 Comm: syz-executor.3 Not tainted 5.15.171-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:arch_static_branch arch/x86/include/asm/jump_label.h:27 [inline] RIP: 0010:static_key_false include/linux/jump_label.h:212 [inline] RIP: 0010:native_write_msr arch/x86/include/asm/msr.h:156 [inline] RIP: 0010:wrmsr arch/x86/include/asm/msr.h:263 [inline] RIP: 0010:native_apic_msr_write+0x35/0x50 arch/x86/include/asm/apic.h:208 Code: 74 2a 83 ff 30 74 25 eb 10 81 ff d0 00 00 00 74 1b 81 ff e0 00 00 00 74 13 c1 ef 04 81 c7 00 08 00 00 89 f9 89 f0 31 d2 0f 30 <66> 90 c3 89 f6 31 d2 e9 ff 1b f4 02 66 2e 0f 1f 84 00 00 00 00 00 RSP: 0018:ffffc90002d878c0 EFLAGS: 00000046 RAX: 000000000000003e RBX: ffffffff8c3b59c8 RCX: 0000000000000838 RDX: 0000000000000000 RSI: 000000000000003e RDI: 0000000000000838 RBP: 0000000000000020 R08: ffffffff817280b8 R09: fffffbfff1bd2cd6 R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000003e R13: dffffc0000000000 R14: 000000000000003e R15: dffffc0000000000 FS: 00007f2f5ebde6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2f5ebddd80 CR3: 000000007c6cd000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: apic_write arch/x86/include/asm/apic.h:395 [inline] lapic_next_event+0x5b/0x70 arch/x86/kernel/apic/apic.c:468 clockevents_program_min_delta+0x1ae/0x410 kernel/time/clockevents.c:248 hrtimer_start_range_ns+0xada/0xc80 kernel/time/hrtimer.c:1302 posixtimer_rearm+0x1ad/0x3f0 kernel/time/posix-timers.c:328 dequeue_signal+0x1ed/0x520 kernel/signal.c:696 get_signal+0x52e/0x14e0 kernel/signal.c:2781 arch_do_signal_or_restart+0xc3/0x1890 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0x97/0x130 kernel/entry/common.c:178 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x5d/0x240 kernel/entry/common.c:307 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f2f5f85d0a7 Code: 14 25 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 RSP: 002b:00007f2f5ebde178 EFLAGS: 00000246 RAX: 00000000000000ca RBX: 00007f2f5f993f88 RCX: 00007f2f5f85d0a9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f2f5f993f88 RBP: 00007f2f5f993f80 R08: 00007f2f5ebde6c0 R09: 00007f2f5ebde6c0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f2f5f993f8c R13: 000000000000000b R14: 00007ffc45ff3550 R15: 00007ffc45ff3638 sched: RT throttling activated