rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P10012/1:b..l P1113/1:b..l rcu: (detected by 1, t=10502 jiffies, g=51353, q=523 ncpus=2) task:kworker/u8:7 state:R running task stack:19536 pid:1113 tgid:1113 ppid:2 flags:0x00004000 Workqueue: bat_events batadv_nc_worker Call Trace: context_switch kernel/sched/core.c:5188 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6529 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:6851 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:707 RIP: 0010:lock_acquire+0x264/0x550 kernel/locking/lockdep.c:5763 Code: 2b 00 74 08 4c 89 f7 e8 0a 0e 8b 00 f6 44 24 61 02 0f 85 85 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:ffffc900040ff980 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff9200081ff3c RCX: d1677ee81bc09a00 RDX: dffffc0000000000 RSI: ffffffff8c0ae720 RDI: ffffffff8c606920 RBP: ffffc900040ffad0 R08: ffffffff93726807 R09: 1ffffffff26e4d00 R10: dffffc0000000000 R11: fffffbfff26e4d01 R12: 1ffff9200081ff38 R13: dffffc0000000000 R14: ffffc900040ff9e0 R15: 0000000000000246 rcu_lock_acquire include/linux/rcupdate.h:326 [inline] rcu_read_lock include/linux/rcupdate.h:838 [inline] batadv_nc_process_nc_paths+0xd6/0x3a0 net/batman-adv/network-coding.c:687 batadv_nc_worker+0x42a/0x610 net/batman-adv/network-coding.c:728 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0xa2e/0x1830 kernel/workqueue.c:3312 worker_thread+0x86d/0xd40 kernel/workqueue.c:3390 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 task:syz.4.1385 state:R running task stack:25040 pid:10012 tgid:10011 ppid:8934 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5188 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6529 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:6851 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:xas_start+0x1/0x7b0 lib/xarray.c:182 Code: 41 5e 41 5f 5d e9 ca 09 40 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 <41> 57 41 56 41 55 41 54 53 50 49 89 fc 48 bb 00 00 00 00 00 fc ff RSP: 0018:ffffc9000928f770 EFLAGS: 00000246 RAX: ffffffff8bb031b4 RBX: 0000000000000001 RCX: 0000000000040000 RDX: ffffc90009951000 RSI: 000000000003ffff RDI: ffffc9000928f840 RBP: dffffc0000000000 R08: ffffffff81ca4a38 R09: 1ffffffff26e4d00 R10: dffffc0000000000 R11: fffffbfff26e4d01 R12: ffffc9000928f840 R13: dffffc0000000000 R14: ffffc9000928f858 R15: ffffc9000928f840 xas_load+0x2c/0x5c0 lib/xarray.c:238 filemap_get_entry+0x1f0/0x3b0 mm/filemap.c:1840 shmem_get_folio_gfp+0x29a/0x2370 mm/shmem.c:2108 shmem_get_folio mm/shmem.c:2297 [inline] shmem_write_begin+0x170/0x4d0 mm/shmem.c:2902 generic_perform_write+0x39b/0x840 mm/filemap.c:4019 shmem_file_write_iter+0xfc/0x120 mm/shmem.c:3078 new_sync_write fs/read_write.c:497 [inline] vfs_write+0xa74/0xc90 fs/read_write.c:590 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2a33175e1f RSP: 002b:00007f2a33f16e00 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000001000000 RCX: 00007f2a33175e1f RDX: 0000000001000000 RSI: 00007f2a28800000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000006204 R10: 0000000000000770 R11: 0000000000000293 R12: 0000000000000003 R13: 00007f2a33f16f00 R14: 00007f2a33f16ec0 R15: 00007f2a28800000 rcu: rcu_preempt kthread starved for 10572 jiffies! g51353 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:24176 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5188 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6529 __schedule_loop kernel/sched/core.c:6606 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6621 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2581 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2034 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2236 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 rcu: Stack dump where RCU GP kthread last ran: Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline] NMI backtrace for cpu 0 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:106 [inline] NMI backtrace for cpu 0 skipped: idling at acpi_safe_halt+0x21/0x30 drivers/acpi/processor_idle.c:111