syzbot


KCSAN: data-race in ext4_setattr / generic_file_read_iter

Status: closed as invalid on 2019/11/19 13:44
Subsystems: ext4
[Documentation on labels]
First crash: 1656d, last: 1655d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_setattr / generic_file_read_iter (2) ext4 11 1431d 1611d 0/26 closed as invalid on 2020/06/18 14:24

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

read to 0xffff8880b80baad8 of 8 bytes by task 14163 on cpu 1:
 generic_file_buffered_read mm/filemap.c:2105 [inline]
 generic_file_read_iter+0x860/0x1440 mm/filemap.c:2323
 ext4_file_read_iter fs/ext4/file.c:77 [inline]
 ext4_file_read_iter+0xfa/0x240 fs/ext4/file.c:65
 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 0xffff8880b80baad8 of 8 bytes by task 14166 on cpu 0:
 i_size_write include/linux/fs.h:888 [inline]
 ext4_setattr+0xef4/0x1620 fs/ext4/inode.c:5642
 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+0x2f4a/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: 14166 Comm: syz-executor.1 Not tainted 5.4.0-rc3+ #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
2019/10/26 17:22 https://github.com/google/ktsan.git kcsan 05f2236801fe 25bb509e .config console log report ci2-upstream-kcsan-gce
2019/10/25 11:36 https://github.com/google/ktsan.git kcsan 05f2236801fe 04ca72cd .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.