================================================================== BUG: KCSAN: data-race in folio_mapping / page_cache_delete_batch write to 0xffffea0005125bd8 of 8 bytes by task 16108 on cpu 1: page_cache_delete_batch+0x1a7/0x470 mm/filemap.c:308 delete_from_page_cache_batch+0x18f/0x2a0 mm/filemap.c:334 truncate_inode_pages_range+0x3ca/0xae0 mm/truncate.c:370 truncate_inode_pages+0x20/0x30 mm/truncate.c:452 kill_bdev block/bdev.c:75 [inline] set_blocksize+0x24e/0x270 block/bdev.c:151 sb_set_blocksize block/bdev.c:160 [inline] sb_min_blocksize+0x92/0x110 block/bdev.c:176 __ext4_fill_super fs/ext4/super.c:4346 [inline] ext4_fill_super+0x3b7/0x5000 fs/ext4/super.c:5517 get_tree_bdev+0x2b4/0x3b0 fs/super.c:1323 ext4_get_tree+0x18/0x20 fs/ext4/super.c:5547 vfs_get_tree+0x49/0x190 fs/super.c:1530 do_new_mount+0x200/0x650 fs/namespace.c:3040 path_mount+0x4ad/0xbb0 fs/namespace.c:3370 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x281/0x2d0 fs/namespace.c:3568 __x64_sys_mount+0x63/0x70 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffffea0005125bd8 of 8 bytes by task 16106 on cpu 0: folio_mapping+0x8e/0x110 mm/util.c:806 folio_evictable mm/internal.h:136 [inline] lru_add_fn+0x12e/0x520 mm/swap.c:210 folio_batch_move_lru+0x1e1/0x2a0 mm/swap.c:246 lru_add_drain_cpu+0x73/0x250 mm/swap.c:626 lru_add_drain+0x21/0x60 mm/swap.c:730 __pagevec_release+0x3a/0x70 mm/swap.c:1029 pagevec_release include/linux/pagevec.h:71 [inline] __filemap_fdatawait_range+0x1f1/0x260 mm/filemap.c:527 filemap_write_and_wait_range+0xfc/0x1d0 mm/filemap.c:682 __iomap_dio_rw+0x5dc/0x1000 fs/iomap/direct-io.c:573 iomap_dio_rw+0x3c/0x80 fs/iomap/direct-io.c:690 ext4_dio_read_iter fs/ext4/file.c:79 [inline] ext4_file_read_iter+0x22d/0x2a0 fs/ext4/file.c:130 call_read_iter include/linux/fs.h:2181 [inline] generic_file_splice_read+0xde/0x2b0 fs/splice.c:309 do_splice_to fs/splice.c:793 [inline] splice_direct_to_actor+0x26c/0x620 fs/splice.c:865 do_splice_direct+0xfb/0x180 fs/splice.c:974 do_sendfile+0x3bf/0x910 fs/read_write.c:1249 __do_sys_sendfile64 fs/read_write.c:1317 [inline] __se_sys_sendfile64 fs/read_write.c:1303 [inline] __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1303 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0xffff8881023e0588 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 16106 Comm: syz-executor.4 Not tainted 6.0.0-rc1-syzkaller-00340-g50cd95ac4654-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 ==================================================================