rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...!: (1 GPs behind) idle=e7d/1/0x4000000000000000 softirq=63875/63876 fqs=0 (detected by 0, t=10502 jiffies, g=92409, q=204) Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 15001 Comm: syz-executor.4 Not tainted 5.15.158-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:kasan_check_range+0x1ac/0x290 mm/kasan/generic.c:189 Code: 4c 89 d5 48 8d 5d 07 48 85 ed 48 0f 49 dd 48 83 e3 f8 48 29 dd 74 12 41 80 39 00 0f 85 a2 00 00 00 49 ff c1 48 ff cd 75 ee 5b <41> 5e 41 5f 5d c3 45 84 f6 75 61 41 f7 c6 00 ff 00 00 75 5d 41 f7 RSP: 0018:ffffc90000dd0d40 EFLAGS: 00000056 RAX: 0000000000000001 RBX: 0000000000000001 RCX: ffffffff816f6636 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8de462a8 RBP: 0000000000000001 R08: dffffc0000000000 R09: fffffbfff1bc8c56 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b9b2a200 R13: 0000000000000001 R14: fffffbfff1bc8c56 R15: ffff888015fcc658 FS: 00007fd901f846c0(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020003c80 CR3: 00000000649c6000 CR4: 00000000003506e0 Call Trace: instrument_atomic_read include/linux/instrumented.h:71 [inline] test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline] cpumask_test_cpu include/linux/cpumask.h:344 [inline] cpu_online include/linux/cpumask.h:895 [inline] trace_hrtimer_expire_exit include/trace/events/timer.h:283 [inline] __run_hrtimer kernel/time/hrtimer.c:1689 [inline] __hrtimer_run_queues+0x5f6/0xcf0 kernel/time/hrtimer.c:1750 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1085 [inline] __sysvec_apic_timer_interrupt+0x139/0x470 arch/x86/kernel/apic/apic.c:1102 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:orc_ip arch/x86/kernel/unwind_orc.c:30 [inline] RIP: 0010:__orc_find arch/x86/kernel/unwind_orc.c:52 [inline] RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:178 [inline] RIP: 0010:unwind_next_frame+0x515/0x1fa0 arch/x86/kernel/unwind_orc.c:448 Code: e9 bc 11 00 00 49 89 fc 49 89 fe 48 89 e8 4c 29 f0 48 89 c1 48 c1 f9 02 48 c1 e8 3f 48 01 c8 48 83 e0 fe 49 8d 1c 46 48 89 d8 <48> c1 e8 03 0f b6 04 10 84 c0 75 27 48 63 03 48 01 d8 48 8d 4b 04 RSP: 0018:ffffc90002ed69a8 EFLAGS: 00000202 RAX: ffffffff8df6dce0 RBX: ffffffff8df6dce0 RCX: 0000000000000002 RDX: dffffc0000000000 RSI: ffffffff8e606fde RDI: ffffffff8df6dcac RBP: ffffffff8df6dce4 R08: 000000000000000f R09: ffffc90002ed6b50 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8df6dcd8 R13: ffffffff818e3ef7 R14: ffffffff8df6dcdc R15: ffffc90002ed6a60 arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122 save_stack+0xf6/0x1e0 mm/page_owner.c:119 __set_page_owner+0x37/0x300 mm/page_owner.c:181 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x322a/0x33c0 mm/page_alloc.c:4159 __alloc_pages+0x272/0x700 mm/page_alloc.c:5423 vm_area_alloc_pages mm/vmalloc.c:2868 [inline] __vmalloc_area_node mm/vmalloc.c:2924 [inline] __vmalloc_node_range+0x5ab/0x8c0 mm/vmalloc.c:3029 __vmalloc_node mm/vmalloc.c:3079 [inline] vmalloc+0x75/0x80 mm/vmalloc.c:3112 bpf_prog_calc_tag+0xd7/0x8f0 kernel/bpf/core.c:281 resolve_pseudo_ldimm64+0xe2/0x1240 kernel/bpf/verifier.c:11798 bpf_check+0x4341/0x12d00 kernel/bpf/verifier.c:14085 bpf_prog_load+0x12b3/0x1b60 kernel/bpf/syscall.c:2353 __sys_bpf+0x343/0x670 kernel/bpf/syscall.c:4651 __do_sys_bpf kernel/bpf/syscall.c:4755 [inline] __se_sys_bpf kernel/bpf/syscall.c:4753 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4753 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fd903a11ca9 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:00007fd901f840c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007fd903b3ff80 RCX: 00007fd903a11ca9 RDX: 0000000000000090 RSI: 00000000200000c0 RDI: 0000000000000005 RBP: 00007fd903a5d47e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fd903b3ff80 R15: 00007ffd49238c38 rcu: rcu_preempt kthread starved for 10502 jiffies! g92409 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->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:R running task stack:27000 pid: 15 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5030 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376 schedule+0x11b/0x1f0 kernel/sched/core.c:6459 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1914 rcu_gp_fqs_loop+0x2bf/0x1080 kernel/rcu/tree.c:1972 rcu_gp_kthread+0xa4/0x360 kernel/rcu/tree.c:2145 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300 rcu: Stack dump where RCU GP kthread last ran: NMI backtrace for cpu 0 CPU: 0 PID: 14990 Comm: syz-executor.1 Not tainted 5.15.158-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62 trigger_single_cpu_backtrace include/linux/nmi.h:166 [inline] rcu_check_gp_kthread_starvation+0x1d2/0x240 kernel/rcu/tree_stall.h:487 print_other_cpu_stall+0x137a/0x14d0 kernel/rcu/tree_stall.h:592 check_cpu_stall kernel/rcu/tree_stall.h:745 [inline] rcu_pending kernel/rcu/tree.c:3932 [inline] rcu_sched_clock_irq+0xa38/0x1150 kernel/rcu/tree.c:2619 update_process_times+0x196/0x200 kernel/time/timer.c:1818 tick_sched_handle kernel/time/tick-sched.c:254 [inline] tick_sched_timer+0x386/0x550 kernel/time/tick-sched.c:1473 __run_hrtimer kernel/time/hrtimer.c:1686 [inline] __hrtimer_run_queues+0x55b/0xcf0 kernel/time/hrtimer.c:1750 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1085 [inline] __sysvec_apic_timer_interrupt+0x139/0x470 arch/x86/kernel/apic/apic.c:1102 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:csd_lock_wait kernel/smp.c:440 [inline] RIP: 0010:smp_call_function_single+0x292/0x530 kernel/smp.c:758 Code: 0f 85 24 02 00 00 44 8b 6c 24 48 44 89 ee 83 e6 01 31 ff e8 90 e4 0b 00 41 83 e5 01 75 0a e8 25 e1 0b 00 e9 eb 00 00 00 f3 90 <42> 0f b6 04 23 84 c0 75 15 f7 44 24 48 01 00 00 00 0f 84 cd 00 00 RSP: 0018:ffffc900030375e0 EFLAGS: 00000293 RAX: ffffffff81747bbe RBX: 1ffff92000606ec5 RCX: ffff888062f1bb80 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc900030376d0 R08: ffffffff81747b90 R09: ffffed1017367681 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 0000000000000001 R14: ffffc90003037628 R15: 0000000000000000 rcu_barrier+0x262/0x4e0 kernel/rcu/tree.c:4078 netdev_run_todo+0x381/0xc40 net/core/dev.c:10621 nsim_destroy+0xac/0x140 drivers/net/netdevsim/netdev.c:387 __nsim_dev_port_del+0x153/0x1b0 drivers/net/netdevsim/dev.c:1349 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1362 [inline] nsim_dev_reload_destroy+0x15e/0x240 drivers/net/netdevsim/dev.c:1561 nsim_dev_remove+0x59/0x100 drivers/net/netdevsim/dev.c:1577 __device_release_driver drivers/base/dd.c:1227 [inline] device_release_driver_internal+0x4cb/0x7f0 drivers/base/dd.c:1262 bus_remove_device+0x2e5/0x400 drivers/base/bus.c:529 device_del+0x6e2/0xbd0 drivers/base/core.c:3597 device_unregister+0x1c/0xc0 drivers/base/core.c:3630 nsim_bus_dev_del drivers/net/netdevsim/bus.c:454 [inline] del_device_store+0x321/0x470 drivers/net/netdevsim/bus.c:354 kernfs_fop_write_iter+0x3a2/0x4f0 fs/kernfs/file.c:296 call_write_iter include/linux/fs.h:2172 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0xacf/0xe50 fs/read_write.c:594 ksys_write+0x1a2/0x2c0 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fe9190ab9ef Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 b9 80 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 0c 81 02 00 48 RSP: 002b:00007ffe3af56e60 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007fe9190ab9ef RDX: 0000000000000001 RSI: 00007ffe3af56eb0 RDI: 0000000000000005 RBP: 00007fe9190f8039 R08: 0000000000000000 R09: 00007ffe3af56cb7 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000001 R13: 00007ffe3af56eb0 R14: 00007fe919d03620 R15: 0000000000000003