================================================================== BUG: KCSAN: data-race in mb_mark_used / mb_update_avg_fragment_size write to 0xffff8881010ebb54 of 4 bytes by task 1117 on cpu 0: mb_mark_used+0x13b/0xc50 fs/ext4/mballoc.c:1947 ext4_mb_use_best_found+0x102/0x320 fs/ext4/mballoc.c:2019 ext4_mb_measure_extent fs/ext4/mballoc.c:2135 [inline] ext4_mb_complex_scan_group+0x359/0x880 fs/ext4/mballoc.c:2365 ext4_mb_regular_allocator+0x1a32/0x2530 fs/ext4/mballoc.c:2778 ext4_mb_new_blocks+0x792/0x1fc0 fs/ext4/mballoc.c:5586 ext4_ext_map_blocks+0x15ed/0x1ff0 fs/ext4/extents.c:4250 ext4_map_blocks+0x71e/0xf00 fs/ext4/inode.c:637 ext4_getblk+0xc6/0x3e0 fs/ext4/inode.c:847 ext4_bread+0x28/0x100 fs/ext4/inode.c:900 ext4_append+0xd1/0x1c0 fs/ext4/namei.c:67 ext4_init_new_dir+0x177/0x500 fs/ext4/namei.c:2893 ext4_mkdir+0x329/0x760 fs/ext4/namei.c:2939 vfs_mkdir+0x2c3/0x3e0 fs/namei.c:3885 do_mkdirat+0x12e/0x2c0 fs/namei.c:3911 __do_sys_mkdir fs/namei.c:3931 [inline] __se_sys_mkdir fs/namei.c:3929 [inline] __x64_sys_mkdir+0x40/0x50 fs/namei.c:3929 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 0xffff8881010ebb54 of 4 bytes by task 2793 on cpu 1: ext4_mb_avg_fragment_size_cmp fs/ext4/mballoc.c:839 [inline] ext4_mb_rb_insert fs/ext4/mballoc.c:815 [inline] mb_update_avg_fragment_size+0x184/0x260 fs/ext4/mballoc.c:863 mb_mark_used+0xae0/0xc50 fs/ext4/mballoc.c:1998 ext4_mb_use_best_found+0x102/0x320 fs/ext4/mballoc.c:2019 ext4_mb_simple_scan_group+0x253/0x3a0 fs/ext4/mballoc.c:2297 ext4_mb_regular_allocator+0x1984/0x2530 fs/ext4/mballoc.c:2773 ext4_mb_new_blocks+0x792/0x1fc0 fs/ext4/mballoc.c:5586 ext4_ext_map_blocks+0x15ed/0x1ff0 fs/ext4/extents.c:4250 ext4_map_blocks+0x71e/0xf00 fs/ext4/inode.c:637 mpage_map_one_extent+0x10d/0x360 fs/ext4/inode.c:2401 mpage_map_and_submit_extent fs/ext4/inode.c:2454 [inline] ext4_writepages+0xc5a/0x1d70 fs/ext4/inode.c:2806 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_write_and_wait_range+0x238/0x3c0 mm/filemap.c:704 ext4_punch_hole+0x14c/0x9d0 fs/ext4/inode.c:4026 ext4_fallocate+0xea/0x4d0 fs/ext4/extents.c:4668 vfs_fallocate+0x459/0x6a0 fs/open.c:307 ksys_fallocate fs/open.c:330 [inline] __do_sys_fallocate fs/open.c:338 [inline] __se_sys_fallocate fs/open.c:336 [inline] __x64_sys_fallocate+0x75/0xc0 fs/open.c:336 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 value changed: 0x000058e2 -> 0x000058e1 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 2793 Comm: syz-executor.3 Not tainted 5.15.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================