syzbot


KCSAN: data-race in ext4_fill_raw_inode / ext4_orphan_add

Status: auto-closed as invalid on 2022/01/12 01:33
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 364d, last: 364d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ext4_fill_raw_inode / ext4_orphan_add

write to 0xffff8881260586ac of 4 bytes by task 4987 on cpu 1:
 ext4_orphan_add+0x6d1/0xa40 fs/ext4/orphan.c:156
 ext4_dio_write_iter fs/ext4/file.c:556 [inline]
 ext4_file_write_iter+0x9c7/0x1200 fs/ext4/file.c:679
 call_write_iter include/linux/fs.h:2162 [inline]
 do_iter_readv_writev+0x2de/0x380 fs/read_write.c:725
 do_iter_write+0x192/0x5c0 fs/read_write.c:851
 vfs_iter_write+0x4c/0x70 fs/read_write.c:892
 iter_file_splice_write+0x43a/0x790 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x650 fs/splice.c:891
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1296
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881260586ac of 4 bytes by task 4971 on cpu 0:
 ext4_fill_raw_inode+0x2b4/0xea0 fs/ext4/inode.c:4309
 ext4_do_update_inode fs/ext4/inode.c:5094 [inline]
 ext4_mark_iloc_dirty+0x364/0x890 fs/ext4/inode.c:5694
 __ext4_mark_inode_dirty+0x4ec/0x5f0 fs/ext4/inode.c:5890
 ext4_dirty_inode+0x86/0xa0 fs/ext4/inode.c:5919
 __mark_inode_dirty+0x72/0x6c0 fs/fs-writeback.c:2399
 generic_update_time fs/inode.c:1782 [inline]
 inode_update_time fs/inode.c:1795 [inline]
 touch_atime+0x1c4/0x2e0 fs/inode.c:1867
 file_accessed include/linux/fs.h:2505 [inline]
 filemap_read+0x1648/0x16d0 mm/filemap.c:2714
 generic_file_read_iter+0x72/0x2a0 mm/filemap.c:2792
 ext4_file_read_iter+0x1db/0x290
 call_read_iter include/linux/fs.h:2156 [inline]
 generic_file_splice_read+0x24f/0x330 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:870
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1296
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000000 -> 0x00000494

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 4971 Comm: syz-executor.1 Not tainted 5.16.0-rc4-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 2021/12/08 01:24 upstream 2a987e65025e 0230ba3e .config log report info KCSAN: data-race in ext4_fill_raw_inode / ext4_orphan_add
* Struck through repros no longer work on HEAD.