loop4: detected capacity change from 0 to 4 EXT4-fs (loop4): feature flags set on rev 0 fs, running e2fsck is recommended EXT4-fs (loop4): Can't read superblock on 2nd try ================================================================== BUG: KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu write to 0xffff888237d42f10 of 8 bytes by task 1646 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:645 lru_add_drain mm/swap.c:724 [inline] __pagevec_release+0x57/0xa0 mm/swap.c:989 pagevec_release include/linux/pagevec.h:81 [inline] mpage_prepare_extent_to_map+0x5e5/0x640 fs/ext4/inode.c:2638 ext4_writepages+0x6c6/0x1d10 fs/ext4/inode.c:2754 do_writepages+0x7b/0x150 mm/page-writeback.c:2355 __filemap_fdatawrite_range mm/filemap.c:413 [inline] file_write_and_wait_range+0x180/0x210 mm/filemap.c:792 ext4_sync_file+0x105/0x670 fs/ext4/fsync.c:151 vfs_fsync_range+0x107/0x120 fs/sync.c:200 generic_write_sync include/linux/fs.h:2987 [inline] ext4_buffered_write_iter+0x39c/0x3f0 fs/ext4/file.c:277 ext4_file_write_iter+0x2e7/0x11d0 fs/ext4/file.c:519 call_write_iter include/linux/fs.h:2114 [inline] new_sync_write fs/read_write.c:518 [inline] vfs_write+0x69d/0x770 fs/read_write.c:605 ksys_write+0xce/0x180 fs/read_write.c:658 __do_sys_write fs/read_write.c:670 [inline] __se_sys_write fs/read_write.c:667 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:667 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 0xffff888237d42f10 of 8 bytes by task 25838 on cpu 0: 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 invalidate_bdev+0x4b/0x70 fs/block_dev.c:95 __loop_clr_fd+0x566/0x8f0 drivers/block/loop.c:1402 loop_clr_fd drivers/block/loop.c:1496 [inline] lo_ioctl+0xa48/0x1340 drivers/block/loop.c:1852 blkdev_ioctl+0x1d0/0x3c0 block/ioctl.c:585 block_ioctl+0x6d/0x80 fs/block_dev.c:1604 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:1069 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:1055 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:1055 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 value changed: 0xffff88810231e958 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 25838 Comm: syz-executor.4 Not tainted 5.14.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================