syzbot


BUG: MAX_STACK_TRACE_ENTRIES too low! (4)

Status: upstream: reported C repro on 2024/09/27 03:52
Subsystems: bpf
[Documentation on labels]
Reported-by: syzbot+c6c4861455fdd207f160@syzkaller.appspotmail.com
First crash: 186d, last: 6d00h
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 (2)
Title Replies (including bot) Last reply
[syzbot] Monthly bpf report (Feb 2025) 0 (1) 2025/02/20 19:03
[syzbot] [bpf?] BUG: MAX_STACK_TRACE_ENTRIES too low! (4) 0 (3) 2024/11/27 07:07
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: MAX_STACK_TRACE_ENTRIES too low! (3) net 2 1436d 1438d 20/28 fixed on 2021/11/10 00:50
upstream BUG: MAX_STACK_TRACE_ENTRIES too low! (2) C done 5045 2022d 2190d 13/28 fixed on 2019/10/15 23:40
linux-5.15 BUG: MAX_STACK_TRACE_ENTRIES too low! origin:lts-only C done 30 2h56m 373d 0/3 upstream: reported C repro on 2024/03/19 07:46
upstream BUG: MAX_STACK_TRACE_ENTRIES too low! C done 1725 2191d 2218d 11/28 fixed on 2019/03/28 12:00
linux-6.1 BUG: MAX_STACK_TRACE_ENTRIES too low! origin:upstream syz 1 5d20h 5d20h 0/3 upstream: reported syz repro on 2025/03/22 10:39
Last patch testing requests (10)
Created Duration User Patch Repo Result
2025/02/16 00:06 1h04m retest repro upstream report log
2025/02/16 00:06 20m retest repro upstream OK log
2025/02/16 00:06 22m retest repro upstream report log
2025/02/16 00:06 20m retest repro upstream report log
2025/02/16 00:06 21m retest repro upstream report log
2025/02/01 22:33 22m retest repro net OK log
2025/02/01 22:33 21m retest repro bpf OK log
2025/02/01 22:37 15m retest repro upstream report log
2025/02/01 22:37 15m retest repro upstream report log
2025/02/01 22:33 25m retest repro bpf OK log

Sample crash report:
BUG: MAX_STACK_TRACE_ENTRIES too low!
turning off the locking correctness validator.
CPU: 3 UID: 0 PID: 18939 Comm: syz-executor255 Not tainted 6.14.0-rc7-syzkaller-00186-gd07de43e3f05 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
 save_trace+0x78f/0xb60 kernel/locking/lockdep.c:581
 mark_lock+0x2d2/0xc60 kernel/locking/lockdep.c:4746
 mark_usage kernel/locking/lockdep.c:4672 [inline]
 __lock_acquire+0x9f1/0x3c40 kernel/locking/lockdep.c:5182
 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5851
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
 htab_lock_bucket kernel/bpf/hashtab.c:167 [inline]
 htab_lru_map_delete_elem+0x1c8/0x790 kernel/bpf/hashtab.c:1483
 bpf_prog_3ffd2c70e20892c6+0x43/0x4c
 bpf_dispatcher_nop_func include/linux/bpf.h:1290 [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:2371 [inline]
 bpf_trace_run2+0x231/0x590 kernel/trace/bpf_trace.c:2412
 __do_trace_kfree include/trace/events/kmem.h:94 [inline]
 trace_kfree include/trace/events/kmem.h:94 [inline]
 kfree+0x244/0x4d0 mm/slub.c:4744
 tomoyo_realpath_from_path+0xad/0x720 security/tomoyo/realpath.c:250
 tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
 tomoyo_check_open_permission+0x2ad/0x3c0 security/tomoyo/file.c:771
 tomoyo_file_open+0x6b/0x90 security/tomoyo/tomoyo.c:334
 security_file_open+0x84/0x1e0 security/security.c:3114
 do_dentry_open+0x57c/0x1c40 fs/open.c:933
 vfs_open+0x82/0x3f0 fs/open.c:1086
 do_open fs/namei.c:3830 [inline]
 path_openat+0x1e88/0x2d80 fs/namei.c:3989
 do_filp_open+0x20c/0x470 fs/namei.c:4016
 do_sys_openat2+0x17a/0x1e0 fs/open.c:1428
 do_sys_open fs/open.c:1443 [inline]
 __do_sys_openat fs/open.c:1459 [inline]
 __se_sys_openat fs/open.c:1454 [inline]
 __x64_sys_openat+0x175/0x210 fs/open.c:1454
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f331461d391
Code: 75 57 89 f0 25 00 00 41 00 3d 00 00 41 00 74 49 80 3d fa 8c 07 00 00 74 6d 89 da 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 93 00 00 00 48 8b 54 24 28 64 48 2b 14 25
RSP: 002b:00007ffdf8fba5a0 EFLAGS: 00000202 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000080001 RCX: 00007f331461d391
RDX: 0000000000080001 RSI: 00007f331466700f RDI: 00000000ffffff9c
RBP: 00007f331466700f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffdf8fba640
R13: 00007ffdf8fbab60 R14: 00007ffdf8fbab40 R15: 0000000000002c28
 </TASK>

Crashes (31):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/22 06:29 upstream d07de43e3f05 c6512ef7 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: MAX_STACK_TRACE_ENTRIES too low!
2025/03/21 06:32 upstream 5fc319360819 62330552 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: MAX_STACK_TRACE_ENTRIES too low!
2025/03/19 20:04 upstream 81e4f8d68c66 3b7445cf .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: MAX_STACK_TRACE_ENTRIES too low!
2025/03/03 10:08 upstream 7eb172143d55 c3901742 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: MAX_STACK_TRACE_ENTRIES too low!
2025/02/27 20:35 upstream dd83757f6e68 6a8fcbc4 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: MAX_STACK_TRACE_ENTRIES too low!
2025/02/23 00:17 upstream 5cf80612d3f7 d34966d1 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: MAX_STACK_TRACE_ENTRIES too low!
2024/12/09 12:26 upstream fac04efc5c79 9ac0fdc6 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: MAX_STACK_TRACE_ENTRIES too low!
2024/12/09 08:05 upstream 62b5a46999c7 9ac0fdc6 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: MAX_STACK_TRACE_ENTRIES too low!
2024/12/05 08:10 upstream feffde684ac2 29f61fce .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: MAX_STACK_TRACE_ENTRIES too low!
2024/12/02 16:40 upstream e70140ba0d2b b499ea68 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: MAX_STACK_TRACE_ENTRIES too low!
2024/11/27 07:07 upstream 445d9f05fa14 52b38cc1 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: MAX_STACK_TRACE_ENTRIES too low!
2025/03/18 08:17 upstream fc444ada1310 ce3352cd .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: MAX_STACK_TRACE_ENTRIES too low!
2025/01/15 06:28 upstream c3812b15000c 7315a7cf .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: MAX_STACK_TRACE_ENTRIES too low!
2025/01/05 13:42 upstream ab75170520d4 f3558dbf .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: MAX_STACK_TRACE_ENTRIES too low!
2024/12/24 06:56 upstream f07044dd0df0 444551c4 .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: MAX_STACK_TRACE_ENTRIES too low!
2024/12/16 18:43 upstream 78d4f34e2115 eec85da6 .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: MAX_STACK_TRACE_ENTRIES too low!
2024/12/15 08:34 upstream a0e3919a2df2 7cbfbb3a .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: MAX_STACK_TRACE_ENTRIES too low!
2025/03/09 22:46 bpf 6ccf6adb05d0 163f510d .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce BUG: MAX_STACK_TRACE_ENTRIES too low!
2025/01/18 22:11 bpf c45323b7560e f2cb035c .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce BUG: MAX_STACK_TRACE_ENTRIES too low!
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!
2025/01/04 12:05 net-next 385f186aba3d f3558dbf .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce BUG: MAX_STACK_TRACE_ENTRIES too low!
2024/12/31 12:40 bpf-next 9468f39ba478 d3ccff63 .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/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!
2025/01/08 11:29 upstream 09a0fa92e5b4 f3558dbf .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: MAX_STACK_TRACE_ENTRIES too low!
2025/01/05 22:04 upstream ab75170520d4 f3558dbf .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: MAX_STACK_TRACE_ENTRIES too low!
2025/01/09 21:56 bpf ccb98ccef0e5 40f46913 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce BUG: MAX_STACK_TRACE_ENTRIES too low!
2024/12/19 22:20 bpf 716f2bca1ce9 1d58202c .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce BUG: MAX_STACK_TRACE_ENTRIES too low!
2024/12/08 06:47 net 4c49f38e20a5 9ac0fdc6 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce BUG: MAX_STACK_TRACE_ENTRIES too low!
* Struck through repros no longer work on HEAD.