rcu: INFO: rcu_preempt self-detected stall on CPU rcu: 0-....: (10500 ticks this GP) idle=6a34/1/0x4000000000000000 softirq=10614/10614 fqs=152 (t=10500 jiffies g=11357 q=522 ncpus=2) rcu: rcu_preempt kthread timer wakeup didn't happen for 992 jiffies! g11357 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 rcu: Possible timer handling issue on cpu=1 timer-softirq=4301 rcu: rcu_preempt kthread starved for 993 jiffies! g11357 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:I stack:26048 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6561 schedule+0xbf/0x180 kernel/sched/core.c:6637 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: Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 3758 Comm: kworker/u4:7 Not tainted 6.1.100-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Workqueue: bat_events batadv_nc_worker RIP: 0010:mark_lock+0xa/0x340 kernel/locking/lockdep.c:4589 Code: 4c 89 ff e8 b8 47 77 00 e9 66 ff ff ff e8 2e 7f 20 09 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 41 57 41 56 41 55 41 54 53 <48> 83 ec 10 49 89 f7 48 89 3c 24 49 bd 00 00 00 00 00 fc ff df 83 RSP: 0018:ffffc90004b378c8 EFLAGS: 00000046 RAX: 0000000000000000 RBX: ffff88805eb42880 RCX: dffffc0000000000 RDX: 0000000000000008 RSI: ffff88805eb428f0 RDI: ffff88805eb41dc0 RBP: ffff88805eb428f0 R08: dffffc0000000000 R09: fffffbfff209385f R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88805eb42898 R13: ffff88805eb41dc0 R14: ffff88805eb42910 R15: 1ffff1100bd68522 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555574685c8 CR3: 00000000621cb000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: mark_usage kernel/locking/lockdep.c:4549 [inline] __lock_acquire+0xc6a/0x1f80 kernel/locking/lockdep.c:5003 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] batadv_nc_purge_paths+0xe8/0x3b0 net/batman-adv/network-coding.c:442 batadv_nc_worker+0x361/0x610 net/batman-adv/network-coding.c:722 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 CPU: 0 PID: 4603 Comm: syz.1.293 Not tainted 6.1.100-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 RIP: 0010:__orc_find arch/x86/kernel/unwind_orc.c:59 [inline] RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:178 [inline] RIP: 0010:unwind_next_frame+0x274/0x2220 arch/x86/kernel/unwind_orc.c:448 Code: 87 e2 18 00 00 45 39 e0 0f 84 c0 02 00 00 4e 8d 34 a5 8c 44 7f 8e 45 29 e0 4b 8d 6c 86 fc 4d 89 f4 4c 39 f5 0f 83 f7 01 00 00 <4d> 29 f4 48 bf 00 00 00 00 00 fc ff df e9 82 02 00 00 48 c7 c5 60 RSP: 0018:ffffc900000074a0 EFLAGS: 00000202 RAX: ffffffff8ee404bc RBX: ffffffff8ee404c0 RCX: ffffffff8ee404c4 RDX: ffffffff8f7f93a6 RSI: ffffffff8a877aac RDI: dffffc0000000000 RBP: ffffffff8ee404c0 R08: 0000000000000001 R09: ffffc90000007670 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8ee404c0 R13: ffffffff8a877aab R14: ffffffff8ee404c0 R15: ffffffff8ee404c4 FS: 00007f1d13ca56c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020020000 CR3: 0000000024d75000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25 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_save_free_info+0x27/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1724 [inline] slab_free_freelist_hook mm/slub.c:1750 [inline] slab_free mm/slub.c:3661 [inline] kmem_cache_free+0x292/0x510 mm/slub.c:3683 tcp_write_queue_purge+0x132/0x2f0 net/ipv4/tcp.c:3098 tcp_write_err net/ipv4/tcp_timer.c:73 [inline] tcp_write_timeout net/ipv4/tcp_timer.c:277 [inline] tcp_retransmit_timer+0x133a/0x28a0 net/ipv4/tcp_timer.c:551 tcp_write_timer+0x12e/0x280 net/ipv4/tcp_timer.c:680 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 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 RIP: 0010:preempt_schedule_irq+0xf2/0x1c0 kernel/sched/core.c:6873 Code: 89 f5 49 c1 ed 03 eb 0d 48 f7 03 08 00 00 00 0f 84 97 00 00 00 bf 01 00 00 00 e8 49 82 ca f6 e8 64 7d fd f6 fb bf 01 00 00 00 79 b4 ff ff 43 80 7c 3d 00 00 74 08 4c 89 f7 e8 b9 42 4e f7 48 RSP: 0018:ffffc900053b74a0 EFLAGS: 00000286 RAX: 8fed646a646f6d00 RBX: ffff88801fb19dc0 RCX: ffffffff816adafa RDX: dffffc0000000000 RSI: ffffffff8aec0240 RDI: 0000000000000001 RBP: ffffc900053b7560 R08: dffffc0000000000 R09: fffffbfff2093859 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000a76e94 R13: 1ffff92000a76e98 R14: ffffc900053b74c0 R15: dffffc0000000000 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_is_held_type+0x137/0x180 Code: 75 40 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 46 41 f7 c4 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 <48> 3b 44 24 08 75 3c 89 e8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f RSP: 0018:ffffc900053b7628 EFLAGS: 00000206 RAX: 8fed646a646f6d00 RBX: 0000000000000004 RCX: ffff88801fb19dc0 RDX: ffff88801fb19dc0 RSI: ffffffff8aec13c0 RDI: ffffffff8b3d48a0 RBP: 0000000000000000 R08: ffffffff8a877a93 R09: fffffbfff2093845 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000246 R13: ffff88801fb19dc0 R14: 00000000ffffffff R15: ffff88805e81dbe8 lock_is_held include/linux/lockdep.h:283 [inline] xa_head include/linux/xarray.h:1182 [inline] xas_start+0x21c/0x7b0 lib/xarray.c:188 xas_load+0x28/0x140 lib/xarray.c:235 mapping_get_entry mm/filemap.c:1853 [inline] __filemap_get_folio+0x22c/0xe80 mm/filemap.c:1915 shmem_get_folio_gfp+0x356/0x3470 mm/shmem.c:1881 shmem_get_folio mm/shmem.c:2072 [inline] shmem_write_begin+0x16e/0x4e0 mm/shmem.c:2559 generic_perform_write+0x2fc/0x5e0 mm/filemap.c:3817 __generic_file_write_iter+0x176/0x400 mm/filemap.c:3945 generic_file_write_iter+0xab/0x310 mm/filemap.c:3977 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x857/0xbc0 fs/read_write.c:584 ksys_write+0x19c/0x2c0 fs/read_write.c:637 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:0x7f1d12f75b59 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:00007f1d13ca5048 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1d13105f60 RCX: 00007f1d12f75b59 RDX: 0000000000032600 RSI: 0000000020000040 RDI: 0000000000000007 RBP: 00007f1d12fe4e5d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f1d13105f60 R15: 00007fff3a250558