syzbot


BUG: soft lockup in kauditd_thread

Status: upstream: reported C repro on 2024/04/04 20:01
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+1d10c0fe139063cb6d1c@syzkaller.appspotmail.com
First crash: 31d, last: 16h56m
Bug presence (2)
Date Name Commit Repro Result
2024/04/05 lts (merge base) 6139f2a02fe0 C [report] BUG: soft lockup in bpf_map_free_deferred
2024/04/05 upstream (ToT) c88b9b4cde17 C Didn't crash
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in kauditd_thread (3) kernel 2 165d 198d 0/26 auto-obsoleted due to no activity on 2024/02/20 23:02
upstream INFO: rcu detected stall in kauditd_thread kernel 2 834d 889d 0/26 closed as invalid on 2022/02/08 10:00
linux-6.1 INFO: rcu detected stall in kauditd_thread (2) 3 40d 146d 0/3 upstream: reported on 2023/12/11 16:51
upstream INFO: rcu detected stall in kauditd_thread (4) audit bpf C 5 10d 39d 0/26 upstream: reported C repro on 2024/03/27 18:39
linux-6.1 INFO: rcu detected stall in kauditd_thread 2 260d 347d 0/3 auto-obsoleted due to no activity on 2023/11/27 06:59
linux-5.15 INFO: rcu detected stall in kauditd_thread 2 135d 152d 0/3 auto-obsoleted due to no activity on 2024/03/31 22:45
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/05/04 04:23 16m retest repro android13-5.15-lts report log
2024/04/18 21:33 48m retest repro android13-5.15-lts report log

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 144s! [kauditd:30]
Modules linked in:
CPU: 0 PID: 30 Comm: kauditd Not tainted 5.15.149-syzkaller-00490-g5d96939590c0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
RIP: 0010:arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
RIP: 0010:kvm_wait+0x147/0x180 arch/x86/kernel/kvm.c:918
Code: 4c 89 e8 48 c1 e8 03 42 0f b6 04 20 84 c0 44 8b 74 24 1c 75 34 41 0f b6 45 00 44 38 f0 75 10 66 90 0f 00 2d 5b 03 f3 03 fb f4 <e9> 24 ff ff ff fb e9 1e ff ff ff 44 89 e9 80 e1 07 38 c1 7c a3 4c
RSP: 0018:ffffc900001ff7c0 EFLAGS: 00000246
RAX: 0000000000000001 RBX: 1ffff9200003fefc RCX: 1ffffffff0d1aa9c
RDX: 0000000000000001 RSI: 0000000000000001 RDI: ffff8881f7037ed4
RBP: ffffc900001ff870 R08: dffffc0000000000 R09: ffffed103ee06fdb
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881f7037ed4 R14: 0000000000000001 R15: 1ffff9200003ff00
FS:  0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fae149cf130 CR3: 000000011f1a0000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 pv_wait arch/x86/include/asm/paravirt.h:597 [inline]
 pv_wait_node kernel/locking/qspinlock_paravirt.h:325 [inline]
 __pv_queued_spin_lock_slowpath+0x41b/0xc40 kernel/locking/qspinlock.c:473
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:136 [inline]
 _raw_spin_lock_bh+0x139/0x1b0 kernel/locking/spinlock.c:178
 sock_hash_delete_elem+0xb1/0x2f0 net/core/sock_map.c:937
 bpf_prog_2c29ac5cdc6b1842+0x3a/0x768
 bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
 __bpf_prog_run include/linux/filter.h:625 [inline]
 bpf_prog_run include/linux/filter.h:632 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:1883 [inline]
 bpf_trace_run2+0xec/0x210 kernel/trace/bpf_trace.c:1920
 __bpf_trace_kfree+0x6f/0x90 include/trace/events/kmem.h:118
 __traceiter_kfree+0x2a/0x40 include/trace/events/kmem.h:118
 trace_kfree include/trace/events/kmem.h:118 [inline]
 kfree+0x1f3/0x220 mm/slub.c:4569
 skb_free_head net/core/skbuff.c:656 [inline]
 skb_release_data+0x8a9/0xa80 net/core/skbuff.c:678
 skb_release_all net/core/skbuff.c:743 [inline]
 __kfree_skb net/core/skbuff.c:757 [inline]
 kfree_skb_reason net/core/skbuff.c:778 [inline]
 kfree_skb+0xba/0x360 net/core/skbuff.c:792
 kauditd_hold_skb+0x115/0x200 kernel/audit.c:614
 kauditd_send_queue+0x28d/0x2e0 kernel/audit.c:769
 kauditd_thread+0x529/0x8b0 kernel/audit.c:893
 kthread+0x421/0x510 kernel/kthread.c:337
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/05 13:06 android13-5.15-lts 5d96939590c0 610f2a54 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in kauditd_thread
2024/04/19 16:51 android13-5.15-lts ad06eaf051cd af24b050 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in kauditd_thread
2024/04/04 19:59 android13-5.15-lts 993bed180178 0ee3535e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in kauditd_thread
* Struck through repros no longer work on HEAD.