================================================================== BUG: KCSAN: data-race in __find_get_block / has_bh_in_lru read-write to 0xffff888237c2ba28 of 8 bytes by task 9048 on cpu 0: bh_lru_install fs/buffer.c:1337 [inline] __find_get_block+0x434/0x8a0 fs/buffer.c:1400 bdev_getblk+0x30/0x3b0 fs/buffer.c:1425 __bread_gfp+0x52/0x280 fs/buffer.c:1485 sb_bread include/linux/buffer_head.h:346 [inline] fat_ent_bread+0xc9/0x1a0 fs/fat/fatent.c:109 fat_ent_read_block fs/fat/fatent.c:445 [inline] fat_alloc_clusters+0x440/0xa80 fs/fat/fatent.c:493 fat_add_cluster fs/fat/inode.c:107 [inline] __fat_get_block fs/fat/inode.c:154 [inline] fat_get_block+0x25c/0x5e0 fs/fat/inode.c:189 __block_write_begin_int+0x417/0xfa0 fs/buffer.c:2116 block_write_begin fs/buffer.c:2226 [inline] cont_write_begin+0x546/0x860 fs/buffer.c:2577 fat_write_begin+0x51/0xe0 fs/fat/inode.c:228 cont_expand_zero fs/buffer.c:2504 [inline] cont_write_begin+0x18b/0x860 fs/buffer.c:2567 fat_write_begin+0x51/0xe0 fs/fat/inode.c:228 generic_cont_expand_simple+0xaa/0x150 fs/buffer.c:2468 fat_cont_expand+0x3a/0x160 fs/fat/file.c:223 fat_setattr+0x2aa/0x840 fs/fat/file.c:513 notify_change+0x85c/0x8e0 fs/attr.c:552 do_truncate fs/open.c:65 [inline] do_ftruncate+0x3cf/0x460 fs/open.c:181 do_sys_ftruncate fs/open.c:196 [inline] __do_sys_ftruncate fs/open.c:201 [inline] __se_sys_ftruncate fs/open.c:199 [inline] __x64_sys_ftruncate+0x67/0xc0 fs/open.c:199 x64_sys_call+0x9d9/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:78 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff888237c2ba28 of 8 bytes by task 9061 on cpu 1: has_bh_in_lru+0x35/0x1f0 fs/buffer.c:1521 smp_call_function_many_cond+0x2d5/0xc20 kernel/smp.c:837 on_each_cpu_cond_mask+0x3c/0x90 kernel/smp.c:1051 on_each_cpu_cond include/linux/smp.h:105 [inline] invalidate_bh_lrus+0x2a/0x30 fs/buffer.c:1530 kill_bdev block/bdev.c:90 [inline] blkdev_flush_mapping+0x9b/0x1a0 block/bdev.c:670 blkdev_put_whole block/bdev.c:677 [inline] bdev_release+0x2f9/0x420 block/bdev.c:1102 blkdev_release+0x15/0x20 block/fops.c:635 __fput+0x17a/0x6d0 fs/file_table.c:450 ____fput+0x1c/0x30 fs/file_table.c:478 task_work_run+0x13a/0x1a0 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xa8/0x120 kernel/entry/common.c:218 do_syscall_64+0xd6/0x1c0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0xffff8881324ea0d0 -> 0xffff8881324ea068 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 9061 Comm: syz.3.1607 Not tainted 6.13.0-rc5-syzkaller-00004-gccb98ccef0e5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================