================================================================== BUG: KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu write to 0xffff888237d22f18 of 8 bytes by task 10121 on cpu 1: __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: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] __filemap_fdatawait_range+0x141/0x1b0 mm/filemap.c:539 filemap_fdatawait_range mm/filemap.c:563 [inline] filemap_write_and_wait_range+0x289/0x3b0 mm/filemap.c:713 __iomap_dio_rw+0x472/0xfa0 fs/iomap/direct-io.c:540 iomap_dio_rw+0x30/0x70 fs/iomap/direct-io.c:649 ext4_dio_read_iter fs/ext4/file.c:77 [inline] ext4_file_read_iter+0x21a/0x290 fs/ext4/file.c:128 call_read_iter include/linux/fs.h:2157 [inline] generic_file_splice_read+0x22c/0x310 fs/splice.c:311 do_splice_to fs/splice.c:796 [inline] splice_direct_to_actor+0x2aa/0x650 fs/splice.c:870 do_splice_direct+0xf5/0x170 fs/splice.c:979 do_sendfile+0x618/0xb90 fs/read_write.c:1249 __do_sys_sendfile64 fs/read_write.c:1314 [inline] __se_sys_sendfile64 fs/read_write.c:1300 [inline] __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1300 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 0xffff888237d22f18 of 8 bytes by task 10114 on cpu 0: has_bh_in_lru+0x31/0x1c0 fs/buffer.c:1415 smp_call_function_many_cond+0x226/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 fs/block_dev.c:86 [inline] blkdev_flush_mapping+0xcf/0x240 fs/block_dev.c:1069 blkdev_put_whole fs/block_dev.c:1100 [inline] blkdev_put+0x3ab/0x4c0 fs/block_dev.c:1393 blkdev_close+0x47/0x50 fs/block_dev.c:1403 __fput+0x295/0x520 fs/file_table.c:280 ____fput+0x11/0x20 fs/file_table.c:313 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: 0xffff888136c3e410 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 10114 Comm: syz-executor.4 Not tainted 5.14.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================