syzbot


KCSAN: data-race in ext4_collapse_range / ext4_file_write_iter (2)

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

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

write to 0xffff8881320d2250 of 8 bytes by task 23277 on cpu 0:
 i_size_write include/linux/fs.h:871 [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+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881320d2250 of 8 bytes by task 23268 on cpu 1:
 i_size_read include/linux/fs.h:849 [inline]
 ext4_dio_write_iter fs/ext4/file.c:495 [inline]
 ext4_file_write_iter+0x14c/0x11d0 fs/ext4/file.c:678
 call_write_iter include/linux/fs.h:2114 [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+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000000000e0000 -> 0x00000000000d0000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 23268 Comm: syz-executor.2 Tainted: G        W         5.13.0-rc4-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/06/02 05:00 upstream 231bc5390667 032639db .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.