syzbot


INFO: rcu detected stall in batadv_tt_purge

Status: upstream: reported on 2024/08/31 22:28
Reported-by: syzbot+5c9d2df244b1fb41b5ff@syzkaller.appspotmail.com
First crash: 81d, last: 81d
Similar bugs (5)
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 646d 1214d 0/28 auto-obsoleted due to no activity on 2023/06/14 13:09
upstream INFO: rcu detected stall in batadv_tt_purge cgroups mm 1 1779d 1779d 0/28 closed as invalid on 2020/01/09 08:13
linux-6.1 INFO: rcu detected stall in batadv_tt_purge 6 170d 242d 0/3 auto-obsoleted due to no activity on 2024/09/12 14:42
upstream INFO: rcu detected stall in batadv_tt_purge (3) batman 1 368d 352d 0/28 auto-obsoleted due to no activity on 2024/02/17 16:44
upstream BUG: soft lockup in batadv_tt_purge batman 1 151d 150d 0/28 auto-obsoleted due to no activity on 2024/09/20 21:14

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...0: (1 GPs behind) idle=b97/1/0x4000000000000000 softirq=8211/8212 fqs=5242 
	(detected by 1, t=10502 jiffies, g=9677, q=1265)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 393 Comm: kworker/u4:3 Not tainted 5.15.165-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
Workqueue: bat_events batadv_tt_purge
RIP: 0010:hlock_class kernel/locking/lockdep.c:197 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4686 [inline]
RIP: 0010:__lock_acquire+0x4a3/0x1ff0 kernel/locking/lockdep.c:4962
Code: 0f 85 29 13 00 00 44 89 33 44 89 e3 41 c1 ec 06 4a 8d 3c e5 c0 f0 70 90 be 08 00 00 00 e8 45 74 67 00 48 0f a3 1d fd 38 0e 0f <73> 20 48 8d 04 5b 48 c1 e0 06 48 8d 98 c0 6f 0e 90 48 ba 00 00 00
RSP: 0018:ffffc90000007a60 EFLAGS: 00000057
RAX: 0000000000000001 RBX: 0000000000000924 RCX: ffffffff8162b7bb
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff9070f1e0
RBP: 000000000000000a R08: dffffc0000000000 R09: fffffbfff20e1e3d
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000024
R13: ffff88801ef16428 R14: 0000000000000000 R15: ffff88801ef164a0
FS:  0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff2f06edab8 CR3: 000000007473f000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:363 [inline]
 advance_sched+0x47/0x940 net/sched/sch_taprio.c:716
 __run_hrtimer kernel/time/hrtimer.c:1686 [inline]
 __hrtimer_run_queues+0x598/0xcf0 kernel/time/hrtimer.c:1750
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1085 [inline]
 __sysvec_apic_timer_interrupt+0x139/0x470 arch/x86/kernel/apic/apic.c:1102
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1096
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:should_resched arch/x86/include/asm/preempt.h:103 [inline]
RIP: 0010:__local_bh_enable_ip+0x16c/0x1f0 kernel/softirq.c:390
Code: 8a e8 d8 e2 e5 08 65 66 8b 05 50 19 b6 7e 66 85 c0 75 57 bf 01 00 00 00 e8 61 ed 09 00 e8 ac 62 39 00 fb 65 8b 05 3c f0 b4 7e <85> c0 75 05 e8 0b 0d b3 ff 48 c7 44 24 20 0e 36 e0 45 49 c7 04 1c
RSP: 0018:ffffc90003057a80 EFLAGS: 00000282
RAX: 0000000080000000 RBX: 1ffff9200060af54 RCX: ffffffff81631a88
RDX: dffffc0000000000 RSI: ffffffff8a8b2a20 RDI: ffffffff8ad8f7c0
RBP: ffffc90003057b38 R08: dffffc0000000000 R09: fffffbfff20e1e38
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff9200060af58 R14: ffffc90003057ac0 R15: 0000000000000201
 spin_unlock_bh include/linux/spinlock.h:408 [inline]
 batadv_tt_local_purge+0x2a0/0x340 net/batman-adv/translation-table.c:1356
 batadv_tt_purge+0x31/0xa40 net/batman-adv/translation-table.c:3560
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/31 22:27 linux-5.15.y fa93fa65db6e 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in batadv_tt_purge
* Struck through repros no longer work on HEAD.