------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in net/sched/sch_sfq.c:203:6
index 65535 is out of range for type 'struct sfq_head[128]'
CPU: 1 UID: 0 PID: 8057 Comm: syz.1.625 Not tainted 6.13.0-rc2-syzkaller-00161-g7ed2d9158877 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
ubsan_epilogue lib/ubsan.c:231 [inline]
__ubsan_handle_out_of_bounds+0x121/0x150 lib/ubsan.c:429
sfq_link net/sched/sch_sfq.c:203 [inline]
sfq_dec+0x53c/0x610 net/sched/sch_sfq.c:231
sfq_dequeue+0x34e/0x8c0 net/sched/sch_sfq.c:493
qdisc_peek_dequeued+0x76/0x230 include/net/sch_generic.h:1128
tbf_dequeue+0x86/0xd40 net/sched/sch_tbf.c:280
dequeue_skb net/sched/sch_generic.c:293 [inline]
qdisc_restart net/sched/sch_generic.c:398 [inline]
__qdisc_run+0x272/0x2180 net/sched/sch_generic.c:416
qdisc_run+0xda/0x270 include/net/pkt_sched.h:127
net_tx_action+0x896/0xa50 net/core/dev.c:5334
handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561
__do_softirq kernel/softirq.c:595 [inline]
invoke_softirq kernel/softirq.c:435 [inline]
__irq_exit_rcu+0xf7/0x220 kernel/softirq.c:662
irq_exit_rcu+0x9/0x30 kernel/softirq.c:678
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1049
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+0x1d9/0x22d0 arch/x86/kernel/unwind_orc.c:494
Code: 86 55 18 00 00 44 89 f0 48 8d 1c 85 f0 db 48 91 48 89 d8 48 c1 e8 03 42 0f b6 04 20 84 c0 4c 89 e5 0f 85 97 1a 00 00 44 8b 23 <44> 89 f0 ff c0 48 8d 1c 85 f0 db 48 91 48 89 d8 48 c1 e8 03 0f b6
RSP: 0018:ffffc900033df470 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffffffff914a5ab4 RCX: 00000000000b0001
RDX: 00000000000b0001 RSI: ffffffff815fb166 RDI: ffffffff814b9930
RBP: dffffc0000000000 R08: 0000000000000005 R09: ffffc900033df630
R10: ffffc900033df590 R11: ffffffff818b2450 R12: 00000000000166bc
R13: ffffc900033df540 R14: 0000000000005fb1 R15: ffffffff815fb165
arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122
kasan_save_stack mm/kasan/common.c:47 [inline]
kasan_save_track+0x3f/0x80 mm/kasan/common.c:68
unpoison_slab_object mm/kasan/common.c:319 [inline]
__kasan_slab_alloc+0x66/0x80 mm/kasan/common.c:345
kasan_slab_alloc include/linux/kasan.h:250 [inline]
slab_post_alloc_hook mm/slub.c:4104 [inline]
slab_alloc_node mm/slub.c:4153 [inline]
kmem_cache_alloc_node_noprof+0x1d9/0x380 mm/slub.c:4205
alloc_task_struct_node kernel/fork.c:180 [inline]
dup_task_struct+0x57/0x8c0 kernel/fork.c:1113
copy_process+0x5d1/0x3d50 kernel/fork.c:2225
kernel_clone+0x226/0x8e0 kernel/fork.c:2807
__do_sys_clone3 kernel/fork.c:3111 [inline]
__se_sys_clone3+0x2d8/0x360 kernel/fork.c:3090
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:0x7fc53b3ba589
Code: 1b 08 00 48 8d 3d 1c 1b 08 00 e8 12 29 f6 ff 66 90 b8 ea ff ff ff 48 85 ff 74 2c 48 85 d2 74 27 49 89 c8 b8 b3 01 00 00 0f 05 <48> 85 c0 7c 18 74 01 c3 31 ed 48 83 e4 f0 4c 89 c7 ff d2 48 89 c7
RSP: 002b:00007ffebd8a0e78 EFLAGS: 00000206 ORIG_RAX: 00000000000001b3
RAX: ffffffffffffffda RBX: 00007fc53b33c9a0 RCX: 00007fc53b3ba589
RDX: 00007fc53b33c9a0 RSI: 0000000000000058 RDI: 00007ffebd8a0ec0
RBP: 00007fc53c17f6c0 R08: 00007fc53c17f6c0 R09: 00007ffebd8a0fa7
R10: 0000000000000008 R11: 0000000000000206 R12: ffffffffffffffa8
R13: 000000000000000b R14: 00007ffebd8a0ec0 R15: 00007ffebd8a0fa8
---[ end trace ]---
----------------
Code disassembly (best guess):
0: 86 55 18 xchg %dl,0x18(%rbp)
3: 00 00 add %al,(%rax)
5: 44 89 f0 mov %r14d,%eax
8: 48 8d 1c 85 f0 db 48 lea -0x6eb72410(,%rax,4),%rbx
f: 91
10: 48 89 d8 mov %rbx,%rax
13: 48 c1 e8 03 shr $0x3,%rax
17: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax
1c: 84 c0 test %al,%al
1e: 4c 89 e5 mov %r12,%rbp
21: 0f 85 97 1a 00 00 jne 0x1abe
27: 44 8b 23 mov (%rbx),%r12d
* 2a: 44 89 f0 mov %r14d,%eax <-- trapping instruction
2d: ff c0 inc %eax
2f: 48 8d 1c 85 f0 db 48 lea -0x6eb72410(,%rax,4),%rbx
36: 91
37: 48 89 d8 mov %rbx,%rax
3a: 48 c1 e8 03 shr $0x3,%rax
3e: 0f .byte 0xf
3f: b6 .byte 0xb6