rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P3623/1:b..l (detected by 0, t=10503 jiffies, g=14225, q=1280 ncpus=2) task:udevd state:R running task stack:22600 pid:3623 ppid:1 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5241 [inline] __schedule+0x143f/0x4570 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_reschedule_ipi+0x16/0x20 arch/x86/include/asm/idtentry.h:696 RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:182 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0xc/0x60 kernel/kcov.c:216 Code: 89 fb e8 17 00 00 00 48 8b 3d e8 71 10 0d 48 89 de 5b e9 47 bf 56 00 cc cc cc cc cc cc cc 48 8b 04 24 65 48 8b 0d 34 d3 77 7e <65> 8b 15 35 d3 77 7e 81 e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75 RSP: 0018:ffffc900032a7400 EFLAGS: 00000246 RAX: ffffffff8197c026 RBX: 0000000000000000 RCX: ffff88807c9d5940 RDX: 0000000000000000 RSI: 00007fb717d165f4 RDI: ffffffffa0000950 RBP: 0000000000000000 R08: ffffffff8197bfab R09: fffffbfff2249c4d R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffffa0000950 R13: dffffc0000000000 R14: 0000000000000001 R15: 00007fb717d165f4 __lt_find include/linux/rbtree_latch.h:113 [inline] latch_tree_find include/linux/rbtree_latch.h:208 [inline] bpf_ksym_find kernel/bpf/core.c:702 [inline] is_bpf_text_address+0x1b6/0x2a0 kernel/bpf/core.c:736 kernel_text_address+0x9f/0xd0 kernel/extable.c:125 __kernel_text_address+0x9/0x40 kernel/extable.c:79 unwind_get_return_address+0x49/0x80 arch/x86/kernel/unwind_orc.c:323 arch_stack_walk+0xf3/0x140 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x97/0xb0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc+0xb2/0x230 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] tomoyo_encode2 security/tomoyo/realpath.c:45 [inline] tomoyo_encode+0x26b/0x530 security/tomoyo/realpath.c:80 tomoyo_realpath_from_path+0x594/0x5d0 security/tomoyo/realpath.c:283 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x29f/0x710 security/tomoyo/file.c:822 security_inode_getattr+0xcf/0x120 security/security.c:1361 vfs_getattr+0x26/0x360 fs/stat.c:158 vfs_statx+0x194/0x4b0 fs/stat.c:233 vfs_fstatat fs/stat.c:267 [inline] __do_sys_newfstatat fs/stat.c:437 [inline] __se_sys_newfstatat fs/stat.c:431 [inline] __x64_sys_newfstatat+0x151/0x1e0 fs/stat.c:431 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:0x7fb717d165f4 RSP: 002b:00007ffe12368d88 EFLAGS: 00000202 ORIG_RAX: 0000000000000106 RAX: ffffffffffffffda RBX: 000055ebef9d9da0 RCX: 00007fb717d165f4 RDX: 00007ffe12368da0 RSI: 00007fb717db3130 RDI: 000000000000000d RBP: 000055ebefa16a00 R08: 0000000000090800 R09: 000055ebef9c06b0 R10: 0000000000001000 R11: 0000000000000202 R12: 00007ffe12368da0 R13: 00000000000000ff R14: 000055ebe19781c4 R15: 0000000000000000 rcu: rcu_preempt kthread starved for 10530 jiffies! g14225 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:26144 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5241 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6558 schedule+0xbf/0x180 kernel/sched/core.c:6634 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:295 rcu: Stack dump where RCU GP kthread last ran: CPU: 0 PID: 5035 Comm: syz.8.180 Not tainted 6.1.124-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:debug_check_no_locks_freed+0xa1/0x4a0 kernel/locking/lockdep.c:6456 Code: 44 13 0b f3 65 4c 8b 35 2d 79 97 7e 48 c7 c0 74 40 9b 8e 48 c1 e8 03 0f b6 04 10 84 c0 0f 85 53 03 00 00 83 3d 43 4a 30 0d 00 <0f> 84 ed 01 00 00 48 89 5c 24 38 4c 8d a4 24 80 00 00 00 4c 89 e3 RSP: 0018:ffffc90000007920 EFLAGS: 00000202 RAX: 0000000000000000 RBX: 1ffff92000000f2c RCX: fffffffe40711400 RDX: dffffc0000000000 RSI: 00000000000001e8 RDI: ffff88807c311400 RBP: ffffc90000007a10 R08: ffffffff813ddb68 R09: ffffed100f8622bd R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: ffff88807c311400 R14: ffff888030cb0000 R15: 0000000000000000 FS: 00007f9c822ed6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9c822ecf98 CR3: 0000000057db4000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000082 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: slab_free_hook mm/slub.c:1696 [inline] slab_free_freelist_hook mm/slub.c:1750 [inline] slab_free mm/slub.c:3661 [inline] kmem_cache_free+0x22e/0x510 mm/slub.c:3683 tcp_write_queue_purge+0x132/0x2f0 net/ipv4/tcp.c:3099 tcp_done_with_error+0x3d/0xc0 net/ipv4/tcp_input.c:4393 tcp_write_err net/ipv4/tcp_timer.c:70 [inline] tcp_probe_timer net/ipv4/tcp_timer.c:396 [inline] tcp_write_timer_handler+0x640/0x8e0 net/ipv4/tcp_timer.c:663 tcp_write_timer+0x12e/0x280 net/ipv4/tcp_timer.c:676 call_timer_fn+0x1ad/0x6b0 kernel/time/timer.c:1504 expire_timers kernel/time/timer.c:1549 [inline] __run_timers+0x67c/0x890 kernel/time/timer.c:1820 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1833 handle_softirqs+0x2ee/0xa40 kernel/softirq.c:571 __do_softirq kernel/softirq.c:605 [inline] invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x157/0x240 kernel/softirq.c:654 irq_exit_rcu+0x5/0x20 kernel/softirq.c:666 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:__schedule+0x1453/0x4570 kernel/sched/core.c:6566 Code: e3 16 27 f7 48 8b 74 24 18 48 89 33 48 8b 7c 24 30 e8 61 3c 45 f6 48 89 c7 e8 89 4b a4 f6 48 c7 84 24 00 01 00 00 0e 36 e0 45 <48> b8 00 00 00 00 00 fc ff df 48 8b 8c 24 f8 00 00 00 48 c7 04 08 RSP: 0018:ffffc900036f78e0 EFLAGS: 00000282 RAX: 0000000000000000 RBX: ffff8880b8e3a9d0 RCX: ffffffff816b126a RDX: dffffc0000000000 RSI: ffffffff8b0c0340 RDI: ffff888030cb15f8 RBP: ffffc900036f7a90 R08: dffffc0000000000 R09: fffffbfff2249c55 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888030cb0530 R13: 1ffff110060020a5 R14: dffffc0000000000 R15: 1ffff110061960a6 preempt_schedule_common+0x83/0xd0 kernel/sched/core.c:6727 preempt_schedule+0xd9/0xe0 kernel/sched/core.c:6751 preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:34 __mutex_lock_common kernel/locking/mutex.c:613 [inline] __mutex_lock+0x30b/0xd80 kernel/locking/mutex.c:747 __do_sys_perf_event_open kernel/events/core.c:12749 [inline] __se_sys_perf_event_open+0x43ff/0x4960 kernel/events/core.c:12331 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:0x7f9c81585d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9c822ed038 EFLAGS: 00000246 ORIG_RAX: 000000000000012a RAX: ffffffffffffffda RBX: 00007f9c81776080 RCX: 00007f9c81585d29 RDX: ffefffffffffffff RSI: 0000000000000000 RDI: 0000000020000700 RBP: 00007f9c81601b08 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f9c81776080 R15: 00007ffca1496c58