syzbot


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

Status: fixed on 2023/02/24 13:50
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+b6c9b65b6753d333d833@syzkaller.appspotmail.com
Fix commit: fcde59feb1af io_uring: add io_op_defs 'def' pointer in req init and issue
First crash: 697d, last: 696d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] UBSAN: array-index-out-of-bounds in io_submit_sqes 9 (10) 2022/05/31 09:53

Sample crash report:
================================================================================
================================================================================
UBSAN: array-index-out-of-bounds in fs/io_uring.c:8860:19
index 66 is out of range for type 'io_op_def [47]'
CPU: 0 PID: 532 Comm: syz-executor.3 Not tainted 5.18.0-next-20220531-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/0x50 lib/ubsan.c:151
 __ubsan_handle_out_of_bounds.cold+0x62/0x6c lib/ubsan.c:283
 io_init_req fs/io_uring.c:8860 [inline]
 io_submit_sqe fs/io_uring.c:8987 [inline]
 io_submit_sqes+0x6f0e/0x8020 fs/io_uring.c:9143
 __do_sys_io_uring_enter+0x1112/0x2300 fs/io_uring.c:12077
 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+0x46/0xb0
RIP: 0033:0x7f81a5c89109
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f81a6e6c168 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa
RAX: ffffffffffffffda RBX: 00007f81a5d9c100 RCX: 00007f81a5c89109
RDX: 0000000000000001 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007f81a5ce308d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe47169fdf R14: 00007f81a6e6c300 R15: 0000000000022000
 </TASK>
================================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/06/01 00:24 linux-next 3b46e4e44180 3666edfe .config console log report info ci-upstream-linux-next-kasan-gce-root UBSAN: array-index-out-of-bounds in io_submit_sqes
2022/05/31 14:37 linux-next 3b46e4e44180 af70c3a9 .config console log report info ci-upstream-linux-next-kasan-gce-root UBSAN: array-index-out-of-bounds in io_submit_sqes
2022/05/31 08:12 linux-next 3b46e4e44180 af70c3a9 .config console log report info ci-upstream-linux-next-kasan-gce-root UBSAN: array-index-out-of-bounds in io_submit_sqes
2022/05/31 07:20 linux-next 3b46e4e44180 af70c3a9 .config console log report info ci-upstream-linux-next-kasan-gce-root UBSAN: array-index-out-of-bounds in io_submit_sqes
* Struck through repros no longer work on HEAD.