================================================================== BUG: KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu write to 0xffff888237c22f10 of 8 bytes by task 1119 on cpu 0: __invalidate_bh_lrus fs/buffer.c:1393 [inline] invalidate_bh_lrus_cpu+0xad/0xe0 fs/buffer.c:1434 lru_add_drain_cpu+0x256/0x280 mm/swap.c:623 lru_add_drain mm/swap.c:702 [inline] __pagevec_release+0x57/0xa0 mm/swap.c:967 pagevec_release include/linux/pagevec.h:81 [inline] write_cache_pages+0x6e7/0x840 mm/page-writeback.c:2294 generic_writepages+0x7c/0xc0 mm/page-writeback.c:2346 blkdev_writepages+0x19/0x20 block/fops.c:373 do_writepages+0x26b/0x3c0 mm/page-writeback.c:2364 filemap_fdatawrite_wbc mm/filemap.c:400 [inline] __filemap_fdatawrite_range mm/filemap.c:433 [inline] __filemap_fdatawrite mm/filemap.c:439 [inline] filemap_flush+0x154/0x180 mm/filemap.c:466 __sync_blockdev+0x69/0x70 block/bdev.c:192 __sync_filesystem fs/sync.c:40 [inline] sync_filesystem+0xcb/0x160 fs/sync.c:64 generic_shutdown_super+0x42/0x230 fs/super.c:448 kill_block_super+0x4a/0x90 fs/super.c:1395 deactivate_locked_super+0x65/0xd0 fs/super.c:335 deactivate_super+0x85/0x90 fs/super.c:366 cleanup_mnt+0x267/0x2d0 fs/namespace.c:1137 __cleanup_mnt+0x15/0x20 fs/namespace.c:1144 task_work_run+0xae/0x130 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+0x156/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/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888237c22f10 of 8 bytes by task 1406 on cpu 1: has_bh_in_lru+0x31/0x1c0 fs/buffer.c:1415 smp_call_function_many_cond+0x236/0x620 kernel/smp.c:917 on_each_cpu_cond_mask+0x31/0x40 kernel/smp.c:1135 on_each_cpu_cond include/linux/smp.h:105 [inline] invalidate_bh_lrus+0x26/0x30 fs/buffer.c:1424 kill_bdev block/bdev.c:76 [inline] blkdev_flush_mapping+0xd4/0x240 block/bdev.c:658 blkdev_put_whole block/bdev.c:689 [inline] blkdev_put+0x3ab/0x4c0 block/bdev.c:953 kill_block_super+0x7b/0x90 fs/super.c:1398 deactivate_locked_super+0x65/0xd0 fs/super.c:335 deactivate_super+0x85/0x90 fs/super.c:366 cleanup_mnt+0x267/0x2d0 fs/namespace.c:1137 __cleanup_mnt+0x15/0x20 fs/namespace.c:1144 task_work_run+0xae/0x130 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+0x156/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/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0xffff88818d346618 -> 0xffff888169e98ea0 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1406 Comm: syz-executor.3 Not tainted 5.15.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================