syzbot


KCSAN: data-race in filemap_splice_read / ondemand_readahead (2)

Status: moderation: reported on 2024/03/25 14:32
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+656b98a27b7fe7a54945@syzkaller.appspotmail.com
First crash: 32d, last: 32d
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 ext4 1 110d 108d 0/26 auto-obsoleted due to no activity on 2024/02/11 22:28

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

write to 0xffff888117225b90 of 8 bytes by task 21054 on cpu 0:
 filemap_splice_read+0x6cc/0x920 mm/filemap.c:2916
 ext4_file_splice_read+0x95/0xc0 fs/ext4/file.c:158
 do_splice_read fs/splice.c:985 [inline]
 splice_direct_to_actor+0x26c/0x670 fs/splice.c:1089
 do_splice_direct_actor fs/splice.c:1207 [inline]
 do_splice_direct+0xd7/0x150 fs/splice.c:1233
 do_sendfile+0x3b9/0x970 fs/read_write.c:1295
 __do_sys_sendfile64 fs/read_write.c:1362 [inline]
 __se_sys_sendfile64 fs/read_write.c:1348 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1348
 do_syscall_64+0xd3/0x1d0
 entry_SYSCALL_64_after_hwframe+0x6d/0x75

read to 0xffff888117225b90 of 8 bytes by task 21082 on cpu 1:
 ondemand_readahead+0x5c3/0x6c0 mm/readahead.c:618
 page_cache_sync_ra+0xe0/0xf0 mm/readahead.c:688
 page_cache_sync_readahead include/linux/pagemap.h:1300 [inline]
 filemap_get_pages+0x252/0xfb0 mm/filemap.c:2505
 filemap_splice_read+0x360/0x920 mm/filemap.c:2870
 ext4_file_splice_read+0x95/0xc0 fs/ext4/file.c:158
 do_splice_read fs/splice.c:985 [inline]
 splice_direct_to_actor+0x26c/0x670 fs/splice.c:1089
 do_splice_direct_actor fs/splice.c:1207 [inline]
 do_splice_direct+0xd7/0x150 fs/splice.c:1233
 do_sendfile+0x3b9/0x970 fs/read_write.c:1295
 __do_sys_sendfile64 fs/read_write.c:1362 [inline]
 __se_sys_sendfile64 fs/read_write.c:1348 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1348
 do_syscall_64+0xd3/0x1d0
 entry_SYSCALL_64_after_hwframe+0x6d/0x75

value changed: 0x000000000015b000 -> 0x0000000000160000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 21082 Comm: syz-executor.0 Not tainted 6.9.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/25 14:31 upstream 4cece7649650 0ea90952 .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.