syzbot


KCSAN: data-race in __mark_inode_dirty / ext4_sync_file

Status: closed as invalid on 2020/06/18 14:13
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 817d, last: 817d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mark_inode_dirty / ext4_sync_file (3) 4 660d 701d 0/23 auto-closed as invalid on 2020/12/01 12:40
upstream KCSAN: data-race in __mark_inode_dirty / ext4_sync_file (5) 1 517d 517d 0/23 auto-closed as invalid on 2021/04/23 13:27
upstream KCSAN: data-race in __mark_inode_dirty / ext4_sync_file (2) 1 757d 757d 0/23 auto-closed as invalid on 2020/08/27 02:47
upstream KCSAN: data-race in __mark_inode_dirty / ext4_sync_file (4) 5 557d 618d 0/23 auto-closed as invalid on 2021/03/14 09:37

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __mark_inode_dirty / ext4_sync_file

write to 0xffff888120ee55c0 of 8 bytes by task 28334 on cpu 0:
 __mark_inode_dirty+0x1c1/0x940 fs/fs-writeback.c:2289
 mark_buffer_dirty+0x28b/0x2b0 fs/buffer.c:1150
 __block_commit_write.isra.0+0x11d/0x170 fs/buffer.c:2075
 block_write_end+0x6d/0x140 fs/buffer.c:2153
 generic_write_end+0x8c/0x290 fs/buffer.c:2167
 ext4_da_write_end+0x162/0x690 fs/ext4/inode.c:3090
 generic_perform_write+0x1d7/0x320 mm/filemap.c:3313
 ext4_buffered_write_iter+0x14e/0x280 fs/ext4/file.c:270
 ext4_file_write_iter+0xf4/0xd30 fs/ext4/file.c:642
 call_write_iter include/linux/fs.h:1907 [inline]
 do_iter_readv_writev+0x4a7/0x5d0 fs/read_write.c:694
 do_iter_write fs/read_write.c:999 [inline]
 do_iter_write+0x137/0x3a0 fs/read_write.c:980
 vfs_iter_write+0x56/0x80 fs/read_write.c:1040
 iter_file_splice_write+0x530/0x830 fs/splice.c:760
 do_splice_from fs/splice.c:863 [inline]
 direct_splice_actor+0x97/0xb0 fs/splice.c:1037
 splice_direct_to_actor+0x22f/0x540 fs/splice.c:992
 do_splice_direct+0x152/0x1d0 fs/splice.c:1080
 do_sendfile+0x380/0x800 fs/read_write.c:1521
 __do_sys_sendfile64 fs/read_write.c:1576 [inline]
 __se_sys_sendfile64 fs/read_write.c:1568 [inline]
 __x64_sys_sendfile64+0xb8/0x140 fs/read_write.c:1568
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888120ee55c0 of 8 bytes by task 28332 on cpu 1:
 ext4_fsync_nojournal fs/ext4/fsync.c:89 [inline]
 ext4_sync_file+0x410/0x8b0 fs/ext4/fsync.c:172
 vfs_fsync_range+0x7c/0x150 fs/sync.c:197
 generic_write_sync include/linux/fs.h:2872 [inline]
 ext4_buffered_write_iter+0x211/0x280 fs/ext4/file.c:277
 ext4_file_write_iter+0xf4/0xd30 fs/ext4/file.c:642
 call_write_iter include/linux/fs.h:1907 [inline]
 do_iter_readv_writev+0x4a7/0x5d0 fs/read_write.c:694
 do_iter_write fs/read_write.c:999 [inline]
 do_iter_write+0x137/0x3a0 fs/read_write.c:980
 vfs_iter_write+0x56/0x80 fs/read_write.c:1040
 iter_file_splice_write+0x530/0x830 fs/splice.c:760
 do_splice_from fs/splice.c:863 [inline]
 direct_splice_actor+0x97/0xb0 fs/splice.c:1037
 splice_direct_to_actor+0x22f/0x540 fs/splice.c:992
 do_splice_direct+0x152/0x1d0 fs/splice.c:1080
 do_sendfile+0x380/0x800 fs/read_write.c:1521
 __do_sys_sendfile64 fs/read_write.c:1576 [inline]
 __se_sys_sendfile64 fs/read_write.c:1568 [inline]
 __x64_sys_sendfile64+0xb8/0x140 fs/read_write.c:1568
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2020/05/23 14:49 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 4afdfa20 .config log report