rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P4173/1:b..l (detected by 1, t=10502 jiffies, g=9981, q=124 ncpus=2) task:rm state:R running task stack:23880 pid:4173 ppid:4154 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6561 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6873 irqentry_exit+0x53/0x80 kernel/entry/common.c:439 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:173 [inline] RIP: 0010:write_comp_data kernel/kcov.c:236 [inline] RIP: 0010:__sanitizer_cov_trace_switch+0x5d/0xe0 kernel/kcov.c:340 Code: 92 00 00 00 4c 8b 04 c5 d8 0a 10 8b 4c 8b 4c 24 20 65 4c 8b 1d 04 cf 77 7e 31 d2 eb 08 48 ff c2 49 39 d2 74 71 4c 8b 74 d6 10 <65> 8b 05 f4 ce 77 7e a9 00 01 ff 00 74 11 a9 00 01 00 00 74 de 41 RSP: 0018:ffffc9000330f7f8 EFLAGS: 00000202 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 000000000000008b RDX: 0000000000000001 RSI: ffffffff8e82bd70 RDI: 0000000000000001 RBP: ffffc9000330fa10 R08: 0000000000000005 R09: ffffffff8a9ba886 R10: 0000000000000003 R11: ffff888058d90000 R12: 1ffff11008b26a00 R13: ffff888045935008 R14: 0000000000000002 R15: 0000000000000001 mas_data_end lib/maple_tree.c:1483 [inline] mt_validate+0xe86/0x5ad0 lib/maple_tree.c:7227 validate_mm_mt+0x165/0x670 mm/mmap.c:295 __split_vma+0x32/0x530 mm/mmap.c:2344 mprotect_fixup+0x753/0x840 mm/mprotect.c:623 do_mprotect_pkey+0x8b6/0xbe0 mm/mprotect.c:792 __do_sys_mprotect mm/mprotect.c:819 [inline] __se_sys_mprotect mm/mprotect.c:816 [inline] __x64_sys_mprotect+0x7c/0x90 mm/mprotect.c:816 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fb695a67bb7 RSP: 002b:00007ffd41131318 EFLAGS: 00000206 ORIG_RAX: 000000000000000a RAX: ffffffffffffffda RBX: 00007fb695a4afc0 RCX: 00007fb695a67bb7 RDX: 0000000000000001 RSI: 0000000000001000 RDI: 00007fb6957c2000 RBP: 00007ffd41131430 R08: 00007ffd411312a8 R09: 00007fb695a4a5c0 R10: 00007fb6957a1168 R11: 0000000000000206 R12: 00007fb695a4afc0 R13: 00007fb695a6feda R14: 00007fb6957c2f40 R15: 00007fb6957c2740 rcu: rcu_preempt kthread starved for 10366 jiffies! g9981 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:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6561 schedule+0xbf/0x180 kernel/sched/core.c:6637 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1965 rcu_gp_fqs_loop+0x2d2/0x1150 kernel/rcu/tree.c:1706 rcu_gp_kthread+0xa3/0x3b0 kernel/rcu/tree.c:1905 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 rcu: Stack dump where RCU GP kthread last ran: CPU: 1 PID: 4172 Comm: syz.1.98 Not tainted 6.1.102-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 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: a1 9d f5 ff 90 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 9e 55 bb f6 48 89 df e8 06 93 bc f6 e8 91 21 e2 f6 fb bf 01 00 00 00 56 26 af f6 65 8b 05 77 32 53 75 85 c0 74 02 5b c3 e8 24 56 51 RSP: 0018:ffffc9000323fb30 EFLAGS: 00000286 RAX: 1cedd067d599f000 RBX: ffff8880780240c0 RCX: ffffffff91f31103 RDX: dffffc0000000000 RSI: ffffffff8b0c0240 RDI: 0000000000000001 RBP: ffffc9000323fc70 R08: dffffc0000000000 R09: ffffed100f004819 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100f0048ab R13: 000000001c000004 R14: 0000000000000021 R15: ffff888078024558 FS: 00007fd8a61716c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbb356aefb1 CR3: 0000000072c37000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: spin_unlock_irq include/linux/spinlock.h:401 [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:174 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fd8a5377297 Code: ff ff 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 RSP: 002b:00007fd8a6171048 EFLAGS: 00000246 RAX: 00000000000000ca RBX: 00007fd8a5505f80 RCX: 00007fd8a5377299 RDX: 0000000000000000 RSI: 0000800000000006 RDI: 0000000020001300 RBP: 00007fd8a53e48e6 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fd8a5505f80 R15: 00007ffef12daa38