syzbot


BUG: MAX_STACK_TRACE_ENTRIES too low!

Status: upstream: reported syz repro on 2025/03/22 10:39
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+a1b48abe898d0e1128a5@syzkaller.appspotmail.com
First crash: 34d, last: 34d
Bug presence (1)
Date Name Commit Repro Result
2025/03/22 upstream (ToT) 88d324e69ea9 C [report] BUG: MAX_STACK_TRACE_ENTRIES too low!
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 1465d 1467d 20/28 fixed on 2021/11/10 00:50
upstream BUG: MAX_STACK_TRACE_ENTRIES too low! (2) C done 5045 2051d 2219d 13/28 fixed on 2019/10/15 23:40
upstream BUG: MAX_STACK_TRACE_ENTRIES too low! (4) bpf C done unreliable 31 35d 211d 0/28 upstream: reported C repro on 2024/09/27 03:52
linux-5.15 BUG: MAX_STACK_TRACE_ENTRIES too low! origin:lts-only C done 34 11d 402d 0/3 upstream: reported C repro on 2024/03/19 07:46
upstream BUG: MAX_STACK_TRACE_ENTRIES too low! C done 1725 2220d 2246d 11/28 fixed on 2019/03/28 12:00

Sample crash report:
BUG: MAX_STACK_TRACE_ENTRIES too low!
turning off the locking correctness validator.
CPU: 1 PID: 12233 Comm: udevd Not tainted 6.1.131-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 save_trace+0x8a7/0xb20 kernel/locking/lockdep.c:578
 mark_lock+0x1cc/0x340 kernel/locking/lockdep.c:4623
 __lock_acquire+0xb7f/0x1f80 kernel/locking/lockdep.c:5003
 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
 htab_lock_bucket+0x1a0/0x360 kernel/bpf/hashtab.c:166
 htab_lru_map_delete_elem+0x1f7/0x860 kernel/bpf/hashtab.c:1438
 bpf_prog_3ffd2c70e20892c6+0x3a/0x43
 bpf_dispatcher_nop_func include/linux/bpf.h:1000 [inline]
 __bpf_prog_run include/linux/filter.h:603 [inline]
 bpf_prog_run include/linux/filter.h:610 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2284 [inline]
 bpf_trace_run2+0x1fd/0x410 kernel/trace/bpf_trace.c:2323
 __bpf_trace_kfree+0x6e/0x90 include/trace/events/kmem.h:94
 __traceiter_kfree+0x26/0x40 include/trace/events/kmem.h:94
 trace_kfree include/trace/events/kmem.h:94 [inline]
 kfree+0xf6/0x190 mm/slab_common.c:975
 release_callchain_buffers_rcu+0x33/0xf0 kernel/events/callchain.c:56
 rcu_do_batch kernel/rcu/tree.c:2297 [inline]
 rcu_core+0xade/0x1820 kernel/rcu/tree.c:2557
 handle_softirqs+0x2ee/0xa40 kernel/softirq.c:578
 __do_softirq kernel/softirq.c:612 [inline]
 invoke_softirq kernel/softirq.c:452 [inline]
 __irq_exit_rcu+0x157/0x240 kernel/softirq.c:661
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:673
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
 sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:preempt_count_sub+0x0/0x160 kernel/sched/core.c:5731
Code: ff 48 c7 c1 38 e9 a0 8e 80 e1 07 80 c1 03 38 c1 7c 80 48 c7 c7 38 e9 a0 8e e8 dc 71 83 00 e9 6f ff ff ff 0f 1f 80 00 00 00 00 <41> 56 53 89 fb 48 c7 c0 60 01 3c 97 48 c1 e8 03 49 be 00 00 00 00
RSP: 0018:ffffc90003e575d8 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff8abc2a00
RDX: ffff88805a8f5940 RSI: ffffffff8b5f6f60 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffff810091f9 R09: ffffc90003e57750
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88805a8f5940
R13: ffffffff81785b30 R14: 00007f1aaf36fb6a R15: 1ffff920007caed5
 is_module_text_address+0xdf/0x140 kernel/module/main.c:3104
 kernel_text_address+0x8e/0xd0 kernel/extable.c:119
 __kernel_text_address+0x9/0x40 kernel/extable.c:79
 unwind_get_return_address+0x49/0x80 arch/x86/kernel/unwind_orc.c:323
 arch_stack_walk+0xf3/0x140 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:516
 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236
 kasan_slab_free include/linux/kasan.h:177 [inline]
 slab_free_hook mm/slub.c:1724 [inline]
 slab_free_freelist_hook mm/slub.c:1750 [inline]
 slab_free mm/slub.c:3661 [inline]
 __kmem_cache_free+0x25c/0x3c0 mm/slub.c:3674
 uevent_show+0x1ed/0x330 drivers/base/core.c:2680
 dev_attr_show+0x50/0xb0 drivers/base/core.c:2372
 sysfs_kf_seq_show+0x32d/0x4b0 fs/sysfs/file.c:59
 seq_read_iter+0x43a/0xd10 fs/seq_file.c:230
 call_read_iter include/linux/fs.h:2259 [inline]
 new_sync_read fs/read_write.c:389 [inline]
 vfs_read+0x88d/0xbf0 fs/read_write.c:470
 ksys_read+0x19c/0x2c0 fs/read_write.c:613
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f1aaf36fb6a
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:00007ffc3aa1ca58 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00005555ba802eb0 RCX: 00007f1aaf36fb6a
RDX: 0000000000001000 RSI: 00005555ba80e880 RDI: 0000000000000009
RBP: 00005555ba802eb0 R08: 0000000000000009 R09: 0000000000000008
R10: 000000000000010f R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000003fff R14: 00007ffc3aa1cf38 R15: 000000000000000a
 </TASK>
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	48 c7 c1 38 e9 a0 8e 	mov    $0xffffffff8ea0e938,%rcx
   7:	80 e1 07             	and    $0x7,%cl
   a:	80 c1 03             	add    $0x3,%cl
   d:	38 c1                	cmp    %al,%cl
   f:	7c 80                	jl     0xffffff91
  11:	48 c7 c7 38 e9 a0 8e 	mov    $0xffffffff8ea0e938,%rdi
  18:	e8 dc 71 83 00       	call   0x8371f9
  1d:	e9 6f ff ff ff       	jmp    0xffffff91
  22:	0f 1f 80 00 00 00 00 	nopl   0x0(%rax)
* 29:	41 56                	push   %r14 <-- trapping instruction
  2b:	53                   	push   %rbx
  2c:	89 fb                	mov    %edi,%ebx
  2e:	48 c7 c0 60 01 3c 97 	mov    $0xffffffff973c0160,%rax
  35:	48 c1 e8 03          	shr    $0x3,%rax
  39:	49                   	rex.WB
  3a:	be 00 00 00 00       	mov    $0x0,%esi

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/22 10:39 linux-6.1.y 344a09659766 c6512ef7 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: MAX_STACK_TRACE_ENTRIES too low!
* Struck through repros no longer work on HEAD.