syzbot


KCSAN: data-race in __ext4_update_other_inode_time / __writeback_single_inode (2)

Status: auto-closed as invalid on 2020/09/12 02:28
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 741d, last: 741d
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) 1 429d 429d 0/23 auto-closed as invalid on 2021/07/20 23:16
upstream KCSAN: data-race in __ext4_update_other_inode_time / __writeback_single_inode (3) 1 624d 619d 0/23 auto-closed as invalid on 2021/01/06 12:27
upstream KCSAN: data-race in __ext4_update_other_inode_time / __writeback_single_inode 1 784d 784d 0/23 auto-closed as invalid on 2020/07/30 23:03

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

write to 0xffff8880bb98a2c0 of 8 bytes by task 13529 on cpu 0:
 __writeback_single_inode+0x168/0x610 fs/fs-writeback.c:1486
 writeback_single_inode+0x121/0x530 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+0x335/0x6e0 fs/ext4/fsync.c:170
 vfs_fsync_range+0x107/0x120 fs/sync.c:200
 generic_write_sync include/linux/fs.h:2734 [inline]
 ext4_buffered_write_iter+0x369/0x3b0 fs/ext4/file.c:277
 ext4_file_write_iter+0x57b/0x1000 fs/ext4/file.c:498
 call_write_iter include/linux/fs.h:1872 [inline]
 do_iter_readv_writev+0x32e/0x3d0 fs/read_write.c:713
 do_iter_write+0x112/0x4b0 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+0x56a/0xba0 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+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880bb98a2c0 of 8 bytes by task 13527 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+0x1296/0x1660 fs/ext4/inode.c:5624
 __ext4_mark_inode_dirty+0x448/0x630 fs/ext4/inode.c:5818
 ext4_dirty_inode+0xa6/0xc0 fs/ext4/inode.c:5854
 __mark_inode_dirty+0x72/0x7e0 fs/fs-writeback.c:2258
 mark_inode_dirty include/linux/fs.h:2156 [inline]
 generic_write_end+0x166/0x220 fs/buffer.c:2202
 ext4_da_write_end+0x57e/0x760 fs/ext4/inode.c:3092
 generic_perform_write+0x23b/0x390 mm/filemap.c:3408
 ext4_buffered_write_iter+0x2cc/0x3b0 fs/ext4/file.c:270
 ext4_file_write_iter+0x57b/0x1000 fs/ext4/file.c:498
 call_write_iter include/linux/fs.h:1872 [inline]
 do_iter_readv_writev+0x32e/0x3d0 fs/read_write.c:713
 do_iter_write+0x112/0x4b0 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+0x56a/0xba0 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+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 13527 Comm: syz-executor.2 Not tainted 5.8.0-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/08/08 02:21 upstream 30185b69a2d5 ff51e522 .config log report