syzbot


BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet

Status: upstream: reported C repro on 2023/03/09 22:19
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+83373a7d8fa8f064f743@syzkaller.appspotmail.com
First crash: 419d, last: 4h44m
Fix bisection: failed (error log, bisect log)
  
Bug presence (2)
Date Name Commit Repro Result
2023/05/18 linux-5.15.y (ToT) 9d6bde853685 C [report] KASAN: slab-out-of-bounds Write in pskb_expand_head
2023/05/18 upstream (ToT) 4d6d4c7f541d C Didn't crash
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet C error 1 611d 672d 0/1 upstream: reported C repro on 2022/06/30 02:55
upstream INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet (4) batman 3 459d 584d 0/26 auto-obsoleted due to no activity on 2023/04/28 17:43
linux-4.19 BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet (2) 1 632d 632d 0/1 auto-obsoleted due to no activity on 2022/12/07 08:10
linux-4.19 BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet 1 976d 976d 0/1 auto-closed as invalid on 2021/12/28 02:54
linux-6.1 INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet 3 189d 295d 0/3 auto-obsoleted due to no activity on 2024/02/02 20:15
upstream INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet (3) batman 2 690d 752d 0/26 auto-closed as invalid on 2022/09/09 16:10
upstream INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet (2) batman 6 842d 1035d 0/26 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet batman 2 1162d 1166d 0/26 auto-closed as invalid on 2021/05/25 23:54
linux-4.19 INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet 1 1533d 1533d 0/1 auto-closed as invalid on 2020/06/19 05:22
Fix bisection attempts (9)
Created Duration User Patch Repo Result
2024/04/24 22:02 10m fix candidate upstream error job log (0)
2024/03/22 19:57 0m fix candidate upstream error job log (0)
2024/01/08 23:04 0m fix candidate upstream error job log (0)
2023/12/01 13:03 1m fix candidate upstream error job log (0)
2023/10/21 20:31 1m fix candidate upstream error job log (0)
2023/09/15 21:26 0m fix candidate upstream error job log (0)
2023/07/16 18:09 1m bisect fix linux-5.15.y error job log (0)
2023/05/10 19:52 1h15m bisect fix linux-5.15.y job log (0) log
2023/04/09 01:42 48m bisect fix linux-5.15.y job log (0) log

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 26s! [kworker/u4:3:278]
Modules linked in:
irq event stamp: 157055
hardirqs last  enabled at (157054): [<ffff800011979450>] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:81 [inline]
hardirqs last  enabled at (157054): [<ffff800011979450>] exit_to_kernel_mode+0x100/0x178 arch/arm64/kernel/entry-common.c:91
hardirqs last disabled at (157055): [<ffff800011979698>] enter_el1_irq_or_nmi+0x10/0x1c arch/arm64/kernel/entry-common.c:227
softirqs last  enabled at (152046): [<ffff8000117b6734>] batadv_forw_packet_steal+0x11c/0x13c
softirqs last disabled at (152068): [<ffff8000117cbe50>] spin_lock_bh include/linux/spinlock.h:368 [inline]
softirqs last disabled at (152068): [<ffff8000117cbe50>] batadv_tt_local_commit_changes+0x24/0x44 net/batman-adv/translation-table.c:3718
CPU: 0 PID: 278 Comm: kworker/u4:3 Not tainted 5.15.98-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Workqueue: bat_events batadv_iv_send_outstanding_bat_ogm_packet
pstate: 00400005 (nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : queued_spin_lock_slowpath+0x160/0x938 kernel/locking/qspinlock.c:382
lr : queued_spin_lock_slowpath+0x16c/0x938 kernel/locking/qspinlock.c:382
sp : ffff80001c817700
x29: ffff80001c8177a0 x28: 1ffff00003902eec x27: 1fffe0001a88ea66
x26: dfff800000000000 x25: ffff700003902ee4 x24: ffff80001c817720
x23: 1fffe0001a88ea65 x22: ffff80001c817760 x21: 0000000000000001
x20: 0000000000000001 x19: ffff0000d4475328 x18: ffff80001c817600
x17: ffff800011757834 x16: ffff80000830625c x15: 000000000000db71
x14: 000000008c8664f2 x13: ffffffffffffffff x12: 0000000000000001
x11: 1fffe0001a88ea65 x10: 0000000000000000 x9 : 0000000000000000
x8 : 0000000000000101 x7 : 0000000000000000 x6 : 0000000000000000
x5 : ffff8000175c7708 x4 : 0000000000000008 x3 : ffff800008305568
x2 : 0000000000000000 x1 : 0000000000000004 x0 : 0000000000000001
Call trace:
 __cmpwait_case_32 arch/arm64/include/asm/cmpxchg.h:252 [inline]
 __cmpwait arch/arm64/include/asm/cmpxchg.h:278 [inline]
 queued_spin_lock_slowpath+0x160/0x938 kernel/locking/qspinlock.c:382
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock+0x334/0x35c kernel/locking/spinlock_debug.c:115
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:136 [inline]
 _raw_spin_lock_bh+0x12c/0x1c4 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:368 [inline]
 batadv_tt_local_commit_changes+0x24/0x44 net/batman-adv/translation-table.c:3718
 batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:812 [inline]
 batadv_iv_ogm_schedule+0x1ec/0xe10 net/batman-adv/bat_iv_ogm.c:869
 batadv_iv_send_outstanding_bat_ogm_packet+0x740/0x900 net/batman-adv/bat_iv_ogm.c:1713
 process_one_work+0x82c/0x1478 kernel/workqueue.c:2306
 worker_thread+0x910/0x1034 kernel/workqueue.c:2453
 kthread+0x37c/0x45c kernel/kthread.c:319
 ret_from_fork+0x10/0x20 <unknown>:870

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/09 22:19 linux-5.15.y d9b4a0c83a2d f08b59ac .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet
2023/10/12 23:54 linux-5.15.y 02e21884dcf2 6388bc36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet
2024/03/08 05:15 linux-5.15.y 574362648507 cf82cde1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet
2024/01/16 04:04 linux-5.15.y ddcaf4999061 2a7bcc7f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet
2023/11/09 07:45 linux-5.15.y 80529b4968a8 4862372a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet
2024/05/02 08:43 linux-5.15.y b925f60c6ee7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet
2023/12/05 20:54 linux-5.15.y 9b91d36ba301 858d62d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet
2023/11/06 20:48 linux-5.15.y 12952a23a5da 78fae24e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet
2023/08/05 09:57 linux-5.15.y 38d4ca22a528 cdae481e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet
2023/06/08 03:37 linux-5.15.y d7af3e5ba454 058b3a5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet
* Struck through repros no longer work on HEAD.