================================================================== BUG: KASAN: stack-out-of-bounds in iov_iter_revert lib/iov_iter.c:1097 [inline] BUG: KASAN: stack-out-of-bounds in iov_iter_revert+0x803/0x900 lib/iov_iter.c:1037 Read of size 8 at addr ffffc90004b4f8a8 by task syz-executor.1/9321 CPU: 0 PID: 9321 Comm: syz-executor.1 Not tainted 5.14.0-rc5-next-20210812-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description.constprop.0.cold+0xf/0x309 mm/kasan/report.c:256 __kasan_report mm/kasan/report.c:442 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:459 iov_iter_revert lib/iov_iter.c:1097 [inline] iov_iter_revert+0x803/0x900 lib/iov_iter.c:1037 io_write+0x57b/0xed0 fs/io_uring.c:3471 io_issue_sqe+0x28c/0x6740 fs/io_uring.c:6194 __io_queue_sqe+0xc2/0xb30 fs/io_uring.c:6481 io_queue_sqe fs/io_uring.c:6522 [inline] io_submit_sqe fs/io_uring.c:6677 [inline] io_submit_sqes+0x629a/0x8370 fs/io_uring.c:6793 __do_sys_io_uring_enter+0xf4f/0x1f10 fs/io_uring.c:9388 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:0x4665e9 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:00007f41ead51188 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9 RDX: 0000000000000000 RSI: 00000000000052fe RDI: 0000000000000003 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffdbfebd1cf R14: 00007f41ead51300 R15: 0000000000022000 addr ffffc90004b4f8a8 is located in stack of task syz-executor.1/9321 at offset 152 in frame: io_write+0x0/0xed0 fs/io_uring.c:3347 this frame has 3 objects: [48, 56) 'iovec' [80, 120) '__iter' [160, 288) 'inline_vecs' Memory state around the buggy address: ffffc90004b4f780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90004b4f800: 00 00 f1 f1 f1 f1 00 00 00 f2 f2 f2 00 00 00 00 >ffffc90004b4f880: 00 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 00 ^ ffffc90004b4f900: 00 00 00 00 00 00 f3 f3 f3 f3 00 00 00 00 00 00 ffffc90004b4f980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================