================================================================== 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_read_iter+0x938/0xe40 fs/gfs2/file.c:994 Read of size 8 at addr ffffc9000390ed70 by task syz.4.69/4559 CPU: 0 PID: 4559 Comm: syz.4.69 Not tainted 5.15.175-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 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_read_iter+0x938/0xe40 fs/gfs2/file.c:994 __kernel_read+0x5ac/0xa60 fs/read_write.c:443 integrity_kernel_read+0xac/0xf0 security/integrity/iint.c:228 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:485 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline] ima_calc_file_hash+0xa5d/0x1c00 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x323/0x820 security/integrity/ima/ima_api.c:255 process_measurement+0x1363/0x21c0 security/integrity/ima/ima_main.c:351 ima_file_check+0xf3/0x180 security/integrity/ima/ima_main.c:533 do_open fs/namei.c:3610 [inline] path_openat+0x2748/0x2f20 fs/namei.c:3742 do_filp_open+0x21c/0x460 fs/namei.c:3769 do_sys_openat2+0x13b/0x4f0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_openat fs/open.c:1285 [inline] __se_sys_openat fs/open.c:1280 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1280 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fe2789e8690 Code: 48 89 44 24 20 75 93 44 89 54 24 0c e8 49 94 02 00 44 8b 54 24 0c 89 da 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 38 44 89 c7 89 44 24 0c e8 9c 94 02 00 8b 44 RSP: 002b:00007fe276838b70 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fe2789e8690 RDX: 0000000000000002 RSI: 00007fe276838c10 RDI: 00000000ffffff9c RBP: 00007fe276838c10 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe278bda080 R15: 00007fff55acf208 addr ffffc9000390ed70 is located in stack of task syz.4.69/4559 at offset 48 in frame: __kernel_read+0x0/0xa60 this frame has 3 objects: [32, 48) 'iov' [64, 112) 'kiocb' [144, 184) 'iter' Memory state around the buggy address: ffffc9000390ec00: f1 f1 f1 f1 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 ffffc9000390ec80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc9000390ed00: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 ^ ffffc9000390ed80: 00 00 00 00 00 00 f2 f2 f2 f2 00 00 00 00 00 f3 ffffc9000390ee00: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================