================================================================== BUG: KCSAN: data-race in __find_get_block / has_bh_in_lru read-write to 0xffff888237c2ba28 of 8 bytes by task 6475 on cpu 0: bh_lru_install fs/buffer.c:1337 [inline] __find_get_block+0x434/0x8a0 fs/buffer.c:1400 __getblk_slow fs/buffer.c:1127 [inline] bdev_getblk+0x139/0x3b0 fs/buffer.c:1431 __getblk include/linux/buffer_head.h:380 [inline] sb_getblk include/linux/buffer_head.h:386 [inline] ext4_read_block_bitmap_nowait+0x165/0x680 fs/ext4/balloc.c:488 ext4_mb_prefetch+0x181/0x250 fs/ext4/mballoc.c:2749 ext4_mb_regular_allocator+0x790/0x2390 fs/ext4/mballoc.c:2898 ext4_mb_new_blocks+0x801/0x2020 fs/ext4/mballoc.c:6217 ext4_ext_map_blocks+0x1008/0x35c0 fs/ext4/extents.c:4379 ext4_map_create_blocks fs/ext4/inode.c:516 [inline] ext4_map_blocks+0x5aa/0xd20 fs/ext4/inode.c:702 mpage_map_one_extent fs/ext4/inode.c:2219 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2272 [inline] ext4_do_writepages+0x14c3/0x2130 fs/ext4/inode.c:2735 ext4_writepages+0x159/0x2e0 fs/ext4/inode.c:2824 do_writepages+0x1d8/0x480 mm/page-writeback.c:2702 filemap_fdatawrite_wbc mm/filemap.c:397 [inline] __filemap_fdatawrite_range mm/filemap.c:430 [inline] file_write_and_wait_range+0x168/0x2f0 mm/filemap.c:787 generic_buffers_fsync_noflush+0x46/0x120 fs/buffer.c:600 ext4_fsync_nojournal fs/ext4/fsync.c:88 [inline] ext4_sync_file+0x1ff/0x6c0 fs/ext4/fsync.c:151 vfs_fsync_range+0x116/0x130 fs/sync.c:187 generic_write_sync include/linux/fs.h:2904 [inline] ext4_buffered_write_iter+0x326/0x370 fs/ext4/file.c:305 ext4_file_write_iter+0x383/0xf20 __kernel_write_iter+0x24b/0x4e0 fs/read_write.c:612 __kernel_write+0x90/0xc0 fs/read_write.c:632 do_acct_process+0xb94/0xd80 kernel/acct.c:539 acct_pin_kill+0x24/0xd0 kernel/acct.c:192 pin_kill+0xde/0x1a0 fs/fs_pin.c:44 __do_sys_acct kernel/acct.c:309 [inline] __se_sys_acct+0x91/0x420 kernel/acct.c:291 __x64_sys_acct+0x1f/0x30 kernel/acct.c:291 x64_sys_call+0x273e/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:164 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 2198 on cpu 1: has_bh_in_lru+0x35/0x1f0 fs/buffer.c:1521 cpu_needs_drain mm/swap.c:748 [inline] __lru_add_drain_all+0x23f/0x3f0 mm/swap.c:835 lru_add_drain_all+0x10/0x20 mm/swap.c:851 invalidate_bdev+0x47/0x70 block/bdev.c:101 ext4_put_super+0x571/0x840 fs/ext4/super.c:1356 generic_shutdown_super+0xe5/0x220 fs/super.c:642 kill_block_super+0x2a/0x70 fs/super.c:1710 ext4_kill_sb+0x44/0x80 fs/ext4/super.c:7379 deactivate_locked_super+0x7d/0x1c0 fs/super.c:473 deactivate_super+0x9f/0xb0 fs/super.c:506 cleanup_mnt+0x268/0x2e0 fs/namespace.c:1373 __cleanup_mnt+0x19/0x20 fs/namespace.c:1380 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: 0x0000000000000000 -> 0xffff88816457dd00 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 2198 Comm: syz-executor Not tainted 6.13.0-rc4-syzkaller-00071-gfd0584d220fe #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================