rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P14428 (detected by 0, t=10502 jiffies, g=89037, q=638 ncpus=2) task:syz-executor.3 state:R running task stack:21736 pid:14428 ppid:14408 flags:0x0000400e Call Trace: sched_show_task+0x4d5/0x670 kernel/sched/core.c:8942 rcu_print_detail_task_stall_rnp kernel/rcu/tree_stall.h:261 [inline] print_other_cpu_stall+0x1299/0x1640 kernel/rcu/tree_stall.h:605 check_cpu_stall kernel/rcu/tree_stall.h:777 [inline] rcu_pending kernel/rcu/tree.c:3890 [inline] rcu_sched_clock_irq+0xaf6/0x1200 kernel/rcu/tree.c:2393 update_process_times+0x147/0x1b0 kernel/time/timer.c:1869 tick_sched_handle kernel/time/tick-sched.c:254 [inline] tick_sched_timer+0x386/0x550 kernel/time/tick-sched.c:1501 __run_hrtimer kernel/time/hrtimer.c:1686 [inline] __hrtimer_run_queues+0x5a7/0xe50 kernel/time/hrtimer.c:1750 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 RIP: 0010:finish_task_switch+0x1d3/0x810 kernel/sched/core.c:5124 Code: 37 0b 00 48 83 c4 08 4c 89 f7 e8 98 30 00 00 0f 1f 44 00 00 4c 89 f7 e8 7b 20 36 09 e8 36 26 32 00 fb 49 8d bc 24 f8 15 00 00 <48> 89 f8 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 42 0f b6 04 28 RSP: 0018:ffffc900031ced28 EFLAGS: 00000282 RAX: ae80e4aba93a7800 RBX: ffff888022001df4 RCX: ffffffff816acf0a RDX: dffffc0000000000 RSI: ffffffff8aec01c0 RDI: ffff88807b36b3b8 RBP: ffffc900031ced70 R08: dffffc0000000000 R09: fffffbfff209385c R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807b369dc0 R13: 1ffff110173076eb R14: ffff8880b983aa00 R15: ffff8880b983b758 context_switch kernel/sched/core.c:5248 [inline] __schedule+0x1435/0x4550 kernel/sched/core.c:6558 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870 irqentry_exit+0x53/0x80 kernel/entry/common.c:439 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 RIP: 0010:lock_acquire+0x26f/0x5a0 kernel/locking/lockdep.c:5666 Code: 2b 00 74 08 4c 89 f7 e8 7f a9 77 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25 RSP: 0018:ffffc900031cf0c0 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff92000639e24 RCX: 1ffff92000639dc4 RDX: dffffc0000000000 RSI: ffffffff8aec1340 RDI: ffffffff8b3d45e0 RBP: ffffc900031cf208 R08: dffffc0000000000 R09: fffffbfff2093845 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000639e20 R13: dffffc0000000000 R14: ffffc900031cf120 R15: 0000000000000246 rcu_lock_acquire include/linux/rcupdate.h:350 [inline] rcu_read_lock include/linux/rcupdate.h:791 [inline] xa_get_mark+0x196/0x680 lib/xarray.c:1945 devlinks_xa_find_get+0x122/0x2d0 net/devlink/leftover.c:308 devlinks_xa_find_get_first net/devlink/leftover.c:328 [inline] devlink_nl_cmd_port_get_dumpit+0x130/0x560 net/devlink/leftover.c:1556 netlink_dump+0x603/0xc50 net/netlink/af_netlink.c:2231 __netlink_dump_start+0x541/0x6e0 net/netlink/af_netlink.c:2335 genl_family_rcv_msg_dumpit net/netlink/genetlink.c:714 [inline] genl_family_rcv_msg net/netlink/genetlink.c:830 [inline] genl_rcv_msg+0x9f3/0xf70 net/netlink/genetlink.c:850 netlink_rcv_skb+0x1cd/0x410 net/netlink/af_netlink.c:2508 genl_rcv+0x24/0x40 net/netlink/genetlink.c:861 netlink_unicast_kernel net/netlink/af_netlink.c:1326 [inline] netlink_unicast+0x7d8/0x970 net/netlink/af_netlink.c:1352 netlink_sendmsg+0xa26/0xd60 net/netlink/af_netlink.c:1874 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] __sys_sendto+0x480/0x600 net/socket.c:2148 __do_sys_sendto net/socket.c:2160 [inline] __se_sys_sendto net/socket.c:2156 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2156 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f9f6287ebdc Code: 1a 51 02 00 44 8b 4c 24 2c 4c 8b 44 24 20 89 c5 44 8b 54 24 28 48 8b 54 24 18 b8 2c 00 00 00 48 8b 74 24 10 8b 7c 24 08 0f 05 <48> 3d 00 f0 ff ff 77 34 89 ef 48 89 44 24 08 e8 60 51 02 00 48 8b RSP: 002b:00007ffdca66e970 EFLAGS: 00000293 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007f9f634e4620 RCX: 00007f9f6287ebdc RDX: 0000000000000034 RSI: 00007f9f634e4670 RDI: 0000000000000005 RBP: 0000000000000000 R08: 00007ffdca66e9c4 R09: 000000000000000c R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000005 R13: 00007ffdca66ea38 R14: 00007f9f634e4670 R15: 0000000000000000 rcu: rcu_preempt kthread starved for 10388 jiffies! g89037 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:27032 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5245 [inline] __schedule+0x142d/0x4550 kernel/sched/core.c:6558 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870 irqentry_exit+0x53/0x80 kernel/entry/common.c:439 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 RIP: 0010:kasan_check_range+0x5/0x290 mm/kasan/generic.c:188 Code: c7 e8 8f b9 a9 08 31 c0 c3 0f 0b b8 ea ff ff ff c3 0f 0b b8 ea ff ff ff c3 cc cc cc cc cc cc cc cc cc cc cc cc 55 41 57 41 56 <53> b0 01 48 85 f6 0f 84 9a 01 00 00 48 89 fd 48 01 f5 0f 82 5a 02 RSP: 0018:ffffc90000157b78 EFLAGS: 00000246 RAX: 0000000000000001 RBX: 1ffff11027fddb28 RCX: ffffffff8a938926 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88813feed940 RBP: ffffc90000157cb0 R08: dffffc0000000000 R09: ffffed1017307541 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88813feed940 R13: 1ffff9200002af78 R14: ffff88813feeebb8 R15: dffffc0000000000 instrument_atomic_read include/linux/instrumented.h:72 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] test_ti_thread_flag include/linux/thread_info.h:118 [inline] need_resched include/linux/sched.h:2231 [inline] schedule+0xd6/0x180 kernel/sched/core.c:6636 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1965 rcu_gp_fqs_loop+0x2d2/0x1150 kernel/rcu/tree.c:1706 rcu_gp_kthread+0xa3/0x3b0 kernel/rcu/tree.c:1905 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 rcu: Stack dump where RCU GP kthread last ran: CPU: 0 PID: 14428 Comm: syz-executor.3 Not tainted 6.1.92-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:finish_task_switch+0x1d3/0x810 kernel/sched/core.c:5124 Code: 37 0b 00 48 83 c4 08 4c 89 f7 e8 98 30 00 00 0f 1f 44 00 00 4c 89 f7 e8 7b 20 36 09 e8 36 26 32 00 fb 49 8d bc 24 f8 15 00 00 <48> 89 f8 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 42 0f b6 04 28 RSP: 0018:ffffc900031ced28 EFLAGS: 00000282 RAX: ae80e4aba93a7800 RBX: ffff888022001df4 RCX: ffffffff816acf0a RDX: dffffc0000000000 RSI: ffffffff8aec01c0 RDI: ffff88807b36b3b8 RBP: ffffc900031ced70 R08: dffffc0000000000 R09: fffffbfff209385c R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807b369dc0 R13: 1ffff110173076eb R14: ffff8880b983aa00 R15: ffff8880b983b758 FS: 000055555734a480(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b33b32000 CR3: 00000000156d5000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: context_switch kernel/sched/core.c:5248 [inline] __schedule+0x1435/0x4550 kernel/sched/core.c:6558 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870 irqentry_exit+0x53/0x80 kernel/entry/common.c:439 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 RIP: 0010:lock_acquire+0x26f/0x5a0 kernel/locking/lockdep.c:5666 Code: 2b 00 74 08 4c 89 f7 e8 7f a9 77 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25 RSP: 0018:ffffc900031cf0c0 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff92000639e24 RCX: 1ffff92000639dc4 RDX: dffffc0000000000 RSI: ffffffff8aec1340 RDI: ffffffff8b3d45e0 RBP: ffffc900031cf208 R08: dffffc0000000000 R09: fffffbfff2093845 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000639e20 R13: dffffc0000000000 R14: ffffc900031cf120 R15: 0000000000000246 rcu_lock_acquire include/linux/rcupdate.h:350 [inline] rcu_read_lock include/linux/rcupdate.h:791 [inline] xa_get_mark+0x196/0x680 lib/xarray.c:1945 devlinks_xa_find_get+0x122/0x2d0 net/devlink/leftover.c:308 devlinks_xa_find_get_first net/devlink/leftover.c:328 [inline] devlink_nl_cmd_port_get_dumpit+0x130/0x560 net/devlink/leftover.c:1556 netlink_dump+0x603/0xc50 net/netlink/af_netlink.c:2231 __netlink_dump_start+0x541/0x6e0 net/netlink/af_netlink.c:2335 genl_family_rcv_msg_dumpit net/netlink/genetlink.c:714 [inline] genl_family_rcv_msg net/netlink/genetlink.c:830 [inline] genl_rcv_msg+0x9f3/0xf70 net/netlink/genetlink.c:850 netlink_rcv_skb+0x1cd/0x410 net/netlink/af_netlink.c:2508 genl_rcv+0x24/0x40 net/netlink/genetlink.c:861 netlink_unicast_kernel net/netlink/af_netlink.c:1326 [inline] netlink_unicast+0x7d8/0x970 net/netlink/af_netlink.c:1352 netlink_sendmsg+0xa26/0xd60 net/netlink/af_netlink.c:1874 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] __sys_sendto+0x480/0x600 net/socket.c:2148 __do_sys_sendto net/socket.c:2160 [inline] __se_sys_sendto net/socket.c:2156 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2156 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f9f6287ebdc Code: 1a 51 02 00 44 8b 4c 24 2c 4c 8b 44 24 20 89 c5 44 8b 54 24 28 48 8b 54 24 18 b8 2c 00 00 00 48 8b 74 24 10 8b 7c 24 08 0f 05 <48> 3d 00 f0 ff ff 77 34 89 ef 48 89 44 24 08 e8 60 51 02 00 48 8b RSP: 002b:00007ffdca66e970 EFLAGS: 00000293 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007f9f634e4620 RCX: 00007f9f6287ebdc RDX: 0000000000000034 RSI: 00007f9f634e4670 RDI: 0000000000000005 RBP: 0000000000000000 R08: 00007ffdca66e9c4 R09: 000000000000000c R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000005 R13: 00007ffdca66ea38 R14: 00007f9f634e4670 R15: 0000000000000000