syzbot


KCSAN: data-race in __mark_inode_dirty / ext4_sync_file (2)

Status: auto-closed as invalid on 2020/08/27 02:47
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 757d, last: 757d
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 1 817d 817d 0/23 closed as invalid on 2020/06/18 14:13
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 0xffff88811edd4440 of 8 bytes by task 13573 on cpu 0:
 __mark_inode_dirty+0x214/0x7e0 fs/fs-writeback.c:2288
 mark_inode_dirty include/linux/fs.h:2192 [inline]
 generic_write_end+0x166/0x220 fs/buffer.c:2203
 ext4_da_write_end+0x57e/0x760 fs/ext4/inode.c:3092
 generic_perform_write+0x23b/0x390 mm/filemap.c:3329
 ext4_buffered_write_iter+0x2cc/0x3b0 fs/ext4/file.c:270
 ext4_file_write_iter+0x76f/0x1010 include/linux/fs.h:805
 call_write_iter include/linux/fs.h:1908 [inline]
 do_iter_readv_writev+0x321/0x3c0 fs/read_write.c:713
 do_iter_write+0x10e/0x470 fs/read_write.c:1018
 vfs_iter_write+0x4c/0x70 fs/read_write.c:1059
 iter_file_splice_write+0x41a/0x770 fs/splice.c:750
 do_splice_from fs/splice.c:846 [inline]
 direct_splice_actor+0x95/0x160 fs/splice.c:1016
 splice_direct_to_actor+0x365/0x660 fs/splice.c:971
 do_splice_direct+0xf2/0x170 fs/splice.c:1059
 do_sendfile+0x562/0xb10 fs/read_write.c:1540
 __do_sys_sendfile64 fs/read_write.c:1595 [inline]
 __se_sys_sendfile64 fs/read_write.c:1587 [inline]
 __x64_sys_sendfile64+0xa9/0x130 fs/read_write.c:1587
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88811edd4440 of 8 bytes by task 13579 on cpu 1:
 ext4_fsync_nojournal fs/ext4/fsync.c:87 [inline]
 ext4_sync_file+0x26c/0x6e0 fs/ext4/fsync.c:170
 vfs_fsync_range+0x107/0x120 fs/sync.c:200
 generic_write_sync include/linux/fs.h:2882 [inline]
 ext4_buffered_write_iter+0x369/0x3b0 fs/ext4/file.c:277
 ext4_file_write_iter+0x76f/0x1010 include/linux/fs.h:805
 call_write_iter include/linux/fs.h:1908 [inline]
 do_iter_readv_writev+0x321/0x3c0 fs/read_write.c:713
 do_iter_write+0x10e/0x470 fs/read_write.c:1018
 vfs_iter_write+0x4c/0x70 fs/read_write.c:1059
 iter_file_splice_write+0x41a/0x770 fs/splice.c:750
 do_splice_from fs/splice.c:846 [inline]
 direct_splice_actor+0x95/0x160 fs/splice.c:1016
 splice_direct_to_actor+0x365/0x660 fs/splice.c:971
 do_splice_direct+0xf2/0x170 fs/splice.c:1059
 do_sendfile+0x562/0xb10 fs/read_write.c:1540
 __do_sys_sendfile64 fs/read_write.c:1595 [inline]
 __se_sys_sendfile64 fs/read_write.c:1587 [inline]
 __x64_sys_sendfile64+0xa9/0x130 fs/read_write.c:1587
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 13579 Comm: syz-executor.5 Not tainted 5.8.0-rc6-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/07/23 02:44 upstream d15be546031c 340ea530 .config log report