rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P9517/1:b..l (detected by 1, t=10502 jiffies, g=54561, q=103 ncpus=2) task:rm state:R running task stack:24232 pid:9517 ppid:9493 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5241 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6558 preempt_schedule_notrace+0xf8/0x140 kernel/sched/core.c:6820 preempt_schedule_notrace_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:35 rcu_is_watching+0x76/0xb0 kernel/rcu/tree.c:722 rcu_read_unlock include/linux/rcupdate.h:820 [inline] do_mas_align_munmap+0xc6c/0x15f0 mm/mmap.c:2558 do_mas_munmap+0x246/0x2b0 mm/mmap.c:2640 mmap_region+0x8e6/0x1fa0 mm/mmap.c:2688 do_mmap+0x8c5/0xf60 mm/mmap.c:1425 vm_mmap_pgoff+0x1ca/0x2d0 mm/util.c:520 ksys_mmap_pgoff+0x4f5/0x6d0 mm/mmap.c:1471 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:0x7f3c361b0b74 RSP: 002b:00007ffec6d110e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007ffec6d11160 RCX: 00007f3c361b0b74 RDX: 0000000000000001 RSI: 0000000000028000 RDI: 00007f3c36167000 RBP: 00007ffec6d11450 R08: 0000000000000003 R09: 0000000000097000 R10: 0000000000000812 R11: 0000000000000246 R12: 00007f3c361930c0 R13: 00007ffec6d114d8 R14: 0000000000096066 R15: 0000000000000000 rcu: rcu_preempt kthread starved for 10528 jiffies! g54561 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:25528 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5241 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6558 schedule+0xbf/0x180 kernel/sched/core.c:6634 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: Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 9509 Comm: syz.2.1376 Not tainted 6.1.103-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 RIP: 0010:mark_lock+0x15/0x340 kernel/locking/lockdep.c:4589 Code: ff ff e8 1e 3c 3a 09 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 fa 08 75 27 49 8d 5f 20 48 89 d8 RSP: 0018:ffffc900000078b8 EFLAGS: 00000086 RAX: 0000000000000001 RBX: ffffffff904312d8 RCX: 00000000000c40a1 RDX: 0000000000000000 RSI: ffff888065b10b58 RDI: ffff888065b10000 RBP: ffff888065b10b58 R08: dffffc0000000000 R09: fffffbfff20e7245 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888065b10ad8 R13: ffff888065b10000 R14: ffff888065b10b78 R15: ffff888065b10b58 FS: 0000555556a9b500(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002006b000 CR3: 000000006635c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: mark_usage kernel/locking/lockdep.c:4520 [inline] __lock_acquire+0xb40/0x1f80 kernel/locking/lockdep.c:5003 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 __lock_task_sighand+0x145/0x2d0 kernel/signal.c:1410 lock_task_sighand include/linux/sched/signal.h:745 [inline] send_sigqueue+0x1de/0x720 kernel/signal.c:1978 posix_timer_event kernel/time/posix-timers.c:354 [inline] posix_timer_fn+0x186/0x390 kernel/time/posix-timers.c:380 __run_hrtimer kernel/time/hrtimer.c:1686 [inline] __hrtimer_run_queues+0x5e5/0xe50 kernel/time/hrtimer.c:1750 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 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 6e 1a bb f6 48 89 df e8 d6 57 bc f6 e8 c1 e5 e1 f6 fb bf 01 00 00 00 c6 e8 ae f6 65 8b 05 67 f1 52 75 85 c0 74 02 5b c3 e8 14 15 51 RSP: 0018:ffffc90003a1fb30 EFLAGS: 00000286 RAX: 06885e6ad9fe5500 RBX: ffff88805a549280 RCX: ffffffff91f31103 RDX: dffffc0000000000 RSI: ffffffff8b0c0260 RDI: 0000000000000001 RBP: ffffc90003a1fc70 R08: dffffc0000000000 R09: ffffed100b4a9251 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100b4a92e3 R13: 000000001c000004 R14: 0000000000000021 R15: ffff88805a549718 spin_unlock_irq include/linux/spinlock.h:401 [inline] get_signal+0x154b/0x17d0 kernel/signal.c:2873 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:0x7f79ac64f230 Code: 66 2e 0f 1f 84 00 00 00 00 00 48 8b 70 f8 48 83 e8 08 48 39 f2 72 f3 48 39 c3 73 3e 48 89 33 48 83 c3 08 48 8b 70 f8 48 89 08 <48> 8b 0b 49 8b 14 24 eb bf 48 39 f2 72 97 48 39 f0 73 46 49 89 34 RSP: 002b:00007ffec4821960 EFLAGS: 00000206 RAX: 00007f79abbfd978 RBX: 00007f79abbfd078 RCX: ffffffff818858e6 RDX: ffffffff81873d10 RSI: ffffffff81875b74 RDI: 00007f79abbfd9c0 RBP: 00007f79abbfd010 R08: 00007f79abbfd4e0 R09: 00007f79ac8f2000 R10: 000000008132bfbe R11: 0000000000000019 R12: 00007f79abbfd008 R13: 0000000000000012 R14: 00007f79abbfd008 R15: 0000000000076571