syzbot


INFO: rcu detected stall in batadv_purge_orig

Status: upstream: reported on 2024/03/29 19:31
Reported-by: syzbot+b90f6bad8dc304a2c628@syzkaller.appspotmail.com
First crash: 77d, last: 77d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in batadv_purge_orig batman 1 673d 673d 0/27 auto-obsoleted due to no activity on 2022/11/10 10:36
linux-5.15 INFO: rcu detected stall in batadv_purge_orig 2 102d 191d 0/3 auto-obsoleted due to no activity on 2024/06/13 05:20
upstream INFO: rcu detected stall in batadv_purge_orig (2) batman 4 217d 429d 0/27 auto-obsoleted due to no activity on 2024/02/09 00:50
upstream BUG: soft lockup in batadv_purge_orig batman 1 77d 77d 26/27 fixed on 2024/06/05 19:57

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (1 GPs behind) idle=fc84/1/0x4000000000000000 softirq=141618/141619 fqs=0
	(detected by 0, t=10502 jiffies, g=161525, q=323 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 5284 Comm: kworker/u4:16 Not tainted 6.1.83-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Workqueue: bat_events batadv_purge_orig
RIP: 0010:__raw_callee_save___pv_queued_spin_unlock+0xc/0x12
Code: 56 57 41 50 41 51 41 52 41 53 e8 cf 0a 00 00 41 5b 41 5a 41 59 41 58 5f 5e 5a 59 c3 66 90 52 b8 01 00 00 00 31 d2 f0 0f b0 17 <3c> 01 75 02 5a c3 56 0f b6 f0 e8 c5 ff ff ff 5e 5a c3 66 90 55 48
RSP: 0018:ffffc900001e0c30 EFLAGS: 00000046
RAX: 0000000000000001 RBX: 1ffffffff23d476d RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffffff91ea3b60
RBP: dffffc0000000000 R08: dffffc0000000000 R09: fffffbfff23d476d
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffffffff23d476e
R13: ffffffff91ea3b70 R14: ffffffff91ea3b68 R15: ffffffff91ea3b60
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c000867fc0 CR3: 000000007ace9000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 pv_queued_spin_unlock arch/x86/include/asm/paravirt.h:596 [inline]
 queued_spin_unlock arch/x86/include/asm/qspinlock.h:57 [inline]
 do_raw_spin_unlock+0x137/0x8a0 kernel/locking/spinlock_debug.c:141
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:150 [inline]
 _raw_spin_unlock_irqrestore+0x7d/0x130 kernel/locking/spinlock.c:194
 debug_hrtimer_deactivate kernel/time/hrtimer.c:425 [inline]
 debug_deactivate+0x1d/0x280 kernel/time/hrtimer.c:481
 __run_hrtimer kernel/time/hrtimer.c:1654 [inline]
 __hrtimer_run_queues+0x334/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:should_resched arch/x86/include/asm/preempt.h:103 [inline]
RIP: 0010:__local_bh_enable_ip+0x16c/0x1f0 kernel/softirq.c:403
Code: 8a e8 48 f6 35 09 65 66 8b 05 90 94 af 7e 66 85 c0 75 57 bf 01 00 00 00 e8 a1 38 0a 00 e8 3c 3a 3d 00 fb 65 8b 05 3c 64 ae 7e <85> c0 75 05 e8 7b 82 ac ff 48 c7 44 24 20 0e 36 e0 45 49 c7 04 1c
RSP: 0018:ffffc9000b2a7a20 EFLAGS: 00000282
RAX: 0000000080000000 RBX: 1ffff92001654f48 RCX: ffffffff816abeda
RDX: dffffc0000000000 RSI: ffffffff8aebee40 RDI: ffffffff8b3d2b40
RBP: ffffc9000b2a7ad0 R08: dffffc0000000000 R09: fffffbfff2092e60
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff92001654f4c R14: ffffc9000b2a7a60 R15: 0000000000000201
 spin_unlock_bh include/linux/spinlock.h:396 [inline]
 batadv_purge_orig_ref+0x150a/0x1600 net/batman-adv/originator.c:1259
 batadv_purge_orig+0x15/0x60 net/batman-adv/originator.c:1272
 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 timer wakeup didn't happen for 10501 jiffies! g161525 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=0 timer-softirq=64406
rcu: rcu_preempt kthread starved for 10502 jiffies! g161525 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:I stack:25816 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: 23825 Comm: syz-executor.0 Not tainted 6.1.83-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:csd_lock_wait kernel/smp.c:424 [inline]
RIP: 0010:smp_call_function_many_cond+0x1fb5/0x3460 kernel/smp.c:998
Code: 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 e8 55 3f 0b 00
RSP: 0018:ffffc900149a7300 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 1ffff110173281b1 RCX: ffff88807cd3bb80
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc900149a76e0 R08: ffffffff817f4564 R09: fffffbfff2092e58
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: 00000000200a1000 CR3: 000000007e8b9000 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
 invalidate_bdev+0x8a/0xb0 block/bdev.c:85
 ext4_put_super+0x96d/0x10e0 fs/ext4/super.c:1281
 generic_shutdown_super+0x130/0x340 fs/super.c:501
 kill_block_super+0x7a/0xe0 fs/super.c:1459
 deactivate_locked_super+0xa0/0x110 fs/super.c:332
 cleanup_mnt+0x490/0x520 fs/namespace.c:1186
 task_work_run+0x246/0x300 kernel/task_work.c:179
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xa73/0x26a0 kernel/exit.c:869
 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
 ret_from_fork+0x15/0x30 arch/x86/entry/entry_64.S:300
RIP: 0033:0x7f316e67dda9
Code: Unable to access opcode bytes at 0x7f316e67dd7f.
RSP: 002b:00007f316f3d4078 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: 0000000000000000 RBX: 00007f316e7abf80 RCX: 00007f316e67dda9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f316e6ca47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f316e7abf80 R15: 00007ffe4607c628
 </TASK>

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