rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...!: (1 GPs behind) idle=077/1/0x4000000000000000 softirq=14363/14364 fqs=35 (detected by 0, t=10502 jiffies, g=17253, q=727) Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 5765 Comm: syz-executor.4 Not tainted 5.17.0-rc7-syzkaller-00020-gea4424be1688 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:pv_queued_spin_unlock arch/x86/include/asm/paravirt.h:596 [inline] RIP: 0010:queued_spin_unlock arch/x86/include/asm/qspinlock.h:57 [inline] RIP: 0010:do_raw_spin_unlock+0x126/0x8a0 kernel/locking/spinlock_debug.c:141 Code: 06 ff ff ff ff 48 c7 c0 00 10 99 8c 48 c1 e8 03 80 3c 28 00 74 0c 48 c7 c7 00 10 99 8c e8 72 a7 69 00 48 83 3d ca 65 30 0b 00 <0f> 84 9c 05 00 00 4c 89 ff e8 3c d3 ff ff 66 90 48 83 c4 28 5b 41 RSP: 0018:ffffc90000dc0c20 EFLAGS: 00000082 RAX: 1ffffffff1932200 RBX: 1ffffffff21cfbb6 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffffff90e7dda8 RBP: dffffc0000000000 R08: dffffc0000000000 R09: fffffbfff21cfbb6 R10: fffffbfff21cfbb6 R11: 0000000000000000 R12: 1ffffffff21cfbb7 R13: ffffffff90e7ddb8 R14: ffffffff90e7ddb0 R15: ffffffff90e7dda8 FS: 0000555556a30400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000040 CR3: 0000000022c7e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:150 [inline] _raw_spin_unlock_irqrestore+0x7d/0x130 kernel/locking/spinlock.c:194 debug_hrtimer_deactivate kernel/time/hrtimer.c:425 [inline] debug_deactivate kernel/time/hrtimer.c:481 [inline] __run_hrtimer kernel/time/hrtimer.c:1653 [inline] __hrtimer_run_queues+0x2f9/0xa60 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x3b3/0x1040 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline] __sysvec_apic_timer_interrupt+0xf9/0x270 arch/x86/kernel/apic/apic.c:1103 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194 Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 c2 49 b4 f7 f6 44 24 21 02 75 4e 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 27 f1 3c f7 65 8b 05 88 67 e4 75 85 c0 74 3f 48 c7 04 24 0e 36 RSP: 0018:ffffc90004397cc0 EFLAGS: 00000206 RAX: c0d3c4229d1b1700 RBX: 1ffff92000872f9c RCX: ffffffff90bf5803 RDX: dffffc0000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffffc90004397d60 R08: ffffffff818c3ff0 R09: fffffbfff21878bd R10: fffffbfff21878bd R11: 0000000000000000 R12: dffffc0000000000 R13: 1ffff92000872f98 R14: ffffc90004397ce0 R15: 0000000000000246 spin_unlock_irqrestore include/linux/spinlock.h:404 [inline] alarm_try_to_cancel+0x122/0x1d0 kernel/time/alarmtimer.c:415 alarm_cancel+0x12/0x50 kernel/time/alarmtimer.c:432 timerfd_release+0x1ad/0x250 fs/timerfd.c:242 __fput+0x3fc/0x870 fs/file_table.c:317 task_work_run+0x146/0x1c0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x209/0x220 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:300 do_syscall_64+0x53/0xd0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fa13c34dc8b Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44 RSP: 002b:00007ffd50bc1330 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007fa13c34dc8b RDX: 00007fa13c4b2340 RSI: ffffffffffffffff RDI: 0000000000000003 RBP: 00007fa13c4af960 R08: 0000000000000000 R09: 00007fa13c4b2348 R10: 00007ffd50bc1430 R11: 0000000000000293 R12: 00000000000313a6 R13: 00007ffd50bc1430 R14: 00007fa13c4adf60 R15: 0000000000000032 rcu: rcu_preempt kthread timer wakeup didn't happen for 10430 jiffies! g17253 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 rcu: Possible timer handling issue on cpu=0 timer-softirq=12965 rcu: rcu_preempt kthread starved for 10431 jiffies! g17253 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:I stack:26448 pid: 14 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4995 [inline] __schedule+0x926/0x1080 kernel/sched/core.c:6304 schedule+0x12b/0x1f0 kernel/sched/core.c:6377 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1881 rcu_gp_fqs_loop+0x1fd/0x770 kernel/rcu/tree.c:1963 rcu_gp_kthread+0xa5/0x350 kernel/rcu/tree.c:2136 kthread+0x2a3/0x2d0 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 rcu: Stack dump where RCU GP kthread last ran: NMI backtrace for cpu 0 CPU: 0 PID: 5773 Comm: syz-executor.3 Not tainted 5.17.0-rc7-syzkaller-00020-gea4424be1688 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1dc/0x2d8 lib/dump_stack.c:106 nmi_cpu_backtrace+0x45f/0x490 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x16a/0x280 lib/nmi_backtrace.c:62 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline] rcu_check_gp_kthread_starvation+0x1ff/0x270 kernel/rcu/tree_stall.h:458 print_other_cpu_stall kernel/rcu/tree_stall.h:563 [inline] check_cpu_stall kernel/rcu/tree_stall.h:706 [inline] rcu_pending kernel/rcu/tree.c:3919 [inline] rcu_sched_clock_irq+0x2390/0x2b70 kernel/rcu/tree.c:2617 update_process_times+0x197/0x200 kernel/time/timer.c:1785 tick_sched_handle kernel/time/tick-sched.c:226 [inline] tick_sched_timer+0x27d/0x420 kernel/time/tick-sched.c:1428 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x4cb/0xa60 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x3b3/0x1040 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline] __sysvec_apic_timer_interrupt+0xf9/0x270 arch/x86/kernel/apic/apic.c:1103 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 RIP: 0010:csd_lock_wait kernel/smp.c:440 [inline] RIP: 0010:smp_call_function_many_cond+0xc22/0xe10 kernel/smp.c:969 Code: 83 e6 01 31 ff e8 be bf 0b 00 41 83 e7 01 49 bf 00 00 00 00 00 fc ff df 75 0e e8 99 bb 0b 00 eb 4c 0f 1f 80 00 00 00 00 f3 90 <42> 0f b6 04 3b 84 c0 75 11 41 f7 45 00 01 00 00 00 74 2b e8 76 bb RSP: 0018:ffffc900027bef20 EFLAGS: 00000246 RAX: ffffffff8179de3a RBX: 1ffff11017367f3d RCX: 0000000000040000 RDX: ffffc90005389000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc900027bf060 R08: ffffffff8179de02 R09: ffffffff844e9a80 R10: 0000000000000009 R11: ffff88802128d700 R12: 0000000000000001 R13: ffff8880b9b3f9e8 R14: ffff8880b9a3a840 R15: dffffc0000000000 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1135 __purge_vmap_area_lazy+0x2bf/0x18e0 mm/vmalloc.c:1689 _vm_unmap_aliases+0x474/0x500 mm/vmalloc.c:2113 change_page_attr_set_clr+0x2ae/0x6a0 arch/x86/mm/pat/set_memory.c:1743 change_page_attr_clear arch/x86/mm/pat/set_memory.c:1800 [inline] set_memory_ro+0xa4/0xe0 arch/x86/mm/pat/set_memory.c:1946 bpf_jit_binary_lock_ro include/linux/filter.h:889 [inline] bpf_int_jit_compile+0xa89e/0xae70 arch/x86/net/bpf_jit_comp.c:2382 bpf_prog_select_runtime+0x6de/0x9f0 kernel/bpf/core.c:1931 bpf_prog_load kernel/bpf/syscall.c:2351 [inline] __sys_bpf+0x1187d/0x12db0 kernel/bpf/syscall.c:4637 __do_sys_bpf kernel/bpf/syscall.c:4741 [inline] __se_sys_bpf kernel/bpf/syscall.c:4739 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4739 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fd7345d0049 Code: 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd732f45168 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007fd7346e2f60 RCX: 00007fd7345d0049 RDX: 0000000000000048 RSI: 0000000020caefb8 RDI: 0000000000000005 RBP: 00007fd73462a08d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe607e281f R14: 00007fd732f45300 R15: 0000000000022000 ---------------- Code disassembly (best guess), 4 bytes skipped: 0: ff 48 c7 decl -0x39(%rax) 3: c0 00 10 rolb $0x10,(%rax) 6: 99 cltd 7: 8c 48 c1 mov %cs,-0x3f(%rax) a: e8 03 80 3c 28 callq 0x283c8012 f: 00 74 0c 48 add %dh,0x48(%rsp,%rcx,1) 13: c7 c7 00 10 99 8c mov $0x8c991000,%edi 19: e8 72 a7 69 00 callq 0x69a790 1e: 48 83 3d ca 65 30 0b cmpq $0x0,0xb3065ca(%rip) # 0xb3065f0 25: 00 * 26: 0f 84 9c 05 00 00 je 0x5c8 <-- trapping instruction 2c: 4c 89 ff mov %r15,%rdi 2f: e8 3c d3 ff ff callq 0xffffd370 34: 66 90 xchg %ax,%ax 36: 48 83 c4 28 add $0x28,%rsp 3a: 5b pop %rbx 3b: 41 rex.B