================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / folios_put_refs write to 0xffff888237c2ac08 of 1 bytes by task 21765 on cpu 0: folio_batch_reinit include/linux/pagevec.h:50 [inline] folios_put_refs+0x293/0x2e0 mm/swap.c:1028 folios_put include/linux/mm.h:1565 [inline] folio_batch_move_lru+0x298/0x2c0 mm/swap.c:240 lru_add_drain_cpu+0x77/0x260 mm/swap.c:667 lru_add_drain mm/swap.c:767 [inline] __folio_batch_release+0x51/0xc0 mm/swap.c:1091 folio_batch_release include/linux/pagevec.h:101 [inline] truncate_inode_pages_range+0x236/0x6b0 mm/truncate.c:362 truncate_inode_pages+0x24/0x30 mm/truncate.c:439 kill_bdev block/bdev.c:85 [inline] set_blocksize+0x26c/0x290 block/bdev.c:161 sb_set_blocksize+0x2d/0xb0 block/bdev.c:170 ext4_load_super fs/ext4/super.c:5094 [inline] __ext4_fill_super fs/ext4/super.c:5222 [inline] ext4_fill_super+0xad5/0x39d0 fs/ext4/super.c:5699 get_tree_bdev+0x253/0x2e0 fs/super.c:1614 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5731 vfs_get_tree+0x56/0x1d0 fs/super.c:1779 do_new_mount+0x227/0x690 fs/namespace.c:3352 path_mount+0x49b/0xb30 fs/namespace.c:3679 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3875 __x64_sys_mount+0x67/0x80 fs/namespace.c:3875 x64_sys_call+0x2591/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff888237c2ac08 of 1 bytes by task 21767 on cpu 1: folio_batch_count include/linux/pagevec.h:56 [inline] cpu_needs_drain mm/swap.c:810 [inline] __lru_add_drain_all+0x137/0x420 mm/swap.c:904 lru_cache_disable+0x1f/0x30 mm/swap.c:957 do_mbind mm/mempolicy.c:1307 [inline] kernel_mbind mm/mempolicy.c:1532 [inline] __do_sys_mbind mm/mempolicy.c:1606 [inline] __se_sys_mbind+0x48c/0x1030 mm/mempolicy.c:1602 __x64_sys_mbind+0x78/0x90 mm/mempolicy.c:1602 x64_sys_call+0x1cee/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:238 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x03 -> 0x00 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 21767 Comm: syz-executor.0 Tainted: G W 6.9.0-rc4-syzkaller-00113-g2668e3ae2ef3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 ==================================================================