syzbot


KCSAN: data-race in __ext4_update_other_inode_time / __writeback_single_inode

Status: auto-closed as invalid on 2020/07/30 23:03
Subsystems: ext4
[Documentation on labels]
First crash: 1401d, last: 1401d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __ext4_update_other_inode_time / __writeback_single_inode (4) ext4 1 1046d 1046d 0/26 auto-closed as invalid on 2021/07/20 23:16
upstream KCSAN: data-race in __ext4_update_other_inode_time / __writeback_single_inode (3) ext4 1 1241d 1236d 0/26 auto-closed as invalid on 2021/01/06 12:27
upstream KCSAN: data-race in __ext4_update_other_inode_time / __writeback_single_inode (2) ext4 1 1357d 1357d 0/26 auto-closed as invalid on 2020/09/12 02:28

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __ext4_update_other_inode_time / __writeback_single_inode

write to 0xffff888126299200 of 8 bytes by task 12014 on cpu 0:
 __writeback_single_inode+0x168/0x610 fs/fs-writeback.c:1486
 writeback_single_inode+0x121/0x520 fs/fs-writeback.c:1565
 sync_inode fs/fs-writeback.c:2602 [inline]
 sync_inode_metadata+0x52/0x70 fs/fs-writeback.c:2622
 ext4_fsync_nojournal fs/ext4/fsync.c:92 [inline]
 ext4_sync_file+0x30c/0x680 fs/ext4/fsync.c:170
 vfs_fsync_range+0x107/0x120 fs/sync.c:200
 generic_write_sync include/linux/fs.h:2882 [inline]
 iomap_dio_complete+0x2de/0x380 fs/iomap/direct-io.c:125
 iomap_dio_rw+0x874/0x8c0 fs/iomap/direct-io.c:572
 ext4_dio_write_iter fs/ext4/file.c:545 [inline]
 ext4_file_write_iter+0xd61/0xfd0 fs/ext4/file.c:653
 call_write_iter include/linux/fs.h:1907 [inline]
 new_sync_write fs/read_write.c:484 [inline]
 __vfs_write+0x2d8/0x340 fs/read_write.c:497
 vfs_write+0x19b/0x350 fs/read_write.c:559
 ksys_write+0xce/0x180 fs/read_write.c:612
 __do_sys_write fs/read_write.c:624 [inline]
 __se_sys_write fs/read_write.c:621 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:621
 do_syscall_64+0x71/0x120 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888126299200 of 8 bytes by task 12020 on cpu 1:
 __ext4_update_other_inode_time+0x45/0x570 fs/ext4/inode.c:4893
 ext4_update_other_inodes_time fs/ext4/inode.c:4940 [inline]
 ext4_do_update_inode fs/ext4/inode.c:5068 [inline]
 ext4_mark_iloc_dirty+0x1266/0x1630 fs/ext4/inode.c:5624
 __ext4_mark_inode_dirty+0x2b9/0x3f0 fs/ext4/inode.c:5818
 ext4_dirty_inode+0xa6/0xc0 fs/ext4/inode.c:5854
 __mark_inode_dirty+0x72/0x7d0 fs/fs-writeback.c:2258
 mark_inode_dirty include/linux/fs.h:2192 [inline]
 generic_write_end+0x174/0x2a0 fs/buffer.c:2203
 ext4_da_write_end+0x55e/0x6d0 fs/ext4/inode.c:3092
 generic_perform_write+0x233/0x380 mm/filemap.c:3310
 ext4_buffered_write_iter+0x2b1/0x390 fs/ext4/file.c:270
 ext4_file_write_iter+0x4a3/0xfd0 fs/ext4/file.c:498
 call_write_iter include/linux/fs.h:1907 [inline]
 new_sync_write fs/read_write.c:484 [inline]
 __vfs_write+0x2d8/0x340 fs/read_write.c:497
 vfs_write+0x19b/0x350 fs/read_write.c:559
 ksys_write+0xce/0x180 fs/read_write.c:612
 __do_sys_write fs/read_write.c:624 [inline]
 __se_sys_write fs/read_write.c:621 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:621
 do_syscall_64+0x71/0x120 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 12020 Comm: syz-executor.0 Not tainted 5.8.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/06/25 23:01 upstream 908f7d12d3ba aea82c00 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.