================================================================== BUG: KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages read-write to 0xffff888100631e70 of 8 bytes by task 5091 on cpu 1: page_cache_delete mm/filemap.c:155 [inline] __filemap_remove_folio+0x1c5/0x2c0 mm/filemap.c:233 __remove_mapping+0x33f/0x470 mm/vmscan.c:790 remove_mapping+0x22/0x90 mm/vmscan.c:823 mapping_evict_folio mm/truncate.c:277 [inline] mapping_try_invalidate+0x266/0x3f0 mm/truncate.c:496 invalidate_mapping_pages+0x27/0x40 mm/truncate.c:538 invalidate_bdev+0x58/0x70 block/bdev.c:102 bdev_disk_changed+0xe7/0xb90 block/partitions/core.c:649 loop_reread_partitions drivers/block/loop.c:534 [inline] loop_set_status+0x4a5/0x540 drivers/block/loop.c:1303 lo_ioctl+0x7f1/0x11c0 blkdev_ioctl+0x359/0x450 block/ioctl.c:693 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xcd/0x140 fs/ioctl.c:893 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:893 x64_sys_call+0x15cc/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:17 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 0xffff888100631e70 of 8 bytes by task 9 on cpu 0: nr_blockdev_pages+0x7c/0xd0 block/bdev.c:482 si_meminfo+0x87/0xd0 mm/show_mem.c:80 update_defense_level+0x49/0x5b0 net/netfilter/ipvs/ip_vs_ctl.c:102 defense_work_handler+0x1f/0x80 net/netfilter/ipvs/ip_vs_ctl.c:235 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3310 worker_thread+0x51d/0x6f0 kernel/workqueue.c:3391 kthread+0x1d1/0x210 kernel/kthread.c:389 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 value changed: 0x0000000000000002 -> 0x0000000000000001 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 9 Comm: kworker/0:1 Not tainted 6.12.0-rc4-syzkaller-00161-gae90f6a6170d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: events_long defense_work_handler ==================================================================