================================================================== BUG: KCSAN: data-race in ext4_setattr / mpage_process_page_bufs write to 0xffff8881330ac2e8 of 8 bytes by task 31284 on cpu 0: i_size_write include/linux/fs.h:916 [inline] ext4_setattr+0xd7f/0xef0 fs/ext4/inode.c:5498 notify_change+0x8a3/0xac0 fs/attr.c:410 do_truncate+0xf7/0x140 fs/open.c:64 handle_truncate fs/namei.c:3084 [inline] do_open fs/namei.c:3432 [inline] path_openat+0x1925/0x1ec0 fs/namei.c:3561 do_filp_open+0x105/0x220 fs/namei.c:3588 do_sys_openat2+0xb5/0x2b0 fs/open.c:1200 do_sys_open fs/open.c:1216 [inline] __do_sys_openat fs/open.c:1232 [inline] __se_sys_openat fs/open.c:1227 [inline] __x64_sys_openat+0xef/0x110 fs/open.c:1227 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff8881330ac2e8 of 8 bytes by task 31285 on cpu 1: i_size_read include/linux/fs.h:894 [inline] mpage_process_page_bufs+0x34/0x560 fs/ext4/inode.c:2198 mpage_prepare_extent_to_map+0x4f6/0x650 fs/ext4/inode.c:2632 ext4_writepages+0xa18/0x1d70 fs/ext4/inode.c:2804 do_writepages+0x26b/0x3c0 mm/page-writeback.c:2364 filemap_fdatawrite_wbc mm/filemap.c:400 [inline] __filemap_fdatawrite_range mm/filemap.c:433 [inline] __filemap_fdatawrite mm/filemap.c:439 [inline] filemap_flush+0x154/0x180 mm/filemap.c:466 ext4_alloc_da_blocks+0x47/0xd0 fs/ext4/inode.c:3170 ext4_release_file+0x5b/0x1d0 fs/ext4/file.c:141 __fput+0x295/0x520 fs/file_table.c:280 ____fput+0x11/0x20 fs/file_table.c:313 task_work_run+0xae/0x130 kernel/task_work.c:164 get_signal+0x155c/0x15d0 kernel/signal.c:2641 arch_do_signal_or_restart+0x8c/0x280 arch/x86/kernel/signal.c:865 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x109/0x190 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300 do_syscall_64+0x50/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00000000003d6000 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 31285 Comm: syz-executor.2 Not tainted 5.15.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================