rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P5072/1:b..l rcu: (detected by 1, t=10502 jiffies, g=54269, q=397 ncpus=2) task:syz-fuzzer state:R running task stack:21952 pid:5072 tgid:5071 ppid:5069 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x1796/0x49d0 kernel/sched/core.c:6745 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7067 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:constant_test_bit arch/x86/include/asm/bitops.h:206 [inline] RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:238 [inline] RIP: 0010:tif_need_resched include/linux/thread_info.h:184 [inline] RIP: 0010:need_resched include/linux/sched.h:2110 [inline] RIP: 0010:preempt_schedule_common+0x11/0xd0 kernel/sched/core.c:6932 Code: ff 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 41 57 41 56 53 49 bf 00 00 00 00 00 fc ff df eb 0d <48> f7 03 08 00 00 00 0f 84 9c 00 00 00 65 ff 05 43 7d 7d 74 65 8b RSP: 0018:ffffc90003297380 EFLAGS: 00000246 RAX: 1ffff110046f0000 RBX: ffff888023780000 RCX: 1ffff92000652e4c RDX: dffffc0000000000 RSI: ffffffff8bcabb80 RDI: ffff8880237815f8 RBP: ffffc90003297428 R08: ffffffff92f715b7 R09: 1ffffffff25ee2b6 R10: dffffc0000000000 R11: fffffbfff25ee2b7 R12: 1ffff92000652e78 R13: dffffc0000000000 R14: ffffffff8b865701 R15: dffffc0000000000 preempt_schedule+0xe1/0xf0 kernel/sched/core.c:6948 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk.S:12 __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline] _raw_spin_unlock+0x3e/0x50 kernel/locking/spinlock.c:186 spin_unlock include/linux/spinlock.h:391 [inline] change_pte_range mm/mprotect.c:290 [inline] change_pmd_range mm/mprotect.c:424 [inline] change_pud_range mm/mprotect.c:457 [inline] change_p4d_range mm/mprotect.c:480 [inline] change_protection_range mm/mprotect.c:508 [inline] change_protection+0x305b/0x3d40 mm/mprotect.c:542 change_prot_numa+0xd1/0x150 mm/mempolicy.c:678 task_numa_work+0xe8f/0x13f0 kernel/sched/fair.c:3375 task_work_run+0x24f/0x310 kernel/task_work.c:180 get_signal+0x15e6/0x1740 kernel/signal.c:2681 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xc9/0x370 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x472f37 RSP: 002b:000000c00006bf18 EFLAGS: 00000202 ORIG_RAX: 0000000000000023 RAX: fffffffffffffdfc RBX: 0000000000002710 RCX: 0000000000472f37 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000c00006bf18 RBP: 000000c00006bf28 R08: 000000001c0136d7 R09: 7fffffffffffffff R10: 00007fcae473a0b8 R11: 0000000000000202 R12: 000000c00006bf18 R13: 000000c0000e4400 R14: 000000c0000064e0 R15: 0000000000000007 rcu: rcu_preempt kthread starved for 10540 jiffies! g54269 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:26448 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x1796/0x49d0 kernel/sched/core.c:6745 __schedule_loop kernel/sched/core.c:6822 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6837 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2581 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2000 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2202 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: 1 PID: 2595 Comm: kworker/1:1H Not tainted 6.10.0-rc4-syzkaller-00330-g7c16f0a4ed1c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Workqueue: 0x0 (kblockd) RIP: 0010:finish_task_switch+0x1ea/0x870 kernel/sched/core.c:5282 Code: c9 50 e8 99 c9 0b 00 48 83 c4 08 4c 89 f7 e8 cd 38 00 00 0f 1f 44 00 00 4c 89 f7 e8 d0 50 21 0a e8 fb ed 36 00 fb 48 8b 5d c0 <48> 8d bb f8 15 00 00 48 89 f8 48 c1 e8 03 49 be 00 00 00 00 00 fc RSP: 0018:ffffc9000973f9a8 EFLAGS: 00000286 RAX: 65822d8ba4a70000 RBX: ffff88802a28bc00 RCX: ffffffff94769603 RDX: dffffc0000000000 RSI: ffffffff8bcabb80 RDI: ffffffff8c1f17c0 RBP: ffffc9000973f9f0 R08: ffffffff8fac212f R09: 1ffffffff1f58425 R10: dffffc0000000000 R11: fffffbfff1f58426 R12: 1ffff110172a7e97 R13: dffffc0000000000 R14: ffff8880b953e740 R15: ffff8880b953f4b8 FS: 0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3654fafe78 CR3: 000000007e04e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: context_switch kernel/sched/core.c:5411 [inline] __schedule+0x179e/0x49d0 kernel/sched/core.c:6745 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7067 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:preempt_count_add+0x127/0x190 kernel/sched/core.c:5865 Code: c7 c7 80 47 ca 8b 48 c7 c6 c0 47 ca 8b e8 e1 ba f2 ff 90 0f 0b 90 90 90 e9 5c ff ff ff 48 c7 c1 e0 96 76 94 80 e1 07 80 c1 03 <38> c1 0f 8c fe fe ff ff 48 c7 c7 e0 96 76 94 e8 f5 ed 92 00 e9 ed RSP: 0018:ffffc9000973fd78 EFLAGS: 00000206 RAX: 0000000000000004 RBX: 0000000000000001 RCX: ffffffff94769603 RDX: dffffc0000000000 RSI: ffffffff8bcabb80 RDI: 0000000000000001 RBP: ffff88802a28bc00 R08: ffffffff8fac212f R09: 1ffffffff1f58425 R10: dffffc0000000000 R11: fffffbfff1f58426 R12: dffffc0000000000 R13: ffff8880b953e2e0 R14: ffffffff8b8652a0 R15: dffffc0000000000 __schedule_loop kernel/sched/core.c:6821 [inline] schedule+0x144/0x320 kernel/sched/core.c:6837 worker_thread+0xa2c/0xd70 kernel/workqueue.c:3408 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