syzbot


UBSAN: array-index-out-of-bounds in qfq_update_agg (3)

Status: auto-closed as invalid on 2022/05/13 16:20
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+ed284664846fc47b6300@syzkaller.appspotmail.com
First crash: 945d, last: 831d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] UBSAN: array-index-out-of-bounds in qfq_update_agg (3) 0 (1) 2021/09/24 01:58
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream UBSAN: array-index-out-of-bounds in qfq_update_agg (2) net 1 1063d 1063d 0/26 auto-closed as invalid on 2021/08/25 08:31
upstream UBSAN: array-index-out-of-bounds in qfq_update_agg (4) net 1 372d 372d 22/26 fixed on 2023/06/08 14:41
upstream UBSAN: array-index-out-of-bounds in qfq_update_agg net 2 1193d 1204d 0/26 auto-closed as invalid on 2021/05/16 21:20

Sample crash report:
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.5'.
================================================================================
UBSAN: array-index-out-of-bounds in net/sched/sch_qfq.c:300:24
index 29 is out of range for type 'qfq_group [25]'
CPU: 1 PID: 28839 Comm: syz-executor.5 Not tainted 5.15.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 ubsan_epilogue+0xb/0x5a lib/ubsan.c:151
 __ubsan_handle_out_of_bounds.cold+0x62/0x6c lib/ubsan.c:291
 qfq_update_agg+0x6e6/0x700 net/sched/sch_qfq.c:300
 qfq_add_to_agg+0x75/0x500 net/sched/sch_qfq.c:317
 qfq_change_class+0x67e/0x1600 net/sched/sch_qfq.c:508
 tc_ctl_tclass+0x52f/0xe60 net/sched/sch_api.c:2104
 rtnetlink_rcv_msg+0x413/0xb80 net/core/rtnetlink.c:5571
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2491
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x86d/0xda0 net/netlink/af_netlink.c:1916
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:724
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2409
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2463
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2492
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f3861750ae9
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f385ecc6188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f3861863f60 RCX: 00007f3861750ae9
RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000003
RBP: 00007f38617aaf25 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc0cd7c8ff R14: 00007f385ecc6300 R15: 0000000000022000
 </TASK>
================================================================================

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/11/03 19:37 net-old db2434343b2c 4c1be0be .config console log report info ci-upstream-net-this-kasan-gce UBSAN: array-index-out-of-bounds in qfq_update_agg
2021/10/21 11:56 net-old 4225fea1cb28 f111d03b .config console log report info ci-upstream-net-this-kasan-gce UBSAN: array-index-out-of-bounds in qfq_update_agg
2021/09/22 15:28 net-old b3f98404bd62 169724fe .config console log report info ci-upstream-net-this-kasan-gce UBSAN: array-index-out-of-bounds in qfq_update_agg
2022/01/13 16:19 net-next-old fe8152b38d3a 44d1319a .config console log report info ci-upstream-net-kasan-gce UBSAN: array-index-out-of-bounds in qfq_update_agg
2021/11/09 17:44 net-next-old cc0356d6a02e 59bcaf9a .config console log report info ci-upstream-net-kasan-gce UBSAN: array-index-out-of-bounds in qfq_update_agg
2021/10/12 01:02 net-next-old ce8bd03c47fc 838e7e2c .config console log report info ci-upstream-net-kasan-gce UBSAN: array-index-out-of-bounds in qfq_update_agg
* Struck through repros no longer work on HEAD.