rcu: INFO: rcu_preempt self-detected stall on CPU rcu: 1-...!: (1 GPs behind) idle=60ac/1/0x4000000000000000 softirq=11013/11014 fqs=10 rcu: (t=10500 jiffies g=12385 q=794 ncpus=2) rcu: rcu_preempt kthread starved for 10472 jiffies! g12385 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:I stack:28240 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0xee1/0x59f0 kernel/sched/core.c:6710 schedule+0xe7/0x1b0 kernel/sched/core.c:6786 schedule_timeout+0x157/0x2c0 kernel/time/timer.c:2167 rcu_gp_fqs_loop+0x1ec/0xa50 kernel/rcu/tree.c:1609 rcu_gp_kthread+0x249/0x380 kernel/rcu/tree.c:1808 kthread+0x33a/0x430 kernel/kthread.c:389 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:296 RIP: 0000:0x0 Code: Unable to access opcode bytes at 0xffffffffffffffd6. RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 rcu: Stack dump where RCU GP kthread last ran: Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 5089 Comm: kworker/0:4 Not tainted 6.5.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 Workqueue: events nsim_dev_trap_report_work RIP: 0010:pie_calculate_probability+0x355/0x850 net/sched/sch_pie.c:387 Code: 85 eb 51 b8 1e 05 00 49 01 c4 e8 d6 31 2e f9 4f 8d 34 27 31 ff 4c 89 e6 4c 89 73 20 e8 54 2d 2e f9 4d 85 e4 0f 8f 90 02 00 00 b6 31 2e f9 4c 89 f6 4c 89 ff e8 bb 2c 2e f9 4d 39 f7 73 0d e8 RSP: 0018:ffffc90000007bd0 EFLAGS: 00000286 RAX: 0000000000000000 RBX: ffffc90012692df0 RCX: ffffffff88583fbc RDX: ffff88801fa79dc0 RSI: 0000000000000100 RDI: 0000000000000007 RBP: ffff88801f0c9b00 R08: 0000000000000007 R09: 0000000000000000 R10: fffffff0a3da8872 R11: 000000000000004e R12: fffffff0a3da8872 R13: 0000000000000000 R14: fffffff0a3da8872 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000080 CR3: 0000000077efd000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: fq_pie_timer+0x1da/0x4f0 net/sched/sch_fq_pie.c:387 call_timer_fn+0x1a0/0x580 kernel/time/timer.c:1700 expire_timers kernel/time/timer.c:1751 [inline] __run_timers+0x764/0xb10 kernel/time/timer.c:2022 run_timer_softirq+0x58/0xd0 kernel/time/timer.c:2035 __do_softirq+0x218/0x965 kernel/softirq.c:553 do_softirq kernel/softirq.c:454 [inline] do_softirq+0xaa/0xe0 kernel/softirq.c:441 __local_bh_enable_ip+0xf8/0x120 kernel/softirq.c:381 spin_unlock_bh include/linux/spinlock.h:396 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:820 [inline] nsim_dev_trap_report_work+0x86a/0xc70 drivers/net/netdevsim/dev.c:850 process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2597 worker_thread+0x687/0x1110 kernel/workqueue.c:2748 kthread+0x33a/0x430 kernel/kthread.c:389 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:296 RIP: 0000:0x0 Code: Unable to access opcode bytes at 0xffffffffffffffd6. RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 CPU: 1 PID: 5508 Comm: syz-executor283 Not tainted 6.5.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 RIP: 0010:write_comp_data+0x15/0x90 kernel/kcov.c:230 Code: b9 03 00 48 8b 80 f8 15 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 65 8b 05 e1 4d 7d 7e 49 89 f1 89 c6 49 89 d2 81 e6 00 01 00 00 <49> 89 f8 65 48 8b 14 25 80 b9 03 00 a9 00 01 ff 00 74 0e 85 f6 74 RSP: 0018:ffffc900001e0bb8 EFLAGS: 00000206 RAX: 0000000000000101 RBX: ffffc9000e437580 RCX: ffffffff88583d77 RDX: 0000000000000000 RSI: 0000000000000100 RDI: 0000000000000005 RBP: ffff888075804b00 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000094000 R12: 0000000000000000 R13: 0000000000000000 R14: ffffed100eb0095a R15: 0000000000000000 FS: 000055555674b380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 0000000083900000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: pie_calculate_probability+0x107/0x850 net/sched/sch_pie.c:324 fq_pie_timer+0x1da/0x4f0 net/sched/sch_fq_pie.c:387 call_timer_fn+0x1a0/0x580 kernel/time/timer.c:1700 expire_timers kernel/time/timer.c:1751 [inline] __run_timers+0x764/0xb10 kernel/time/timer.c:2022 run_timer_softirq+0x58/0xd0 kernel/time/timer.c:2035 __do_softirq+0x218/0x965 kernel/softirq.c:553 invoke_softirq kernel/softirq.c:427 [inline] __irq_exit_rcu kernel/softirq.c:632 [inline] irq_exit_rcu+0xb7/0x120 kernel/softirq.c:644 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1109 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:lock_release+0x3b8/0x680 kernel/locking/lockdep.c:5769 Code: 7e 83 f8 01 0f 85 dd 01 00 00 9c 58 f6 c4 02 0f 85 c8 01 00 00 48 f7 04 24 00 02 00 00 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c5 48 c7 45 00 00 00 00 00 c7 45 08 00 00 00 00 48 8b 84 24 RSP: 0018:ffffc9000316ecf0 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: 218b541b50059ef4 RCX: ffffc9000316ed40 RDX: 1ffff11002cd7157 RSI: ffffffff8a6c7a00 RDI: ffffffff8ac80660 RBP: 1ffff9200062dda0 R08: 0000000000000000 R09: fffffbfff1d5700a R10: ffffffff8eab8057 R11: 0000000000072e77 R12: 0000000000000001 R13: 0000000000000002 R14: ffff8880166b8ac0 R15: ffff8880166b8000 might_alloc include/linux/sched/mm.h:304 [inline] prepare_alloc_pages.constprop.0+0x15c/0x550 mm/page_alloc.c:4248 __alloc_pages+0x14e/0x4a0 mm/page_alloc.c:4466 alloc_pages+0x1a9/0x270 mm/mempolicy.c:2279 __get_free_pages+0xc/0x40 mm/page_alloc.c:4527 kasan_populate_vmalloc_pte+0x2e/0x150 mm/kasan/shadow.c:323 apply_to_pte_range mm/memory.c:2596 [inline] apply_to_pmd_range mm/memory.c:2640 [inline] apply_to_pud_range mm/memory.c:2676 [inline] apply_to_p4d_range mm/memory.c:2712 [inline] __apply_to_page_range+0x5ed/0xd40 mm/memory.c:2746 alloc_vmap_area+0x85f/0x2060 mm/vmalloc.c:1641 __get_vm_area_node+0x132/0x3d0 mm/vmalloc.c:2595 __vmalloc_node_range+0x27a/0x1540 mm/vmalloc.c:3276 kvmalloc_node+0x14b/0x1a0 mm/util.c:629 kvmalloc include/linux/slab.h:720 [inline] kvmalloc_array include/linux/slab.h:738 [inline] kvcalloc include/linux/slab.h:743 [inline] fq_pie_init+0x555/0x8f0 net/sched/sch_fq_pie.c:429 qdisc_create+0x4f7/0x10a0 net/sched/sch_api.c:1326 tc_modify_qdisc+0x4a4/0x1bf0 net/sched/sch_api.c:1720 rtnetlink_rcv_msg+0x439/0xd30 net/core/rtnetlink.c:6424 netlink_rcv_skb+0x16b/0x440 net/netlink/af_netlink.c:2549 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x539/0x800 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x93c/0xe30 net/netlink/af_netlink.c:1914 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg+0xd9/0x180 net/socket.c:748 ____sys_sendmsg+0x6ac/0x940 net/socket.c:2494 ___sys_sendmsg+0x135/0x1d0 net/socket.c:2548 __sys_sendmsg+0x117/0x1e0 net/socket.c:2577 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fed7e8ce559 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 1d 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffcc0960ad8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fed7e8ce559 RDX: 0000000000000000 RSI: 00000000200007c0 RDI: 0000000000000003 RBP: 00000000000f4240 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fed7e945b40 R13: 00007fed7e947d00 R14: 0000000000042130 R15: 00007ffcc0960b98