syzbot


KCSAN: data-race in generic_file_read_iter / truncate_setsize

Status: closed as invalid on 2019/11/19 13:54
Subsystems: fs
[Documentation on labels]
First crash: 1615d, last: 1604d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_file_read_iter / truncate_setsize (2) fs 4 1404d 1543d 0/26 closed as invalid on 2020/06/18 14:24

Sample crash report:
==================================================================
BUG: KCSAN: data-race in generic_file_read_iter / truncate_setsize

read to 0xffff888125aafe00 of 8 bytes by task 17603 on cpu 1:
 generic_file_buffered_read mm/filemap.c:2106 [inline]
 generic_file_read_iter+0x860/0x1440 mm/filemap.c:2324
 call_read_iter include/linux/fs.h:1889 [inline]
 generic_file_splice_read+0x35c/0x500 fs/splice.c:307
 do_splice_to+0xf2/0x130 fs/splice.c:877
 splice_direct_to_actor+0x1a1/0x510 fs/splice.c:954
 do_splice_direct+0x161/0x1e0 fs/splice.c:1063
 do_sendfile+0x384/0x7f0 fs/read_write.c:1464
 __do_sys_sendfile64 fs/read_write.c:1519 [inline]
 __se_sys_sendfile64 fs/read_write.c:1511 [inline]
 __x64_sys_sendfile64+0xbe/0x140 fs/read_write.c:1511
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff888125aafe00 of 8 bytes by task 17606 on cpu 0:
 i_size_write include/linux/fs.h:888 [inline]
 truncate_setsize+0x3a/0x90 mm/truncate.c:839
 simple_setattr+0xb8/0xc0 fs/libfs.c:433
 notify_change+0x7e1/0xaa0 fs/attr.c:337
 do_truncate+0xfb/0x180 fs/open.c:64
 handle_truncate fs/namei.c:2998 [inline]
 do_last fs/namei.c:3414 [inline]
 path_openat+0x2f48/0x36e0 fs/namei.c:3525
 do_filp_open+0x11e/0x1b0 fs/namei.c:3555
 do_sys_open+0x3b3/0x4f0 fs/open.c:1097
 ksys_open include/linux/syscalls.h:1385 [inline]
 __do_sys_creat fs/open.c:1155 [inline]
 __se_sys_creat fs/open.c:1153 [inline]
 __x64_sys_creat+0x45/0x60 fs/open.c:1153
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 17606 Comm: syz-executor.4 Not tainted 5.4.0-rc6+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/06 06:57 https://github.com/google/ktsan.git kcsan 94c006602e13 bc2c6e45 .config console log report ci2-upstream-kcsan-gce
2019/10/29 07:06 https://github.com/google/ktsan.git kcsan 05f2236801fe 5ea87a66 .config console log report ci2-upstream-kcsan-gce
2019/10/26 11:23 https://github.com/google/ktsan.git kcsan 05f2236801fe 413926c5 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.