================================================================== BUG: KCSAN: data-race in __delete_from_page_cache / page_mapping write to 0xffffea00041da918 of 8 bytes by task 18892 on cpu 0: page_cache_delete mm/filemap.c:145 [inline] __delete_from_page_cache+0x1b4/0x280 mm/filemap.c:232 delete_from_page_cache+0x82/0x160 mm/filemap.c:266 truncate_inode_page mm/truncate.c:219 [inline] truncate_inode_pages_range+0x9a3/0xad0 mm/truncate.c:397 truncate_inode_pages+0x20/0x30 mm/truncate.c:425 kill_bdev block/bdev.c:77 [inline] set_blocksize+0x24e/0x270 block/bdev.c:157 sb_set_blocksize block/bdev.c:166 [inline] sb_min_blocksize+0x9d/0x120 block/bdev.c:182 ext4_fill_super+0x3a5/0x7840 fs/ext4/super.c:3918 mount_bdev+0x1e8/0x290 fs/super.c:1368 ext4_mount+0x2d/0x40 fs/ext4/super.c:6506 legacy_get_tree+0x70/0xc0 fs/fs_context.c:610 vfs_get_tree+0x4a/0x1a0 fs/super.c:1498 do_new_mount fs/namespace.c:2988 [inline] path_mount+0x11ec/0x1d20 fs/namespace.c:3318 do_mount fs/namespace.c:3331 [inline] __do_sys_mount fs/namespace.c:3539 [inline] __se_sys_mount+0x24b/0x2f0 fs/namespace.c:3516 __x64_sys_mount+0x63/0x70 fs/namespace.c:3516 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 0xffffea00041da918 of 8 bytes by task 18878 on cpu 1: page_mapping+0x111/0x1c0 mm/util.c:725 page_evictable mm/internal.h:83 [inline] __pagevec_lru_add_fn+0x82/0x490 mm/swap.c:1011 __pagevec_lru_add+0x189/0x240 mm/swap.c:1039 lru_cache_add+0x121/0x150 mm/swap.c:453 shmem_getpage_gfp+0xcb9/0x13d0 mm/shmem.c:1940 shmem_getpage mm/shmem.c:151 [inline] shmem_write_begin+0x7e/0x100 mm/shmem.c:2469 generic_perform_write+0x1b8/0x3e0 mm/filemap.c:3770 __generic_file_write_iter+0x174/0x310 mm/filemap.c:3897 generic_file_write_iter+0x75/0x130 mm/filemap.c:3929 call_write_iter include/linux/fs.h:2163 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x7bc/0x900 fs/read_write.c:594 ksys_pwrite64 fs/read_write.c:701 [inline] __do_sys_pwrite64 fs/read_write.c:711 [inline] __se_sys_pwrite64 fs/read_write.c:708 [inline] __x64_sys_pwrite64+0xf5/0x150 fs/read_write.c:708 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: 0xffff88810108f5a8 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 18878 Comm: syz-executor.4 Not tainted 5.15.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================