rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 0-...!: (1 GPs behind) idle=8054/1/0x4000000000000000 softirq=21152/21153 fqs=63 rcu: (detected by 1, t=10504 jiffies, g=30525, q=405 ncpus=2) Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 7834 Comm: syz-executor.4 Not tainted 6.9.0-rc5-syzkaller-00355-g2c8159388952 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:variable_test_bit arch/x86/include/asm/bitops.h:227 [inline] RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:239 [inline] RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline] RIP: 0010:cpumask_test_cpu include/linux/cpumask.h:505 [inline] RIP: 0010:cpu_online include/linux/cpumask.h:1120 [inline] RIP: 0010:trace_hrtimer_start include/trace/events/timer.h:222 [inline] RIP: 0010:debug_activate kernel/time/hrtimer.c:479 [inline] RIP: 0010:enqueue_hrtimer+0x83/0x3c0 kernel/time/hrtimer.c:1090 Code: 12 00 89 eb 48 89 d8 48 c1 e8 06 48 8d 3c c5 a8 cc a7 8f be 08 00 00 00 e8 fa a2 73 00 31 ed 48 0f a3 1d 48 1f 24 0e 0f 92 c3 <40> 0f 92 c5 bf 02 00 00 00 89 ee e8 7d 53 12 00 31 ff 89 ee e8 74 RSP: 0018:ffffc90000007d28 EFLAGS: 00000047 RAX: 0000000000000001 RBX: 0000000000000001 RCX: ffffffff8183ad56 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8fa7cca8 RBP: 0000000000000000 R08: ffffffff8fa7ccaf R09: 1ffffffff1f4f995 R10: dffffc0000000000 R11: fffffbfff1f4f996 R12: dffffc0000000000 R13: ffff8880b942c980 R14: ffff888079414340 R15: ffff8880b942c880 FS: 00007f827bd7a6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020003c80 CR3: 0000000022766000 CR4: 00000000003506f0 Call Trace: __run_hrtimer kernel/time/hrtimer.c:1709 [inline] __hrtimer_run_queues+0x6d5/0xd50 kernel/time/hrtimer.c:1756 hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1818 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline] __sysvec_apic_timer_interrupt+0x110/0x3f0 arch/x86/kernel/apic/apic.c:1049 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x70 kernel/kcov.c:200 Code: 89 fb e8 23 00 00 00 48 8b 3d dc b3 3d 0c 48 89 de 5b e9 c3 d0 55 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 48 8b 04 24 65 48 8b 0c 25 80 d3 03 00 65 8b 15 80 d5 RSP: 0018:ffffc9000332f470 EFLAGS: 00000283 RAX: ffffffff8137d26f RBX: ffffc9000332f4a0 RCX: 0000000000040000 RDX: ffffc9000a3b2000 RSI: 00000000000009cc RDI: ffffc9000332f4a0 RBP: ffffc9000332f530 R08: ffffffff81415de5 R09: ffffffff814158df R10: 0000000000000003 R11: ffff888023cd5a00 R12: ffff888023cd5a00 R13: ffffffff8181dd30 R14: dffffc0000000000 R15: ffffc9000332f4a0 unwind_get_return_address+0x1c/0xc0 arch/x86/kernel/unwind_orc.c:365 arch_stack_walk+0x125/0x1b0 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122 save_stack+0xfb/0x1f0 mm/page_owner.c:156 __set_page_owner+0x8d/0x810 mm/page_owner.c:325 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1ea/0x210 mm/page_alloc.c:1534 prep_new_page mm/page_alloc.c:1541 [inline] get_page_from_freelist+0x3410/0x35b0 mm/page_alloc.c:3317 __alloc_pages+0x256/0x6c0 mm/page_alloc.c:4575 __alloc_pages_node include/linux/gfp.h:238 [inline] alloc_pages_node include/linux/gfp.h:261 [inline] bpf_ringbuf_area_alloc kernel/bpf/ringbuf.c:122 [inline] bpf_ringbuf_alloc+0xcb/0x420 kernel/bpf/ringbuf.c:170 ringbuf_map_alloc+0x1d7/0x2f0 kernel/bpf/ringbuf.c:204 map_create+0x90c/0x1200 kernel/bpf/syscall.c:1320 __sys_bpf+0x6d1/0x810 kernel/bpf/syscall.c:5642 __do_sys_bpf kernel/bpf/syscall.c:5767 [inline] __se_sys_bpf kernel/bpf/syscall.c:5765 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5765 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f827b07dea9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f827bd7a0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f827b1abf80 RCX: 00007f827b07dea9 RDX: 0000000000000048 RSI: 00000000200009c0 RDI: 0000000000000000 RBP: 00007f827b0ca4a4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f827b1abf80 R15: 00007ffd738bd498 rcu: rcu_preempt kthread starved for 10185 jiffies! g30525 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:26104 pid:16 tgid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5409 [inline] __schedule+0x1796/0x4a00 kernel/sched/core.c:6746 __schedule_loop kernel/sched/core.c:6823 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6838 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2582 rcu_gp_fqs_loop+0x2df/0x1370 kernel/rcu/tree.c:1663 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:1862 kthread+0x2f0/0x390 kernel/kthread.c:388 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: 7841 Comm: syz-executor.3 Not tainted 6.9.0-rc5-syzkaller-00355-g2c8159388952 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:csd_lock_wait kernel/smp.c:311 [inline] RIP: 0010:smp_call_function_many_cond+0x1894/0x2a00 kernel/smp.c:855 Code: 45 8b 65 00 44 89 e6 83 e6 01 31 ff e8 15 db 0b 00 41 83 e4 01 49 bc 00 00 00 00 00 fc ff df 75 07 e8 c0 d6 0b 00 eb 38 f3 90 <42> 0f b6 04 23 84 c0 75 11 41 f7 45 00 01 00 00 00 74 1e e8 a4 d6 RSP: 0000:ffffc9000301f2c0 EFLAGS: 00000246 RAX: ffffffff818a274c RBX: 1ffff11017288c45 RCX: 0000000000040000 RDX: ffffc90004c39000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc9000301f4c0 R08: ffffffff818a271b R09: 1ffffffff25dfca0 R10: dffffc0000000000 R11: fffffbfff25dfca1 R12: dffffc0000000000 R13: ffff8880b9446228 R14: ffff8880b953f780 R15: 0000000000000000 FS: 00007f6adc50c6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020ff9040 CR3: 000000002be62000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1023 __split_large_page arch/x86/mm/pat/set_memory.c:1140 [inline] split_large_page arch/x86/mm/pat/set_memory.c:1159 [inline] __change_page_attr arch/x86/mm/pat/set_memory.c:1660 [inline] __change_page_attr_set_clr+0x1a74/0x2c60 arch/x86/mm/pat/set_memory.c:1769 __set_pages_np arch/x86/mm/pat/set_memory.c:2357 [inline] set_direct_map_invalid_noflush+0x18a/0x1e0 arch/x86/mm/pat/set_memory.c:2362 secretmem_fault+0x169/0x440 mm/secretmem.c:77 __do_fault+0x135/0x460 mm/memory.c:4531 do_read_fault mm/memory.c:4894 [inline] do_fault mm/memory.c:5024 [inline] do_pte_missing mm/memory.c:3880 [inline] handle_pte_fault mm/memory.c:5300 [inline] __handle_mm_fault+0x45fe/0x7250 mm/memory.c:5441 handle_mm_fault+0x27f/0x770 mm/memory.c:5606 do_user_addr_fault arch/x86/mm/fault.c:1413 [inline] handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x2a8/0x8e0 arch/x86/mm/fault.c:1563 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x7f6adb8295ae Code: 1f 0b 00 31 c0 e8 92 db ff ff eb e5 48 89 7c 24 f0 48 89 74 24 e8 48 89 54 24 e0 48 8b 4c 24 f0 48 8b 54 24 e8 48 8b 74 24 e0 <8b> 41 40 23 81 00 01 00 00 f3 0f 6f 06 c1 e0 06 48 01 d0 0f 11 00 RSP: 002b:00007f6adc50c0b8 EFLAGS: 00010216 RAX: 00007f6adb829590 RBX: 00007f6adb9abf80 RCX: 0000000020ff9000 RDX: 00007f6adb27f000 RSI: 00000000200001c0 RDI: 0000000020ff9000 RBP: 00007f6adb8ca4a4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020ff9000 R11: 00000000200001c0 R12: 0000000000000000 R13: 000000000000000b R14: 00007f6adb9abf80 R15: 00007ffd006df4e8