syzbot


KCSAN: data-race in filemap_splice_read / simple_write_end (3)

Status: auto-obsoleted due to no activity on 2023/12/25 00:04
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+aa8a574df17b7c7ee29c@syzkaller.appspotmail.com
First crash: 445d, last: 437d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in filemap_splice_read / simple_write_end (2) fs 1 486d 486d 0/28 auto-obsoleted due to no activity on 2023/11/04 22:01
upstream KCSAN: data-race in filemap_splice_read / simple_write_end fs 2 567d 571d 0/28 auto-obsoleted due to no activity on 2023/08/15 05:33

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

write to 0xffff8881402aaef0 of 8 bytes by task 15773 on cpu 1:
 i_size_write include/linux/fs.h:932 [inline]
 simple_write_end+0x26c/0x380 fs/libfs.c:886
 generic_perform_write+0x267/0x410 mm/filemap.c:3929
 __generic_file_write_iter+0xa1/0x120 mm/filemap.c:4013
 generic_file_write_iter+0x7d/0x1c0 mm/filemap.c:4039
 do_iter_write+0x4ad/0x770 fs/read_write.c:860
 vfs_iter_write+0x56/0x70 fs/read_write.c:901
 iter_file_splice_write+0x462/0x7e0 fs/splice.c:736
 do_splice_from fs/splice.c:933 [inline]
 direct_splice_actor+0x8a/0xb0 fs/splice.c:1142
 splice_direct_to_actor+0x31d/0x690 fs/splice.c:1088
 do_splice_direct+0x10d/0x190 fs/splice.c:1194
 do_sendfile+0x3c4/0x980 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:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff8881402aaef0 of 8 bytes by task 15776 on cpu 0:
 i_size_read include/linux/fs.h:910 [inline]
 filemap_splice_read+0x1a1/0x7f0 mm/filemap.c:2856
 vfs_splice_read fs/splice.c:993 [inline]
 splice_direct_to_actor+0x28c/0x690 fs/splice.c:1069
 do_splice_direct+0x10d/0x190 fs/splice.c:1194
 do_sendfile+0x3c4/0x980 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:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x0000000000005668 -> 0x0000000000005684

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 15776 Comm: syz-executor.1 Not tainted 6.7.0-rc1-syzkaller-00304-g23dfa043f6d5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/18 23:39 upstream 23dfa043f6d5 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in filemap_splice_read / simple_write_end
2023/11/10 16:54 upstream 89cdf9d55601 45e9b83e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in filemap_splice_read / simple_write_end
* Struck through repros no longer work on HEAD.