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: 144d, last: 12d
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 (3) 2024/11/27 07:07
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 1394d 1395d 20/28 fixed on 2021/11/10 00:50
upstream BUG: MAX_STACK_TRACE_ENTRIES too low! (2) C done 5045 1980d 2148d 13/28 fixed on 2019/10/15 23:40
linux-5.15 BUG: MAX_STACK_TRACE_ENTRIES too low! origin:lts-only C done 27 3d06h 331d 0/3 upstream: reported C repro on 2024/03/19 07:46
upstream BUG: MAX_STACK_TRACE_ENTRIES too low! C done 1725 2149d 2175d 11/28 fixed on 2019/03/28 12:00
Last patch testing requests (10)
Created Duration User Patch Repo Result
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
2025/02/01 22:37 15m retest repro upstream report log
2025/02/01 22:37 17m retest repro upstream OK log
2025/02/01 22:33 15m retest repro bpf error
2025/02/01 22:33 20m retest repro net report log
2025/02/01 22:37 15m retest repro upstream report log

Sample crash report:
BUG: MAX_STACK_TRACE_ENTRIES too low!
turning off the locking correctness validator.
CPU: 1 UID: 0 PID: 9571 Comm: syz-executor108 Not tainted 6.13.0-rc2-syzkaller #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:
 <IRQ>
 __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:579
 mark_lock+0x2d2/0xc60 kernel/locking/lockdep.c:4744
 mark_usage kernel/locking/lockdep.c:4670 [inline]
 __lock_acquire+0x9f1/0x3c40 kernel/locking/lockdep.c:5180
 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5849
 __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:1484
 bpf_prog_8433e8db4eecb2c9+0x47/0x4b
 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:2351 [inline]
 bpf_trace_run2+0x231/0x590 kernel/trace/bpf_trace.c:2392
 __traceiter_kfree+0x2d/0x50 include/trace/events/kmem.h:94
 trace_kfree include/trace/events/kmem.h:94 [inline]
 kfree+0x258/0x4b0 mm/slub.c:4733
 slab_free_after_rcu_debug+0x69/0x340 mm/slub.c:4635
 rcu_do_batch kernel/rcu/tree.c:2567 [inline]
 rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2823
 handle_softirqs+0x213/0x8f0 kernel/softirq.c:554
 __do_softirq kernel/softirq.c:588 [inline]
 invoke_softirq kernel/softirq.c:428 [inline]
 __irq_exit_rcu+0x109/0x170 kernel/softirq.c:655
 irq_exit_rcu+0x9/0x30 kernel/softirq.c:671
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
 sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:218 [inline]
RIP: 0010:unwind_next_frame+0x27e/0x20c0 arch/x86/kernel/unwind_orc.c:494
Code: 7c b3 00 48 8b 54 24 30 8b 4c 24 28 8b 74 24 20 44 8b 5c 24 18 8b 14 95 c4 27 ab 91 89 cf 48 8d 04 7f 48 8d 84 00 d0 63 eb 90 <83> c2 01 48 3d c4 27 ab 91 0f 83 c1 07 00 00 41 89 d0 4f 8d 04 40
RSP: 0018:ffffc90004467210 EFLAGS: 00000246
RAX: ffffffff90fe31aa RBX: 0000000000000001 RCX: 000000000003224f
RDX: 000000000003224f RSI: 00000000000a6001 RDI: 000000000003224f
RBP: ffffc900044672c8 R08: 0000000000000000 R09: ffffffff90fe3b32
R10: ffffc90004467280 R11: 000000000000e76d R12: ffffc900044672d0
R13: ffffc90004467280 R14: ffffc900044672b5 R15: ffffffff81e76d5e
 arch_stack_walk+0x95/0x100 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x95/0xd0 kernel/stacktrace.c:122
 save_stack+0x162/0x1f0 mm/page_owner.c:156
 __reset_page_owner+0x8d/0x400 mm/page_owner.c:297
 reset_page_owner include/linux/page_owner.h:25 [inline]
 free_pages_prepare mm/page_alloc.c:1127 [inline]
 free_unref_folios+0xa7b/0x14f0 mm/page_alloc.c:2704
 folios_put_refs+0x587/0x7b0 mm/swap.c:962
 free_pages_and_swap_cache+0x45f/0x510 mm/swap_state.c:335
 __tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136
 tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
 tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
 tlb_flush_mmu mm/mmu_gather.c:373 [inline]
 tlb_finish_mmu+0x168/0x7b0 mm/mmu_gather.c:465
 exit_mmap+0x3df/0xb20 mm/mmap.c:1681
 __mmput+0x12a/0x4c0 kernel/fork.c:1353
 mmput+0x62/0x70 kernel/fork.c:1375
 exit_mm kernel/exit.c:570 [inline]
 do_exit+0x9bf/0x2d70 kernel/exit.c:925
 do_group_exit+0xd3/0x2a0 kernel/exit.c:1087
 get_signal+0x24ed/0x26c0 kernel/signal.c:3017
 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218
 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc5fe8eae49
Code: Unable to access opcode bytes at 0x7fc5fe8eae1f.
RSP: 002b:00007fc5fe8a5238 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007fc5fe9753e8 RCX: 00007fc5fe8eae49
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fc5fe9753e8
RBP: 00007fc5fe9753e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffb0
R13: 0000000000000016 R14: 00007ffe3bbd5400 R15: 00007ffe3bbd54e8
 </TASK>
----------------
Code disassembly (best guess):
   0:	7c b3                	jl     0xffffffb5
   2:	00 48 8b             	add    %cl,-0x75(%rax)
   5:	54                   	push   %rsp
   6:	24 30                	and    $0x30,%al
   8:	8b 4c 24 28          	mov    0x28(%rsp),%ecx
   c:	8b 74 24 20          	mov    0x20(%rsp),%esi
  10:	44 8b 5c 24 18       	mov    0x18(%rsp),%r11d
  15:	8b 14 95 c4 27 ab 91 	mov    -0x6e54d83c(,%rdx,4),%edx
  1c:	89 cf                	mov    %ecx,%edi
  1e:	48 8d 04 7f          	lea    (%rdi,%rdi,2),%rax
  22:	48 8d 84 00 d0 63 eb 	lea    -0x6f149c30(%rax,%rax,1),%rax
  29:	90
* 2a:	83 c2 01             	add    $0x1,%edx <-- trapping instruction
  2d:	48 3d c4 27 ab 91    	cmp    $0xffffffff91ab27c4,%rax
  33:	0f 83 c1 07 00 00    	jae    0x7fa
  39:	41 89 d0             	mov    %edx,%r8d
  3c:	4f 8d 04 40          	lea    (%r8,%r8,2),%r8

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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/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 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/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/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/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.