syzbot


UBSAN: array-index-out-of-bounds in sfq_dec

Status: closed as invalid on 2025/01/15 12:30
Subsystems: net
[Documentation on labels]
First crash: 33d, last: 26d

Sample crash report:
------------[ 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: 0 UID: 0 PID: 8240 Comm: syz.1.531 Not tainted 6.13.0-rc3-syzkaller-00167-gb3a69c559899 #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
 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
 sfq_reset+0x17/0x60 net/sched/sch_sfq.c:518
 qdisc_reset+0x113/0x5b0 net/sched/sch_generic.c:1040
 tbf_reset+0x41/0x110 net/sched/sch_tbf.c:339
 qdisc_reset+0x113/0x5b0 net/sched/sch_generic.c:1040
 dev_reset_queue+0x100/0x1b0 net/sched/sch_generic.c:1314
 netdev_for_each_tx_queue include/linux/netdevice.h:2562 [inline]
 dev_deactivate_many+0x54a/0xb10 net/sched/sch_generic.c:1380
 dev_deactivate+0x184/0x280 net/sched/sch_generic.c:1403
 qdisc_graft+0x8ad/0x1660 net/sched/sch_api.c:1136
 tc_modify_qdisc+0xf47/0x1e40 net/sched/sch_api.c:1793
 rtnetlink_rcv_msg+0x73f/0xcf0 net/core/rtnetlink.c:6931
 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2542
 netlink_unicast_kernel net/netlink/af_netlink.c:1321 [inline]
 netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1347
 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1891
 sock_sendmsg_nosec net/socket.c:711 [inline]
 __sock_sendmsg+0x221/0x270 net/socket.c:726
 ____sys_sendmsg+0x52a/0x7e0 net/socket.c:2583
 ___sys_sendmsg net/socket.c:2637 [inline]
 __sys_sendmmsg+0x36a/0x720 net/socket.c:2726
 __do_sys_sendmmsg net/socket.c:2753 [inline]
 __se_sys_sendmmsg net/socket.c:2750 [inline]
 __x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2750
 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:0x7fb7bb985d29
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb7bc83e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007fb7bbb75fa0 RCX: 00007fb7bb985d29
RDX: 040000000000009f RSI: 00000000200002c0 RDI: 0000000000000004
RBP: 00007fb7bba01aa8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fb7bbb75fa0 R15: 00007ffeb66e9368
 </TASK>
---[ end trace ]---

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/25 18:40 net b3a69c559899 444551c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce UBSAN: array-index-out-of-bounds in sfq_dec
2024/12/18 02:12 net 7ed2d9158877 c8c15bb2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce UBSAN: array-index-out-of-bounds in sfq_dec
* Struck through repros no longer work on HEAD.