syzbot


BUG: MAX_STACK_TRACE_ENTRIES too low! (4)

Status: upstream: reported syz repro on 2024/09/27 03:52
Subsystems: bpf
[Documentation on labels]
Reported-by: syzbot+c6c4861455fdd207f160@syzkaller.appspotmail.com
First crash: 59d, last: 3d08h
Cause bisection: introduced by (bisect log) :
commit 893cdaaa3977be6afb3a7f756fbfd7be83f68d8c
Author: Wander Lairson Costa <wander@redhat.com>
Date: Wed Jun 14 12:23:22 2023 +0000

  sched: avoid false lockdep splat in put_task_struct()

Crash: BUG: MAX_STACK_TRACE_ENTRIES too low! (log)
Repro: syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bpf?] BUG: MAX_STACK_TRACE_ENTRIES too low! (4) 0 (2) 2024/09/29 07:25
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: MAX_STACK_TRACE_ENTRIES too low! (3) net 2 1309d 1311d 20/28 fixed on 2021/11/10 00:50
upstream BUG: MAX_STACK_TRACE_ENTRIES too low! (2) C done 5045 1895d 2063d 13/28 fixed on 2019/10/15 23:40
linux-5.15 BUG: MAX_STACK_TRACE_ENTRIES too low! origin:lts-only C done 20 4d16h 246d 0/3 upstream: reported C repro on 2024/03/19 07:46
upstream BUG: MAX_STACK_TRACE_ENTRIES too low! C done 1725 2064d 2090d 11/28 fixed on 2019/03/28 12:00
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/11/17 22:12 22m retest repro net report log
2024/10/29 19:22 24m retest repro bpf-next report log
2024/10/29 19:22 22m retest repro bpf-next report log
2024/10/09 05:15 19m retest repro bpf report log
2024/10/09 05:15 20m retest repro bpf report log

Sample crash report:
BUG: MAX_STACK_TRACE_ENTRIES too low!
turning off the locking correctness validator.
CPU: 0 UID: 0 PID: 5199 Comm: syslogd Not tainted 6.12.0-rc5-syzkaller-00180-g3b557be89fc6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
 save_trace+0x926/0xb50 kernel/locking/lockdep.c:579
 check_prev_add kernel/locking/lockdep.c:3222 [inline]
 check_prevs_add kernel/locking/lockdep.c:3280 [inline]
 validate_chain+0x2bde/0x5920 kernel/locking/lockdep.c:3904
 __lock_acquire+0x1384/0x2050 kernel/locking/lockdep.c:5202
 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5825
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
 htab_lock_bucket+0x1a4/0x370 kernel/bpf/hashtab.c:167
 htab_lru_map_delete_elem+0x1f1/0x700 kernel/bpf/hashtab.c:1466
 bpf_prog_9e406b8072284750+0x4e/0x52
 bpf_dispatcher_nop_func include/linux/bpf.h:1265 [inline]
 __bpf_prog_run include/linux/filter.h:701 [inline]
 bpf_prog_run include/linux/filter.h:708 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2316 [inline]
 bpf_trace_run3+0x33a/0x5a0 kernel/trace/bpf_trace.c:2358
 __traceiter_kmem_cache_free+0x33/0x50 include/trace/events/kmem.h:114
 trace_kmem_cache_free include/trace/events/kmem.h:114 [inline]
 kmem_cache_free+0x355/0x420 mm/slub.c:4680
 __unix_dgram_recvmsg+0xcea/0x12f0 net/unix/af_unix.c:2520
 sock_recvmsg_nosec net/socket.c:1051 [inline]
 sock_recvmsg+0x22f/0x280 net/socket.c:1073
 sock_read_iter+0x2c4/0x3d0 net/socket.c:1143
 new_sync_read fs/read_write.c:488 [inline]
 vfs_read+0x991/0xb70 fs/read_write.c:569
 ksys_read+0x183/0x2b0 fs/read_write.c:712
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff0f4a81b6a
Code: 00 3d 00 00 41 00 75 0d 50 48 8d 3d 2d 08 0a 00 e8 ea 7d 01 00 31 c0 e9 07 ff ff ff 64 8b 04 25 18 00 00 00 85 c0 75 1b 0f 05 <48> 3d 00 f0 ff ff 76 6c 48 8b 15 8f a2 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffcc67712c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007ff0f4a81b6a
RDX: 00000000000000ff RSI: 00005603bbb00950 RDI: 0000000000000000
RBP: 00005603bbb00910 R08: 0000000000000001 R09: 0000000000000000
R10: 00007ff0f4c203a3 R11: 0000000000000246 R12: 00005603bbb009b7
R13: 00005603bbb00950 R14: 0000000000000000 R15: 00007ff0f4c64a80
 </TASK>

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/03 22:01 net 3b557be89fc6 f00eed24 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce BUG: MAX_STACK_TRACE_ENTRIES too low!
2024/09/25 02:36 bpf abf2050f51fd 5643e0e9 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce BUG: MAX_STACK_TRACE_ENTRIES too low!
2024/09/23 03:47 bpf b831f83e40a2 6f888b75 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce BUG: MAX_STACK_TRACE_ENTRIES too low!
2024/10/15 18:58 bpf-next 108e7b4db83b 14943bb8 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce BUG: MAX_STACK_TRACE_ENTRIES too low!
2024/10/13 21:05 bpf-next 989a29cfed9b 084d8178 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce BUG: MAX_STACK_TRACE_ENTRIES too low!
* Struck through repros no longer work on HEAD.