================================================================== BUG: KCSAN: data-race in ext4_setattr / mpage_process_page_bufs write to 0xffff888105f741e8 of 8 bytes by task 10346 on cpu 0: i_size_write include/linux/fs.h:916 [inline] ext4_setattr+0xd7f/0xef0 fs/ext4/inode.c:5440 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_creat fs/open.c:1290 [inline] __se_sys_creat fs/open.c:1284 [inline] __x64_sys_creat+0x62/0x80 fs/open.c:1284 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 0xffff888105f741e8 of 8 bytes by task 8 on cpu 1: i_size_read include/linux/fs.h:894 [inline] mpage_process_page_bufs+0x34/0x560 fs/ext4/inode.c:2190 mpage_prepare_extent_to_map+0x4f6/0x650 fs/ext4/inode.c:2624 ext4_writepages+0xa18/0x1d70 fs/ext4/inode.c:2796 do_writepages+0x26b/0x3c0 mm/page-writeback.c:2364 __writeback_single_inode+0x80/0x440 fs/fs-writeback.c:1616 writeback_sb_inodes+0x563/0xd30 fs/fs-writeback.c:1881 wb_writeback+0x27d/0x6d0 fs/fs-writeback.c:2053 wb_do_writeback+0x101/0x530 fs/fs-writeback.c:2196 wb_workfn+0xc8/0x540 fs/fs-writeback.c:2237 process_one_work+0x402/0x910 kernel/workqueue.c:2297 worker_thread+0x636/0xae0 kernel/workqueue.c:2444 kthread+0x262/0x280 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 value changed: 0x0000000000fff000 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 8 Comm: kworker/u4:0 Not tainted 5.15.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: writeback wb_workfn (flush-8:0) ==================================================================