rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P4452/1:b..l P4449/1:b..l (detected by 1, t=10503 jiffies, g=7973, q=293 ncpus=2) task:kworker/u4:7 state:R running task stack:25688 pid:4449 ppid:2 flags:0x00004000 Workqueue: bat_events batadv_nc_worker 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_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:debug_lockdep_rcu_enabled+0x12/0x30 kernel/rcu/update.c:280 Code: 26 0c 8b e8 60 da 9f f6 0f 0b eb d0 cc cc cc cc cc cc cc cc cc cc cc cc 31 c0 83 3d d7 4c e8 03 00 74 1d 83 3d 72 80 e8 03 00 <74> 14 65 48 8b 0d b4 93 4f 75 31 c0 83 b9 dc 0a 00 00 00 0f 94 c0 RSP: 0018:ffffc90003f77bf0 EFLAGS: 00000202 RAX: 0000000000000000 RBX: ffff88805b82f700 RCX: ffff88801b74bb80 RDX: 0000000000000000 RSI: ffffffff8b5e67a0 RDI: ffffffff8b5e6760 RBP: 0000000000000000 R08: ffffffff8a8355bd R09: fffffbfff224a04d R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88802763cc80 R13: 0000000000000281 R14: ffff88805b82f700 R15: dffffc0000000000 rcu_read_unlock include/linux/rcupdate.h:820 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline] batadv_nc_worker+0x1ef/0x610 net/batman-adv/network-coding.c:719 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 task:dhcpcd-run-hook state:R running task stack:24264 pid:4452 ppid:3917 flags:0x00004000 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_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:lock_acquire+0x26f/0x5a0 kernel/locking/lockdep.c:5666 Code: 2b 00 74 08 4c 89 f7 e8 ff 8b 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:ffffc900035272e0 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff920006a4e68 RCX: 1ffff920006a4e08 RDX: dffffc0000000000 RSI: ffffffff8b0c14c0 RDI: ffffffff8b5e67c0 RBP: ffffc90003527430 R08: dffffc0000000000 R09: fffffbfff224a04d R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920006a4e64 R13: dffffc0000000000 R14: ffffc90003527340 R15: 0000000000000246 rcu_lock_acquire include/linux/rcupdate.h:350 [inline] rcu_read_lock include/linux/rcupdate.h:791 [inline] is_bpf_text_address+0x3e/0x2a0 kernel/bpf/core.c:735 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_slab_alloc+0x65/0x70 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x52/0x3a0 mm/slab.h:737 kmem_cache_alloc_bulk+0x3a2/0x4d0 mm/slub.c:3854 mt_alloc_bulk lib/maple_tree.c:157 [inline] mas_alloc_nodes+0x3df/0x800 lib/maple_tree.c:1299 mas_node_count_gfp lib/maple_tree.c:1359 [inline] mas_preallocate+0x12d/0x350 lib/maple_tree.c:5815 __mmap_region mm/mmap.c:2753 [inline] mmap_region+0xfef/0x2660 mm/mmap.c:2904 do_mmap+0x8c5/0xf60 mm/mmap.c:1424 vm_mmap_pgoff+0x1ca/0x2d0 mm/util.c:520 ksys_mmap_pgoff+0x4f5/0x6d0 mm/mmap.c:1470 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:0x7f28ceff8b74 RSP: 002b:00007ffc2cee48e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007ffc2cee4998 RCX: 00007f28ceff8b74 RDX: 0000000000000003 RSI: 0000000000004000 RDI: 00007f28cefd7000 RBP: 00007ffc2cee4c50 R08: 0000000000000003 R09: 00000000000be000 R10: 0000000000000812 R11: 0000000000000246 R12: 00007f28cefdb0c0 R13: 00007ffc2cee4cd8 R14: 00000000000be138 R15: 0000000000000000 rcu: rcu_preempt kthread starved for 10574 jiffies! g7973 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:27064 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: 1 PID: 4453 Comm: syz.2.18 Not tainted 6.1.127-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline] RIP: 0010:_raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:202 Code: a1 95 f5 ff 90 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 8e 87 ad f6 48 89 df e8 86 c5 ae f6 e8 11 1d d4 f6 fb bf 01 00 00 00 76 4f a1 f6 65 8b 05 17 2f 45 75 85 c0 74 02 5b c3 e8 c4 52 43 RSP: 0018:ffffc90003517b30 EFLAGS: 00000286 RAX: 253342d22319ed00 RBX: ffff88802c0e40c0 RCX: ffffffff97357103 RDX: dffffc0000000000 RSI: ffffffff8b0c0340 RDI: 0000000000000001 RBP: ffffc90003517c70 R08: dffffc0000000000 R09: ffffed100581c819 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100581c86b R13: 0000000004000000 R14: 0000000000000011 R15: ffff88802c0e4358 FS: 0000555570448500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d15ffff CR3: 000000005a5d9000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: spin_unlock_irq include/linux/spinlock.h:401 [inline] get_signal+0x154b/0x17d0 kernel/signal.c:2874 arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:174 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f12b1b8cd29 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:00007ffe02ce4c38 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 00007f12b1da5fa0 RCX: 00007f12b1b8cd29 RDX: 0000000020000300 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 00007f12b1c0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f12b1da5fa0 R14: 00007f12b1da5fa0 R15: 0000000000001c9e