bio_check_eod: 3 callbacks suppressed syz-executor.2: attempt to access beyond end of device loop2: rw=1, sector=1224, nr_sectors = 608 limit=256 ================================================================== BUG: KCSAN: data-race in __mpage_writepage / generic_write_end write to 0xffff88813c101318 of 8 bytes by task 29219 on cpu 0: i_size_write include/linux/fs.h:932 [inline] generic_write_end+0x94/0x230 fs/buffer.c:2275 fat_write_end+0x4e/0x160 fs/fat/inode.c:244 cont_expand_zero fs/buffer.c:2497 [inline] cont_write_begin+0x2c0/0x690 fs/buffer.c:2555 fat_write_begin+0x61/0xf0 fs/fat/inode.c:230 generic_cont_expand_simple+0xa7/0x140 fs/buffer.c:2456 fat_cont_expand+0x3a/0x160 fs/fat/file.c:223 fat_setattr+0x2a9/0x840 fs/fat/file.c:513 notify_change+0x866/0x8e0 fs/attr.c:499 do_truncate+0x116/0x150 fs/open.c:66 do_sys_ftruncate+0x2ba/0x3b0 fs/open.c:194 __do_sys_ftruncate fs/open.c:205 [inline] __se_sys_ftruncate fs/open.c:203 [inline] __x64_sys_ftruncate+0x33/0x40 fs/open.c:203 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffff88813c101318 of 8 bytes by task 29581 on cpu 1: i_size_read include/linux/fs.h:910 [inline] __mpage_writepage+0xa6/0xdc0 fs/mpage.c:478 write_cache_pages+0x38d/0x740 mm/page-writeback.c:2474 mpage_writepages+0x72/0xe0 fs/mpage.c:672 fat_writepages+0x24/0x30 fs/fat/inode.c:200 do_writepages+0x1c2/0x340 mm/page-writeback.c:2553 filemap_fdatawrite_wbc+0xdb/0xf0 mm/filemap.c:388 __filemap_fdatawrite_range+0xa1/0xd0 mm/filemap.c:421 sync_file_range+0x1b3/0x220 fs/sync.c:292 ksys_sync_file_range fs/sync.c:364 [inline] __do_sys_sync_file_range fs/sync.c:373 [inline] __se_sys_sync_file_range fs/sync.c:370 [inline] __x64_sys_sync_file_range+0x80/0xd0 fs/sync.c:370 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x0000000000d4f000 -> 0x0000000000d50000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 29581 Comm: syz-executor.2 Not tainted 6.7.0-syzkaller-12377-g9d1694dc91ce #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ================================================================== syz-executor.2: attempt to access beyond end of device loop2: rw=1, sector=1864, nr_sectors = 5000 limit=256 syz-executor.2: attempt to access beyond end of device loop2: rw=1, sector=6864, nr_sectors = 24672 limit=256 syz-executor.2: attempt to access beyond end of device loop2: rw=1, sector=31536, nr_sectors = 2264 limit=256