================================================================== BUG: KCSAN: data-race in lru_add_drain_all / lru_cache_add write to 0xffff88813bd27550 of 1 bytes by task 28774 on cpu 1: pagevec_add include/linux/pagevec.h:74 [inline] lru_cache_add+0x7c/0x160 mm/swap.c:461 lru_cache_add_inactive_or_unevictable+0x46/0x160 mm/swap.c:493 __do_huge_pmd_anonymous_page+0x4fa/0x980 mm/huge_memory.c:640 do_huge_pmd_anonymous_page+0x6bc/0xa90 mm/huge_memory.c:772 create_huge_pmd mm/memory.c:4189 [inline] __handle_mm_fault mm/memory.c:4424 [inline] handle_mm_fault+0x1267/0x1840 mm/memory.c:4551 do_user_addr_fault+0x60c/0xc00 arch/x86/mm/fault.c:1390 handle_page_fault arch/x86/mm/fault.c:1475 [inline] exc_page_fault+0x94/0x2a0 arch/x86/mm/fault.c:1531 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:577 read to 0xffff88813bd27550 of 1 bytes by task 28727 on cpu 0: pagevec_count include/linux/pagevec.h:61 [inline] lru_add_drain_all+0x108/0x3c0 mm/swap.c:813 invalidate_bdev+0x50/0x70 fs/block_dev.c:96 __loop_clr_fd+0x2c5/0x630 drivers/block/loop.c:1241 loop_clr_fd drivers/block/loop.c:1336 [inline] lo_ioctl+0x9eb/0x11f0 drivers/block/loop.c:1694 blkdev_ioctl+0x1d0/0x3c0 block/ioctl.c:583 block_ioctl+0x6d/0x80 fs/block_dev.c:1671 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:739 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:739 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 28727 Comm: syz-executor.4 Tainted: G W 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================