syzbot


KCSAN: data-race in ext4_dio_write_end_io / ext4_file_write_iter

Status: auto-closed as invalid on 2021/09/04 10:35
Subsystems: ext4
[Documentation on labels]
First crash: 1306d, last: 1277d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_dio_write_end_io / ext4_file_write_iter (2) ext4 1 1142d 1142d 0/28 auto-closed as invalid on 2022/01/17 12:25

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

write to 0xffff888106a06680 of 8 bytes by task 7130 on cpu 0:
 i_size_write include/linux/fs.h:871 [inline]
 ext4_dio_write_end_io+0xd3/0x100 fs/ext4/file.c:399
 iomap_dio_complete+0xb8/0x3c0 fs/iomap/direct-io.c:88
 iomap_dio_rw+0x4e/0x70 fs/iomap/direct-io.c:652
 ext4_dio_write_iter fs/ext4/file.c:568 [inline]
 ext4_file_write_iter+0xa04/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_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888106a06680 of 8 bytes by task 7107 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_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000000000b0000 -> 0x00000000000b1200

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 7107 Comm: syz-executor.3 Not tainted 5.14.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/31 10:26 upstream c7d102232649 6c236867 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ext4_dio_write_end_io / ext4_file_write_iter
2021/07/02 06:55 upstream e058a84bfddc 658ebc66 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ext4_dio_write_end_io / ext4_file_write_iter
* Struck through repros no longer work on HEAD.