rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 0-....: (1 GPs behind) idle=c69/1/0x4000000000000002 softirq=289224/289226 fqs=26116 (detected by 1, t=105002 jiffies, g=305557, q=72316) Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 11 Comm: ksoftirqd/0 Not tainted 5.16.0-rc5-next-20211217 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 RIP: 0010:on_stack arch/x86/include/asm/stacktrace.h:56 [inline] RIP: 0010:stack_access_ok arch/x86/kernel/unwind_orc.c:342 [inline] RIP: 0010:deref_stack_reg+0x81/0x150 arch/x86/kernel/unwind_orc.c:352 Code: 85 c3 00 00 00 49 8d 7c 24 10 4d 8b 6c 24 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 94 00 00 00 <49> 8b 44 24 10 49 39 ed 77 13 48 39 e8 76 0e 48 8d 55 08 48 39 d0 RSP: 0018:ffff88800819f068 EFLAGS: 00000046 RAX: dffffc0000000000 RBX: ffff88800819f288 RCX: ffffffff85c3e8a9 RDX: 1ffff11001033e48 RSI: ffff88800819fa80 RDI: ffff88800819f240 RBP: ffff88800819fa80 R08: ffffffff85c3e8a4 R09: ffffffff85c3e8a8 R10: ffffed1001033e53 R11: 000000000003403a R12: ffff88800819f230 R13: ffff888008198000 R14: ffff88800819f230 R15: ffff88800819fa80 FS: 0000000000000000(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000044c00000000 CR3: 0000000005026000 CR4: 0000000000350ef0 Call Trace: unwind_next_frame+0xa3a/0x2250 arch/x86/kernel/unwind_orc.c:534 __unwind_start+0x50b/0x7c0 arch/x86/kernel/unwind_orc.c:712 unwind_start arch/x86/include/asm/unwind.h:64 [inline] perf_callchain_kernel+0x289/0x620 arch/x86/events/core.c:2785 get_perf_callchain+0x16e/0x520 kernel/events/callchain.c:200 perf_callchain+0x165/0x1c0 kernel/events/core.c:7312 perf_prepare_sample+0x9f9/0x1e20 kernel/events/core.c:7339 __perf_event_output kernel/events/core.c:7508 [inline] perf_event_output_forward+0xda/0x280 kernel/events/core.c:7528 __perf_event_overflow+0x13f/0x3d0 kernel/events/core.c:9228 perf_swevent_overflow kernel/events/core.c:9304 [inline] perf_swevent_event+0x344/0x550 kernel/events/core.c:9332 perf_tp_event+0x2e5/0xbc0 kernel/events/core.c:9760 perf_trace_run_bpf_submit+0xf5/0x1d0 kernel/events/core.c:9734 perf_trace_preemptirq_template+0x289/0x440 include/trace/events/preemptirq.h:14 trace_irq_enable_rcuidle include/trace/events/preemptirq.h:40 [inline] trace_irq_enable_rcuidle include/trace/events/preemptirq.h:40 [inline] trace_hardirqs_on+0x138/0x190 kernel/trace/trace_preemptirq.c:44 asm_sysvec_irq_work+0x12/0x20 arch/x86/include/asm/idtentry.h:664 RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline] RIP: 0010:__rcu_read_unlock+0xc4/0x510 kernel/rcu/tree_plugin.h:427 Code: b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e 93 01 00 00 8b 85 f8 03 00 00 85 c0 75 54 <65> 48 8b 1c 25 40 6f 02 00 48 8d bb f4 03 00 00 48 b8 00 00 00 00 RSP: 0018:ffff88800819fb50 EFLAGS: 00000202 RAX: 0000000000711ee6 RBX: ffffffff8520bb00 RCX: 1ffffffff0b17969 RDX: 0000000000000000 RSI: 0000000000000100 RDI: 0000000000000000 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff8149fe44 R11: 0000000000000000 R12: ffff88806ce38800 R13: dffffc0000000000 R14: 0000000000000200 R15: 0000000000000002 rcu_read_unlock include/linux/rcupdate.h:726 [inline] get_mem_cgroup_from_objcg+0xa4/0x170 mm/memcontrol.c:2759 uncharge_folio+0x2a3/0x630 mm/memcontrol.c:6844 __mem_cgroup_uncharge+0xf5/0x200 mm/memcontrol.c:6893 mem_cgroup_uncharge include/linux/memcontrol.h:685 [inline] __put_single_page mm/swap.c:98 [inline] __put_page+0x104/0x220 mm/swap.c:130 folio_put include/linux/mm.h:1200 [inline] put_page include/linux/mm.h:1218 [inline] free_page_and_swap_cache+0x1ab/0x200 mm/swap_state.c:305 __tlb_remove_table arch/x86/include/asm/tlb.h:37 [inline] __tlb_remove_table_free mm/mmu_gather.c:102 [inline] tlb_remove_table_rcu+0x85/0xe0 mm/mmu_gather.c:157 rcu_do_batch kernel/rcu/tree.c:2535 [inline] rcu_core+0x7e9/0x1ce0 kernel/rcu/tree.c:2786 __do_softirq+0x270/0x8c7 kernel/softirq.c:558 run_ksoftirqd kernel/softirq.c:921 [inline] run_ksoftirqd+0x2d/0x60 kernel/softirq.c:913 smpboot_thread_fn+0x66f/0xa00 kernel/smpboot.c:164 kthread+0x40c/0x500 kernel/kthread.c:345 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:295 rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 0-... } 108844 jiffies s: 2669 root: 0x1/. rcu: blocking rcu_node structures (internal RCU debug): Task dump for CPU 0: task:ksoftirqd/0 state:R running task stack:25032 pid: 11 ppid: 2 flags:0x00004008 Call Trace: ---------------- Code disassembly (best guess): 0: 85 c3 test %eax,%ebx 2: 00 00 add %al,(%rax) 4: 00 49 8d add %cl,-0x73(%rcx) 7: 7c 24 jl 0x2d 9: 10 4d 8b adc %cl,-0x75(%rbp) c: 6c insb (%dx),%es:(%rdi) d: 24 08 and $0x8,%al f: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 16: fc ff df 19: 48 89 fa mov %rdi,%rdx 1c: 48 c1 ea 03 shr $0x3,%rdx 20: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 24: 0f 85 94 00 00 00 jne 0xbe * 2a: 49 8b 44 24 10 mov 0x10(%r12),%rax <-- trapping instruction 2f: 49 39 ed cmp %rbp,%r13 32: 77 13 ja 0x47 34: 48 39 e8 cmp %rbp,%rax 37: 76 0e jbe 0x47 39: 48 8d 55 08 lea 0x8(%rbp),%rdx 3d: 48 39 d0 cmp %rdx,%rax