================================================================== BUG: KASAN: stack-out-of-bounds in should_fault_in_pages fs/gfs2/file.c:784 [inline] BUG: KASAN: stack-out-of-bounds in gfs2_file_buffered_write+0x505/0x850 fs/gfs2/file.c:1069 Read of size 8 at addr ffffc9000f9c7d30 by task syz-executor.4/14203 CPU: 0 PID: 14203 Comm: syz-executor.4 Not tainted 5.15.132-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_address_description+0x63/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x16b/0x1c0 mm/kasan/report.c:451 should_fault_in_pages fs/gfs2/file.c:784 [inline] gfs2_file_buffered_write+0x505/0x850 fs/gfs2/file.c:1069 gfs2_file_write_iter+0x4a2/0xf10 fs/gfs2/file.c:1165 call_write_iter include/linux/fs.h:2103 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0xacf/0xe50 fs/read_write.c:594 ksys_write+0x1a2/0x2c0 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f506a114ae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f50686960c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f506a233f80 RCX: 00007f506a114ae9 RDX: 000000000000000b RSI: 0000000020001840 RDI: 0000000000000004 RBP: 00007f506a16047a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f506a233f80 R15: 00007ffd2dd1d828 addr ffffc9000f9c7d30 is located in stack of task syz-executor.4/14203 at offset 48 in frame: vfs_write+0x0/0xe50 this frame has 3 objects: [32, 48) 'iov.i' [64, 112) 'kiocb.i' [144, 184) 'iter.i' Memory state around the buggy address: ffffc9000f9c7c00: 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 ffffc9000f9c7c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc9000f9c7d00: f1 f1 f1 f1 00 00 f2 f2 00 00 00 00 00 00 f2 f2 ^ ffffc9000f9c7d80: f2 f2 00 00 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 ffffc9000f9c7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================