syzbot


KCSAN: data-race in filemap_read / filemap_splice_read

Status: auto-obsoleted due to no activity on 2023/08/18 12:12
Subsystems: ext4
[Documentation on labels]
First crash: 823d, last: 823d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in filemap_read / filemap_splice_read (2) ext4 6 1 783d 783d 0/29 auto-obsoleted due to no activity on 2023/09/27 09:47

Sample crash report:
==================================================================
BUG: KCSAN: data-race in filemap_read / filemap_splice_read

write to 0xffff888172c56190 of 8 bytes by task 14877 on cpu 0:
 filemap_splice_read+0x5be/0x810 mm/filemap.c:2971
 ext4_file_splice_read+0x95/0xb0 fs/ext4/file.c:158
 vfs_splice_read fs/splice.c:994 [inline]
 splice_direct_to_actor+0x28c/0x690 fs/splice.c:1070
 do_splice_direct+0x10d/0x190 fs/splice.c:1195
 do_sendfile+0x3b6/0x9a0 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1316 [inline]
 __se_sys_sendfile64 fs/read_write.c:1308 [inline]
 __x64_sys_sendfile64+0xbd/0x150 fs/read_write.c:1308
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to 0xffff888172c56190 of 8 bytes by task 14876 on cpu 1:
 filemap_read+0x44c/0x670 mm/filemap.c:2713
 generic_file_read_iter+0x78/0x340 mm/filemap.c:2837
 ext4_file_read_iter+0x1d8/0x2a0
 do_iter_read+0x4ac/0x7c0 fs/read_write.c:795
 vfs_readv fs/read_write.c:915 [inline]
 do_preadv+0x159/0x230 fs/read_write.c:1007
 __do_sys_preadv fs/read_write.c:1057 [inline]
 __se_sys_preadv fs/read_write.c:1052 [inline]
 __x64_sys_preadv+0x58/0x60 fs/read_write.c:1052
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x000000000070f000 -> 0x0000000000040000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14876 Comm: syz-executor.4 Not tainted 6.5.0-rc1-syzkaller-00152-g4b810bf037e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/14 12:02 upstream 4b810bf037e5 d624500f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / filemap_splice_read
* Struck through repros no longer work on HEAD.