================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add write to 0xffff888237c27998 of 1 bytes by task 1819 on cpu 0: pagevec_reinit include/linux/pagevec.h:57 [inline] __pagevec_lru_add+0x243/0x270 mm/swap.c:1076 lru_add_drain_cpu+0x6a/0x260 mm/swap.c:613 lru_add_drain mm/swap.c:717 [inline] __pagevec_release+0x4b/0xc0 mm/swap.c:997 pagevec_release include/linux/pagevec.h:82 [inline] write_cache_pages+0x699/0x7f0 mm/page-writeback.c:2294 generic_writepages+0x7c/0xc0 mm/page-writeback.c:2346 blkdev_writepages+0x19/0x20 block/fops.c:428 do_writepages+0x1cb/0x330 mm/page-writeback.c:2364 filemap_fdatawrite_wbc mm/filemap.c:395 [inline] __filemap_fdatawrite_range mm/filemap.c:428 [inline] __filemap_fdatawrite mm/filemap.c:434 [inline] filemap_flush+0xd9/0x100 mm/filemap.c:461 sync_blockdev_nowait+0x32/0x40 block/bdev.c:192 sync_filesystem+0xc9/0x150 fs/sync.c:57 generic_shutdown_super+0x40/0x250 fs/super.c:448 kill_block_super+0x4a/0x90 fs/super.c:1397 deactivate_locked_super+0x6a/0xb0 fs/super.c:335 deactivate_super+0x85/0x90 fs/super.c:366 cleanup_mnt+0x267/0x2d0 fs/namespace.c:1143 __cleanup_mnt+0x15/0x20 fs/namespace.c:1150 task_work_run+0x8e/0x110 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x160/0x190 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300 do_syscall_64+0x50/0xd0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888237c27998 of 1 bytes by task 1904 on cpu 1: pagevec_count include/linux/pagevec.h:62 [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+0x3d1/0x5d0 drivers/block/loop.c:1142 loop_rundown_workfn+0x3e/0xb0 drivers/block/loop.c:1185 process_one_work+0x3f6/0x960 kernel/workqueue.c:2307 worker_thread+0x616/0xa70 kernel/workqueue.c:2454 kthread+0x2c7/0x2e0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 value changed: 0x0b -> 0x00 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1904 Comm: kworker/1:3 Not tainted 5.16.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_long loop_rundown_workfn ==================================================================