syzbot


KCSAN: data-race in filemap_splice_read / ondemand_readahead

Status: auto-obsoleted due to no activity on 2024/02/11 22:28
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+b9f8868cbf4aa8b06a5b@syzkaller.appspotmail.com
First crash: 122d, last: 122d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in filemap_splice_read / ondemand_readahead (2) ext4 1 44d 44d 0/26 auto-obsoleted due to no activity on 2024/04/29 14:32

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

write to 0xffff88814bbfd190 of 8 bytes by task 8795 on cpu 0:
 filemap_splice_read+0x5b4/0x7f0 mm/filemap.c:2915
 ext4_file_splice_read+0x95/0xb0 fs/ext4/file.c:158
 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:52 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff88814bbfd190 of 8 bytes by task 8794 on cpu 1:
 ondemand_readahead+0x59a/0x690 mm/readahead.c:625
 page_cache_sync_ra+0x27e/0x2a0 mm/readahead.c:695
 page_cache_sync_readahead include/linux/pagemap.h:1283 [inline]
 filemap_get_pages+0x251/0xf90 mm/filemap.c:2497
 filemap_splice_read+0x238/0x7f0 mm/filemap.c:2869
 ext4_file_splice_read+0x95/0xb0 fs/ext4/file.c:158
 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:52 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x000000000026d000 -> 0x000000000025d000

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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/07 22:27 upstream 0dd3ee311255 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in filemap_splice_read / ondemand_readahead
* Struck through repros no longer work on HEAD.