================================================================== BUG: KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages read-write to 0xffff8881006324b0 of 8 bytes by task 3004 on cpu 0: __filemap_add_folio+0x432/0x710 mm/filemap.c:929 filemap_add_folio+0x9f/0x1b0 mm/filemap.c:981 do_read_cache_folio+0xd7/0x5c0 mm/filemap.c:3863 read_cache_folio+0x3a/0x50 mm/filemap.c:3928 read_mapping_folio include/linux/pagemap.h:1020 [inline] read_part_sector+0x6e/0x130 block/partitions/core.c:722 read_lba+0xf0/0x1e0 block/partitions/efi.c:248 alloc_read_gpt_entries+0x74/0xd0 block/partitions/efi.c:288 is_gpt_valid+0x34d/0x3f0 block/partitions/efi.c:430 find_valid_gpt block/partitions/efi.c:615 [inline] efi_partition+0x145/0x13c0 block/partitions/efi.c:720 check_partition block/partitions/core.c:141 [inline] blk_add_partitions block/partitions/core.c:589 [inline] bdev_disk_changed+0x486/0xcd0 block/partitions/core.c:693 blkdev_get_whole+0x1eb/0x2d0 block/bdev.c:710 bdev_open+0x289/0x860 block/bdev.c:919 bdev_file_open_by_dev+0x1c5/0x230 block/bdev.c:1021 disk_scan_partitions+0x13f/0x1a0 block/genhd.c:374 blkdev_common_ioctl+0xead/0x1a10 block/ioctl.c:618 blkdev_ioctl+0x2fb/0x450 block/ioctl.c:692 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xc9/0x140 fs/ioctl.c:892 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:892 x64_sys_call+0x168d/0x2e10 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff8881006324b0 of 8 bytes by task 26504 on cpu 1: nr_blockdev_pages+0x7c/0xd0 block/bdev.c:485 si_meminfo+0x87/0xd0 mm/show_mem.c:80 update_defense_level+0x4b/0x5c0 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:3238 [inline] process_scheduled_works+0x4de/0xa20 kernel/workqueue.c:3319 worker_thread+0x52c/0x710 kernel/workqueue.c:3400 kthread+0x4b7/0x540 kernel/kthread.c:464 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 value changed: 0x0000000000000095 -> 0x0000000000000096 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 26504 Comm: kworker/1:7 Not tainted 6.14.0-syzkaller-10764-gaa918db707fb #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: events_long defense_work_handler ==================================================================