syzbot


KCSAN: data-race in ext4_collapse_range / ext4_file_write_iter

Status: auto-closed as invalid on 2021/05/27 14:22
Subsystems: ext4
[Documentation on labels]
First crash: 1376d, last: 1376d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_collapse_range / ext4_file_write_iter (2) ext4 1 1335d 1335d 0/28 auto-closed as invalid on 2021/07/07 05:07

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ext4_collapse_range / ext4_file_write_iter

write to 0xffff8881058f1ac0 of 8 bytes by task 22467 on cpu 0:
 i_size_write include/linux/fs.h:872 [inline]
 ext4_collapse_range+0x488/0x730 fs/ext4/extents.c:5332
 ext4_fallocate+0x1f0/0x4d0 fs/ext4/extents.c:4664
 vfs_fallocate+0x463/0x660 fs/open.c:311
 ksys_fallocate fs/open.c:334 [inline]
 __do_sys_fallocate fs/open.c:342 [inline]
 __se_sys_fallocate fs/open.c:340 [inline]
 __x64_sys_fallocate+0x75/0xc0 fs/open.c:340
 do_syscall_64+0x34/0x50 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881058f1ac0 of 8 bytes by task 22456 on cpu 1:
 i_size_read include/linux/fs.h:850 [inline]
 ext4_dio_write_iter fs/ext4/file.c:478 [inline]
 ext4_file_write_iter+0x14c/0x11d0 fs/ext4/file.c:661
 call_write_iter include/linux/fs.h:1977 [inline]
 do_iter_readv_writev+0x2cb/0x360 fs/read_write.c:740
 do_iter_write+0x112/0x4c0 fs/read_write.c:866
 vfs_iter_write+0x4c/0x70 fs/read_write.c:907
 iter_file_splice_write+0x40a/0x750 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+0xf5/0x170 fs/splice.c:979
 do_sendfile+0x773/0xda0 fs/read_write.c:1260
 __do_sys_sendfile64 fs/read_write.c:1325 [inline]
 __se_sys_sendfile64 fs/read_write.c:1311 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1311
 do_syscall_64+0x34/0x50 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 22456 Comm: syz-executor.0 Not tainted 5.12.0-rc8-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
2021/04/22 14:15 upstream 16fc44d6387e 33c28d03 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ext4_collapse_range / ext4_file_write_iter
* Struck through repros no longer work on HEAD.