rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 0-...!: (1 GPs behind) idle=8e1/1/0x4000000000000000 softirq=18893/18898 fqs=2 (detected by 1, t=10502 jiffies, g=24257, q=130 ncpus=2) Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 6966 Comm: syz-executor.0 Not tainted 5.18.0-next-20220601-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:lockdep_recursion_finish kernel/locking/lockdep.c:466 [inline] RIP: 0010:lock_release+0x3c8/0x780 kernel/locking/lockdep.c:5687 Code: 2b 44 24 40 45 39 87 58 0a 00 00 0f 85 67 02 00 00 48 c7 c7 c0 7e cc 89 e8 55 b6 18 08 b8 ff ff ff ff 65 0f c1 05 80 fe a3 7e <83> f8 01 0f 85 cb 01 00 00 9c 58 f6 c4 02 0f 85 b6 01 00 00 48 f7 RSP: 0018:ffffc90000007d08 EFLAGS: 00000057 RAX: 0000000000000001 RBX: 6d20947d28ef4cb3 RCX: ffffc90000007d58 RDX: 1ffff1100f2c214a RSI: 0000000000010001 RDI: 0000000000000000 RBP: 1ffff92000000fa3 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000002 R13: 0000000000000003 R14: ffff888079610a58 R15: ffff888079610000 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7a9519d090 CR3: 000000000ba8e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_lock_release include/linux/rcupdate.h:274 [inline] rcu_read_unlock include/linux/rcupdate.h:728 [inline] advance_sched+0x507/0x9a0 net/sched/sch_taprio.c:770 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x609/0xe50 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:check_kcov_mode kernel/kcov.c:166 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x1c/0x60 kernel/kcov.c:200 Code: be a8 01 00 00 e8 b4 ff ff ff 31 c0 c3 90 65 8b 05 19 da 87 7e 89 c1 48 8b 34 24 81 e1 00 01 00 00 65 48 8b 14 25 80 6f 02 00 00 01 ff 00 74 0e 85 c9 74 35 8b 82 a4 15 00 00 85 c0 74 2b 8b RSP: 0018:ffffc900131ef738 EFLAGS: 00000246 RAX: 0000000080000001 RBX: ffffc900131efa40 RCX: 0000000000000000 RDX: ffff888079610000 RSI: ffffffff81b6fbe0 RDI: 0000000000000007 RBP: ffffffffffffffff R08: 0000000000000007 R09: 0000000000000000 R10: ffffffffffffffff R11: 0000000000000001 R12: 8000000076ffc007 R13: 00007f7a94edf000 R14: ffffea0001dbff00 R15: ffffea0001dbff00 __tlb_remove_page_size+0x50/0x420 mm/mmu_gather.c:89 __tlb_remove_page include/asm-generic/tlb.h:440 [inline] zap_pte_range mm/memory.c:1457 [inline] zap_pmd_range mm/memory.c:1575 [inline] zap_pud_range mm/memory.c:1604 [inline] zap_p4d_range mm/memory.c:1625 [inline] unmap_page_range+0x108a/0x3710 mm/memory.c:1646 unmap_single_vma+0x196/0x360 mm/memory.c:1694 unmap_vmas+0x18c/0x310 mm/memory.c:1731 exit_mmap+0x1c4/0x4a0 mm/mmap.c:3162 __mmput+0x122/0x4b0 kernel/fork.c:1187 mmput+0x56/0x60 kernel/fork.c:1208 exit_mm kernel/exit.c:510 [inline] do_exit+0xa12/0x2a00 kernel/exit.c:782 do_group_exit+0xd2/0x2f0 kernel/exit.c:925 get_signal+0x2542/0x2600 kernel/signal.c:2857 arch_do_signal_or_restart+0x82/0x20f0 arch/x86/kernel/signal.c:869 exit_to_user_mode_loop kernel/entry/common.c:166 [inline] exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f7a95089109 Code: Unable to access opcode bytes at RIP 0x7f7a950890df. RSP: 002b:00007f7a96261218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f7a9519bf68 RCX: 00007f7a95089109 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f7a9519bf68 RBP: 00007f7a9519bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7a9519bf6c R13: 00007fffe69ff71f R14: 00007f7a96261300 R15: 0000000000022000 rcu: rcu_preempt kthread starved for 10498 jiffies! g24257 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:28672 pid: 17 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5116 [inline] __schedule+0xa00/0x4b30 kernel/sched/core.c:6428 schedule+0xd2/0x1f0 kernel/sched/core.c:6500 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1935 rcu_gp_fqs_loop+0x186/0x810 kernel/rcu/tree.c:1999 rcu_gp_kthread+0x1de/0x320 kernel/rcu/tree.c:2187 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 rcu: Stack dump where RCU GP kthread last ran: NMI backtrace for cpu 1 CPU: 1 PID: 11 Comm: kworker/u4:1 Not tainted 5.18.0-next-20220601-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound toggle_allocation_gate Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1e6/0x230 lib/nmi_backtrace.c:62 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline] rcu_check_gp_kthread_starvation.cold+0x1fb/0x200 kernel/rcu/tree_stall.h:518 print_other_cpu_stall kernel/rcu/tree_stall.h:623 [inline] check_cpu_stall kernel/rcu/tree_stall.h:771 [inline] rcu_pending kernel/rcu/tree.c:3977 [inline] rcu_sched_clock_irq+0x2316/0x2370 kernel/rcu/tree.c:2675 update_process_times+0x11a/0x1a0 kernel/time/timer.c:1839 tick_sched_handle+0x9b/0x180 kernel/time/tick-sched.c:243 tick_sched_timer+0xee/0x120 kernel/time/tick-sched.c:1481 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x1c0/0xe50 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:csd_lock_wait kernel/smp.c:414 [inline] RIP: 0010:smp_call_function_many_cond+0x499/0x1110 kernel/smp.c:988 Code: 01 89 ee e8 c9 91 0a 00 85 ed 74 47 48 8b 04 24 49 89 c4 83 e0 07 49 c1 ec 03 48 89 c5 4d 01 fc 83 c5 03 e8 69 95 0a 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 21 0a 00 00 8b 43 08 31 RSP: 0018:ffffc90000107950 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffff8880b9c42500 RCX: 0000000000000000 RDX: ffff888010e43b00 RSI: ffffffff816fffb7 RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffffed10173884a1 R13: 0000000000000000 R14: 0000000000000001 R15: dffffc0000000000 on_each_cpu_cond_mask+0x56/0xa0 kernel/smp.c:1154 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1231 [inline] text_poke_bp_batch+0x233/0x6c0 arch/x86/kernel/alternative.c:1419 text_poke_flush arch/x86/kernel/alternative.c:1589 [inline] text_poke_flush arch/x86/kernel/alternative.c:1586 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1596 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32f/0x410 kernel/jump_label.c:830 static_key_enable_cpuslocked+0x1b1/0x260 kernel/jump_label.c:177 static_key_enable+0x16/0x20 kernel/jump_label.c:190 toggle_allocation_gate mm/kfence/core.c:808 [inline] toggle_allocation_gate+0x100/0x390 mm/kfence/core.c:800 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 watchdog: BUG: soft lockup - CPU#1 stuck for 245s! [kworker/u4:1:11] Modules linked in: irq event stamp: 6594076 hardirqs last enabled at (6594075): [] asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 hardirqs last disabled at (6594076): [] sysvec_apic_timer_interrupt+0xb/0xc0 arch/x86/kernel/apic/apic.c:1106 softirqs last enabled at (6544990): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last enabled at (6544990): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 softirqs last disabled at (6544883): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last disabled at (6544883): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 CPU: 1 PID: 11 Comm: kworker/u4:1 Not tainted 5.18.0-next-20220601-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:414 [inline] RIP: 0010:smp_call_function_many_cond+0x499/0x1110 kernel/smp.c:988 Code: 01 89 ee e8 c9 91 0a 00 85 ed 74 47 48 8b 04 24 49 89 c4 83 e0 07 49 c1 ec 03 48 89 c5 4d 01 fc 83 c5 03 e8 69 95 0a 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 21 0a 00 00 8b 43 08 31 RSP: 0018:ffffc90000107950 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffff8880b9c42500 RCX: 0000000000000000 RDX: ffff888010e43b00 RSI: ffffffff816fffb7 RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffffed10173884a1 R13: 0000000000000000 R14: 0000000000000001 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe2576bc28 CR3: 000000000ba8e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x56/0xa0 kernel/smp.c:1154 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1231 [inline] text_poke_bp_batch+0x233/0x6c0 arch/x86/kernel/alternative.c:1419 text_poke_flush arch/x86/kernel/alternative.c:1589 [inline] text_poke_flush arch/x86/kernel/alternative.c:1586 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1596 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32f/0x410 kernel/jump_label.c:830 static_key_enable_cpuslocked+0x1b1/0x260 kernel/jump_label.c:177 static_key_enable+0x16/0x20 kernel/jump_label.c:190 toggle_allocation_gate mm/kfence/core.c:808 [inline] toggle_allocation_gate+0x100/0x390 mm/kfence/core.c:800 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 6966 Comm: syz-executor.0 Not tainted 5.18.0-next-20220601-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:85 [inline] RIP: 0010:memory_is_nonzero mm/kasan/generic.c:102 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [inline] RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline] RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline] RIP: 0010:kasan_check_range+0xde/0x180 mm/kasan/generic.c:189 Code: 74 f2 48 89 c2 b8 01 00 00 00 48 85 d2 75 56 5b 5d 41 5c c3 48 85 d2 74 5e 48 01 ea eb 09 48 83 c0 01 48 39 d0 74 50 80 38 00 <74> f2 eb d4 41 bc 08 00 00 00 48 89 ea 45 29 dc 4d 8d 1c 2c eb 0c RSP: 0018:ffffc90000007d88 EFLAGS: 00000002 RAX: fffff52000000fba RBX: fffff52000000fbb RCX: ffffffff815ef4d0 RDX: fffff52000000fbb RSI: 0000000000000004 RDI: ffffc90000007dd0 RBP: fffff52000000fba R08: 0000000000000001 R09: ffffc90000007dd3 R10: fffff52000000fba R11: 0000000000000001 R12: ffff8880b9c2a508 R13: ffff8880b9c2a510 R14: ffff8880b9c2a500 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7a9519d090 CR3: 000000000ba8e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: instrument_atomic_read_write include/linux/instrumented.h:101 [inline] atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:542 [inline] queued_spin_lock include/asm-generic/qspinlock.h:111 [inline] do_raw_spin_lock+0x120/0x2a0 kernel/locking/spinlock_debug.c:115 __run_hrtimer kernel/time/hrtimer.c:1689 [inline] __hrtimer_run_queues+0x243/0xe50 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:check_kcov_mode kernel/kcov.c:166 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x1c/0x60 kernel/kcov.c:200 Code: be a8 01 00 00 e8 b4 ff ff ff 31 c0 c3 90 65 8b 05 19 da 87 7e 89 c1 48 8b 34 24 81 e1 00 01 00 00 65 48 8b 14 25 80 6f 02 00 00 01 ff 00 74 0e 85 c9 74 35 8b 82 a4 15 00 00 85 c0 74 2b 8b RSP: 0018:ffffc900131ef738 EFLAGS: 00000246 RAX: 0000000080000001 RBX: ffffc900131efa40 RCX: 0000000000000000 RDX: ffff888079610000 RSI: ffffffff81b6fbe0 RDI: 0000000000000007 RBP: ffffffffffffffff R08: 0000000000000007 R09: 0000000000000000 R10: ffffffffffffffff R11: 0000000000000001 R12: 8000000076ffc007 R13: 00007f7a94edf000 R14: ffffea0001dbff00 R15: ffffea0001dbff00 __tlb_remove_page_size+0x50/0x420 mm/mmu_gather.c:89 __tlb_remove_page include/asm-generic/tlb.h:440 [inline] zap_pte_range mm/memory.c:1457 [inline] zap_pmd_range mm/memory.c:1575 [inline] zap_pud_range mm/memory.c:1604 [inline] zap_p4d_range mm/memory.c:1625 [inline] unmap_page_range+0x108a/0x3710 mm/memory.c:1646 unmap_single_vma+0x196/0x360 mm/memory.c:1694 unmap_vmas+0x18c/0x310 mm/memory.c:1731 exit_mmap+0x1c4/0x4a0 mm/mmap.c:3162 __mmput+0x122/0x4b0 kernel/fork.c:1187 mmput+0x56/0x60 kernel/fork.c:1208 exit_mm kernel/exit.c:510 [inline] do_exit+0xa12/0x2a00 kernel/exit.c:782 do_group_exit+0xd2/0x2f0 kernel/exit.c:925 get_signal+0x2542/0x2600 kernel/signal.c:2857 arch_do_signal_or_restart+0x82/0x20f0 arch/x86/kernel/signal.c:869 exit_to_user_mode_loop kernel/entry/common.c:166 [inline] exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f7a95089109 Code: Unable to access opcode bytes at RIP 0x7f7a950890df. RSP: 002b:00007f7a96261218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f7a9519bf68 RCX: 00007f7a95089109 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f7a9519bf68 RBP: 00007f7a9519bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7a9519bf6c R13: 00007fffe69ff71f R14: 00007f7a96261300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: 2b 44 24 40 sub 0x40(%rsp),%eax 4: 45 39 87 58 0a 00 00 cmp %r8d,0xa58(%r15) b: 0f 85 67 02 00 00 jne 0x278 11: 48 c7 c7 c0 7e cc 89 mov $0xffffffff89cc7ec0,%rdi 18: e8 55 b6 18 08 callq 0x818b672 1d: b8 ff ff ff ff mov $0xffffffff,%eax 22: 65 0f c1 05 80 fe a3 xadd %eax,%gs:0x7ea3fe80(%rip) # 0x7ea3feaa 29: 7e * 2a: 83 f8 01 cmp $0x1,%eax <-- trapping instruction 2d: 0f 85 cb 01 00 00 jne 0x1fe 33: 9c pushfq 34: 58 pop %rax 35: f6 c4 02 test $0x2,%ah 38: 0f 85 b6 01 00 00 jne 0x1f4 3e: 48 rex.W 3f: f7 .byte 0xf7