================================================================== BUG: KCSAN: data-race in generic_write_end / mpage_process_page_bufs write to 0xffff88810a8bea88 of 8 bytes by task 12169 on cpu 0: i_size_write include/linux/fs.h:932 [inline] generic_write_end+0x94/0x230 fs/buffer.c:2280 ext4_da_write_end+0x49e/0x6f0 fs/ext4/inode.c:2988 generic_perform_write+0x267/0x410 mm/filemap.c:3956 ext4_buffered_write_iter+0x1f6/0x370 fs/ext4/file.c:299 ext4_file_write_iter+0x283/0x1230 call_write_iter include/linux/fs.h:1985 [inline] aio_write+0x26d/0x370 fs/aio.c:1582 io_submit_one+0xb39/0x1250 fs/aio.c:2001 __do_sys_io_submit fs/aio.c:2060 [inline] __se_sys_io_submit+0xf5/0x280 fs/aio.c:2030 __x64_sys_io_submit+0x43/0x50 fs/aio.c:2030 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff88810a8bea88 of 8 bytes by task 12174 on cpu 1: i_size_read include/linux/fs.h:910 [inline] mpage_process_page_bufs+0x34/0x5d0 fs/ext4/inode.c:1956 mpage_prepare_extent_to_map+0x780/0xb70 fs/ext4/inode.c:2487 ext4_do_writepages+0xa52/0x21c0 fs/ext4/inode.c:2675 ext4_writepages+0x15e/0x2e0 fs/ext4/inode.c:2766 do_writepages+0x1c2/0x340 mm/page-writeback.c:2553 filemap_fdatawrite_wbc+0xdb/0xf0 mm/filemap.c:393 __filemap_fdatawrite_range mm/filemap.c:426 [inline] __filemap_fdatawrite mm/filemap.c:432 [inline] filemap_flush+0x95/0xc0 mm/filemap.c:459 ext4_alloc_da_blocks+0x50/0x130 fs/ext4/inode.c:3033 ext4_release_file+0x5f/0x1c0 fs/ext4/file.c:169 __fput+0x2fd/0x5f0 fs/file_table.c:384 ____fput+0x15/0x20 fs/file_table.c:412 task_work_run+0x135/0x1a0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xd1/0xe0 kernel/entry/common.c:171 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:296 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x0000000000a5a000 -> 0x0000000000a5c000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 12174 Comm: syz-executor.1 Not tainted 6.5.0-syzkaller-04808-g6c1b980a7e79 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 ==================================================================