================================================================== BUG: KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu write to 0xffff888237c42f10 of 8 bytes by task 1785 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+0x243/0x270 mm/swap.c:645 lru_add_drain+0x28/0x40 mm/swap.c:724 madvise_free_single_vma mm/madvise.c:728 [inline] madvise_dontneed_free mm/madvise.c:822 [inline] madvise_vma mm/madvise.c:994 [inline] do_madvise+0x834/0x10a0 mm/madvise.c:1199 __do_sys_madvise mm/madvise.c:1225 [inline] __se_sys_madvise mm/madvise.c:1223 [inline] __x64_sys_madvise+0x5d/0x70 mm/madvise.c:1223 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 0xffff888237c42f10 of 8 bytes by task 1812 on cpu 1: has_bh_in_lru+0x31/0x1c0 fs/buffer.c:1415 smp_call_function_many_cond+0x226/0x620 kernel/smp.c:915 on_each_cpu_cond_mask+0x31/0x40 kernel/smp.c:1133 on_each_cpu_cond include/linux/smp.h:105 [inline] invalidate_bh_lrus+0x26/0x30 fs/buffer.c:1424 kill_bdev fs/block_dev.c:85 [inline] blkdev_flush_mapping+0xcf/0x240 fs/block_dev.c:1243 blkdev_put_whole fs/block_dev.c:1277 [inline] blkdev_put+0x3a4/0x4e0 fs/block_dev.c:1576 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:1136 __cleanup_mnt+0x15/0x20 fs/namespace.c:1143 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:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:302 do_syscall_64+0x49/0x90 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0xffff8881066af138 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1812 Comm: syz-executor.3 Not tainted 5.14.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================