================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add write to 0xffff888237c277c8 of 1 bytes by task 2146 on cpu 0: pagevec_reinit include/linux/pagevec.h:56 [inline] __pagevec_lru_add+0x243/0x270 mm/swap.c:1076 lru_add_drain_cpu+0x6a/0x260 mm/swap.c:613 lru_add_drain+0x21/0x60 mm/swap.c:717 shift_arg_pages fs/exec.c:709 [inline] setup_arg_pages+0x4ec/0x710 fs/exec.c:822 load_elf_binary+0x76b/0x2750 fs/binfmt_elf.c:1018 search_binary_handler fs/exec.c:1723 [inline] exec_binprm+0x1d9/0x720 fs/exec.c:1764 bprm_execve+0x3b5/0x520 fs/exec.c:1833 kernel_execve+0x61b/0x640 fs/exec.c:1976 call_usermodehelper_exec_async+0x1a6/0x250 kernel/umh.c:112 ret_from_fork+0x1f/0x30 read to 0xffff888237c277c8 of 1 bytes by task 1978 on cpu 1: pagevec_count include/linux/pagevec.h:61 [inline] __lru_add_drain_all+0x12c/0x3e0 mm/swap.c:835 lru_add_drain_all+0xc/0x10 mm/swap.c:857 invalidate_bdev+0x56/0x80 block/bdev.c:88 invalidate_disk+0x25/0xb0 block/genhd.c:651 __loop_clr_fd+0x41f/0x6c0 drivers/block/loop.c:1147 loop_clr_fd drivers/block/loop.c:1237 [inline] lo_ioctl+0x985/0x1270 drivers/block/loop.c:1562 blkdev_ioctl+0x20e/0x440 block/ioctl.c:609 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:860 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x01 -> 0x00 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1978 Comm: syz-executor.4 Tainted: G W 5.16.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================