================================================================== BUG: KCSAN: data-race in __xa_set_mark / xas_find_marked read-write to 0xffff888116a706b8 of 8 bytes by task 16348 on cpu 1: instrument_read_write include/linux/instrumented.h:55 [inline] __instrument_read_write_bitop include/asm-generic/bitops/instrumented-non-atomic.h:84 [inline] ___test_and_set_bit include/asm-generic/bitops/instrumented-non-atomic.h:99 [inline] node_set_mark lib/xarray.c:95 [inline] xas_set_mark lib/xarray.c:892 [inline] __xa_set_mark+0xdb/0x1b0 lib/xarray.c:1943 __folio_mark_dirty+0x3b5/0x4e0 mm/page-writeback.c:2798 mark_buffer_dirty+0x134/0x230 fs/buffer.c:1196 __block_commit_write fs/buffer.c:2189 [inline] block_write_end+0x123/0x210 fs/buffer.c:2265 ext4_da_do_write_end fs/ext4/inode.c:3011 [inline] ext4_da_write_end+0x20a/0x810 fs/ext4/inode.c:3086 generic_perform_write+0x33c/0x4a0 mm/filemap.c:4204 ext4_buffered_write_iter+0x1ed/0x3c0 fs/ext4/file.c:299 ext4_file_write_iter+0x383/0xf20 new_sync_write fs/read_write.c:586 [inline] vfs_write+0x77b/0x920 fs/read_write.c:679 ksys_pwrite64 fs/read_write.c:786 [inline] __do_sys_pwrite64 fs/read_write.c:794 [inline] __se_sys_pwrite64 fs/read_write.c:791 [inline] __x64_sys_pwrite64+0xf6/0x150 fs/read_write.c:791 x64_sys_call+0xab0/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:19 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 0xffff888116a706b8 of 8 bytes by task 1927 on cpu 0: xas_find_chunk include/linux/xarray.h:1733 [inline] xas_find_marked+0x217/0x650 lib/xarray.c:1377 find_get_entry+0x54/0x390 mm/filemap.c:2017 filemap_get_folios_tag+0x136/0x210 mm/filemap.c:2284 mpage_prepare_extent_to_map+0x329/0xb80 fs/ext4/inode.c:2448 ext4_do_writepages+0xa20/0x2130 fs/ext4/inode.c:2733 ext4_writepages+0x159/0x2e0 fs/ext4/inode.c:2824 do_writepages+0x1d8/0x480 mm/page-writeback.c:2687 __writeback_single_inode+0x89/0x850 fs/fs-writeback.c:1680 writeback_sb_inodes+0x461/0xa30 fs/fs-writeback.c:1976 __writeback_inodes_wb+0x9a/0x1a0 fs/fs-writeback.c:2047 wb_writeback+0x274/0x640 fs/fs-writeback.c:2158 wb_check_start_all fs/fs-writeback.c:2284 [inline] wb_do_writeback fs/fs-writeback.c:2310 [inline] wb_workfn+0x4ea/0x940 fs/fs-writeback.c:2343 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3317 worker_thread+0x51d/0x6f0 kernel/workqueue.c:3398 kthread+0x4ae/0x520 kernel/kthread.c:464 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 value changed: 0x0007ffffffffffff -> 0x003fffffffffffff Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 1927 Comm: kworker/u8:5 Not tainted 6.14.0-rc1-syzkaller-00028-g5c8c229261f1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Workqueue: writeback wb_workfn (flush-7:7) ================================================================== EXT4-fs error (device loop7): ext4_validate_block_bitmap:441: comm kworker/u8:5: bg 0: block 345: padding at end of block bitmap is not set EXT4-fs (loop7): Delayed block allocation failed for inode 15 at logical offset 16 with max blocks 1016 with error 117 EXT4-fs (loop7): This should not happen!! Data will be lost EXT4-fs (loop7): Delayed block allocation failed for inode 15 at logical offset 1032 with max blocks 375 with error 28 EXT4-fs (loop7): This should not happen!! Data will be lost EXT4-fs (loop7): Total free blocks count 0 EXT4-fs (loop7): Free/Dirty block details EXT4-fs (loop7): free_blocks=0 EXT4-fs (loop7): dirty_blocks=384 EXT4-fs (loop7): Block reservation details EXT4-fs (loop7): i_reserved_data_blocks=24