================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / lru_cache_add write to 0xffff888237c42528 of 1 bytes by task 21057 on cpu 0: pagevec_add include/linux/pagevec.h:74 [inline] pagevec_add_and_need_flush mm/swap.c:244 [inline] lru_cache_add+0x75/0x150 mm/swap.c:474 shmem_getpage_gfp+0xc95/0x13d0 mm/shmem.c:1956 shmem_getpage mm/shmem.c:155 [inline] shmem_write_begin+0x7e/0x100 mm/shmem.c:2494 generic_perform_write+0x196/0x3c0 mm/filemap.c:3656 __generic_file_write_iter+0x161/0x300 mm/filemap.c:3783 generic_file_write_iter+0x75/0x130 mm/filemap.c:3815 call_write_iter include/linux/fs.h:2114 [inline] new_sync_write fs/read_write.c:518 [inline] vfs_write+0x69d/0x770 fs/read_write.c:605 ksys_pwrite64 fs/read_write.c:712 [inline] __do_sys_pwrite64 fs/read_write.c:722 [inline] __se_sys_pwrite64 fs/read_write.c:719 [inline] __x64_sys_pwrite64+0xf5/0x150 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888237c42528 of 1 bytes by task 1039 on cpu 1: pagevec_count include/linux/pagevec.h:61 [inline] __lru_add_drain_all+0x12c/0x3e0 mm/swap.c:828 lru_add_drain_all+0xc/0x10 mm/swap.c:850 invalidate_bdev+0x50/0x70 fs/block_dev.c:96 bdev_disk_changed+0xf3/0xea0 block/partitions/core.c:677 blkdev_get_whole+0x2f2/0x350 fs/block_dev.c:1269 blkdev_get_by_dev+0x2ad/0x8d0 fs/block_dev.c:1417 blkdev_reread_part block/ioctl.c:102 [inline] blkdev_common_ioctl+0xfc8/0x1040 block/ioctl.c:510 blkdev_ioctl+0x16e/0x3c0 block/ioctl.c:579 block_ioctl+0x6d/0x80 fs/block_dev.c:1604 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:1069 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:1055 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:1055 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00 -> 0x06 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1039 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================