syzbot


INFO: rcu detected stall in batadv_tt_purge

Status: upstream: reported on 2024/03/24 12:47
Reported-by: syzbot+c87c26f133881b2b1756@syzkaller.appspotmail.com
First crash: 40d, last: 40d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in batadv_tt_purge (2) batman C done inconclusive 3 444d 1012d 0/26 auto-obsoleted due to no activity on 2023/06/14 13:09
upstream INFO: rcu detected stall in batadv_tt_purge cgroups mm 1 1577d 1577d 0/26 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in batadv_tt_purge (3) batman 1 166d 150d 0/26 auto-obsoleted due to no activity on 2024/02/17 16:44

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (1 ticks this GP) idle=305c/1/0x4000000000000000 softirq=20590/20590 fqs=6
	(detected by 0, t=10504 jiffies, g=22293, q=561 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 11 Comm: kworker/u4:1 Not tainted 6.1.82-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
Workqueue: bat_events batadv_tt_purge
RIP: 0010:instrument_atomic_read_write include/linux/instrumented.h:102 [inline]
RIP: 0010:atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:542 [inline]
RIP: 0010:queued_spin_lock include/asm-generic/qspinlock.h:111 [inline]
RIP: 0010:do_raw_spin_lock+0x13d/0x370 kernel/locking/spinlock_debug.c:115
Code: 49 c1 ed 03 41 0f b6 44 15 00 84 c0 48 89 d3 0f 85 9e 01 00 00 c7 44 24 60 00 00 00 00 4c 89 e7 be 04 00 00 00 e8 73 49 76 00 <4c> 89 f7 be 04 00 00 00 e8 66 49 76 00 41 0f b6 44 1d 00 84 c0 48
RSP: 0018:ffffc900001e0be0 EFLAGS: 00000056
RAX: 0000000000000001 RBX: dffffc0000000000 RCX: ffffffff816bb0dd
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffff888019e512e8
RBP: ffffc900001e0cb0 R08: dffffc0000000000 R09: ffffed10033ca25e
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888019e512e8
R13: 1ffff9200003c188 R14: ffffc900001e0c40 R15: 1ffff110033ca25e
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007faf0803e000 CR3: 0000000172d85000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 spin_lock include/linux/spinlock.h:351 [inline]
 advance_sched+0x47/0x970 net/sched/sch_taprio.c:700
 __run_hrtimer kernel/time/hrtimer.c:1686 [inline]
 __hrtimer_run_queues+0x5e5/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
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline]
RIP: 0010:__local_bh_disable_ip+0x15f/0x210 kernel/softirq.c:339
Code: 24 40 42 80 3c 23 00 74 05 e8 9d f0 8d 00 f6 44 24 41 02 0f 85 a5 00 00 00 41 f7 c6 00 02 00 00 74 01 fb 65 8b 05 19 67 ae 7e <25> ff ff ff 7f 44 39 f8 75 42 4c 8b 75 08 4c 89 f7 e8 2b 96 17 00
RSP: 0018:ffffc90000107a40 EFLAGS: 00000206
RAX: 0000000080000201 RBX: 1ffff92000020f50 RCX: ffffffff91c8e103
RDX: 0000000000000000 RSI: 0000000000000201 RDI: ffffc90000107a80
RBP: ffffc90000107b20 R08: dffffc0000000000 R09: fffffbfff2092c62
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff92000020f4c R14: 0000000000000246 R15: 0000000000000201
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:125 [inline]
 _raw_spin_lock_bh+0x18/0x40 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:356 [inline]
 batadv_tt_local_purge+0x107/0x340 net/batman-adv/translation-table.c:1354
 batadv_tt_purge+0x31/0xa40 net/batman-adv/translation-table.c:3560
 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:307
 </TASK>
rcu: rcu_preempt kthread starved for 7368 jiffies! g22293 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:
 <TASK>
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0x142d/0x4550 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1935
 rcu_gp_fqs_loop+0x2d2/0x1120 kernel/rcu/tree.c:1706
 rcu_gp_kthread+0xa3/0x3a0 kernel/rcu/tree.c:1905
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:307
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 PID: 3588 Comm: syz-executor.4 Not tainted 6.1.82-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
RIP: 0010:csd_lock_wait kernel/smp.c:424 [inline]
RIP: 0010:smp_call_function_many_cond+0x1fb0/0x3460 kernel/smp.c:998
Code: 2f 44 89 ee 83 e6 01 31 ff e8 ec 42 0b 00 41 83 e5 01 49 bd 00 00 00 00 00 fc ff df 75 0a e8 77 3f 0b 00 e9 1b ff ff ff f3 90 <42> 0f b6 04 2b 84 c0 75 14 41 f7 07 01 00 00 00 0f 84 fe fe ff ff
RSP: 0018:ffffc90004fff100 EFLAGS: 00000293
RAX: ffffffff817f443b RBX: 1ffff110173281b1 RCX: ffff888027b49dc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90004fff4e0 R08: ffffffff817f4404 R09: ffffed101730775b
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000800000000
R13: dffffc0000000000 R14: 0000000000000001 R15: ffff8880b9940d88
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c04374b018 CR3: 000000001ab54000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1166
 __flush_tlb_multi arch/x86/include/asm/paravirt.h:87 [inline]
 flush_tlb_multi arch/x86/mm/tlb.c:924 [inline]
 flush_tlb_mm_range+0x353/0x590 arch/x86/mm/tlb.c:1010
 tlb_flush arch/x86/include/asm/tlb.h:20 [inline]
 tlb_flush_mmu_tlbonly+0x1ab/0x410 include/asm-generic/tlb.h:430
 tlb_flush_mmu+0x28/0x210 mm/mmu_gather.c:260
 tlb_finish_mmu+0xce/0x1f0 mm/mmu_gather.c:361
 exit_mmap+0x3c3/0x9f0 mm/mmap.c:3239
 __mmput+0x115/0x3c0 kernel/fork.c:1199
 exit_mm+0x226/0x300 kernel/exit.c:563
 do_exit+0x9f6/0x26a0 kernel/exit.c:856
 do_group_exit+0x202/0x2b0 kernel/exit.c:1019
 get_signal+0x16f7/0x17d0 kernel/signal.c:2862
 arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871
 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:297
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f6cc267f0d7
Code: Unable to access opcode bytes at 0x7f6cc267f0ad.
RSP: 002b:00007ffc87007d68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f6cc267f0d7
RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007ffc87007e20
RBP: 00007ffc87007e20 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffc87008ee0
R13: 00007f6cc26c93b9 R14: 000000000003cd93 R15: 0000000000000007
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/24 12:46 linux-6.1.y d7543167affd 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in batadv_tt_purge
* Struck through repros no longer work on HEAD.