syzbot


KCSAN: data-race in generic_file_direct_write / ondemand_readahead (3)

Status: auto-obsoleted due to no activity on 2023/12/05 20:59
Subsystems: fs
[Documentation on labels]
First crash: 212d, last: 188d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_file_direct_write / ondemand_readahead fs 1 983d 983d 0/26 auto-closed as invalid on 2021/10/01 19:27
upstream KCSAN: data-race in generic_file_direct_write / ondemand_readahead (2) fs 1 401d 401d 0/26 auto-obsoleted due to no activity on 2023/05/06 18:38

Sample crash report:
==================================================================
BUG: KCSAN: data-race in generic_file_direct_write / ondemand_readahead

write to 0xffff8881062edc30 of 8 bytes by task 22983 on cpu 0:
 i_size_write include/linux/fs.h:932 [inline]
 generic_file_direct_write+0x19d/0x1f0 mm/filemap.c:3921
 __generic_file_write_iter+0xae/0x120 mm/filemap.c:4050
 generic_file_write_iter+0x7d/0x1c0 mm/filemap.c:4090
 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:1322 [inline]
 __se_sys_sendfile64 fs/read_write.c:1308 [inline]
 __x64_sys_sendfile64+0x110/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 0xffff8881062edc30 of 8 bytes by task 22975 on cpu 1:
 i_size_read include/linux/fs.h:910 [inline]
 do_page_cache_ra mm/readahead.c:286 [inline]
 page_cache_ra_order mm/readahead.c:546 [inline]
 ondemand_readahead+0x4c4/0x690 mm/readahead.c:668
 page_cache_sync_ra+0x27e/0x2a0 mm/readahead.c:695
 page_cache_sync_readahead include/linux/pagemap.h:1293 [inline]
 filemap_get_pages+0x251/0xe90 mm/filemap.c:2556
 filemap_splice_read+0x238/0x7f0 mm/filemap.c:2919
 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:1322 [inline]
 __se_sys_sendfile64 fs/read_write.c:1308 [inline]
 __x64_sys_sendfile64+0x110/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: 0x0000000000027600 -> 0x0000000000027800

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 22975 Comm: syz-executor.5 Not tainted 6.6.0-syzkaller-03860-g5a6a09e97199 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/31 20:51 upstream 5a6a09e97199 58499c95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_file_direct_write / ondemand_readahead
2023/10/07 13:20 upstream 82714078aee4 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_file_direct_write / ondemand_readahead
* Struck through repros no longer work on HEAD.