syzbot


KCSAN: data-race in page_cache_sync_ra / page_cache_sync_ra

Status: auto-obsoleted due to no activity on 2024/10/09 07:18
Subsystems: fs mm
[Documentation on labels]
Reported-by: syzbot+4c47124a8e9d1943618d@syzkaller.appspotmail.com
First crash: 137d, last: 108d

Sample crash report:
loop3: detected capacity change from 0 to 256
==================================================================
BUG: KCSAN: data-race in page_cache_sync_ra / page_cache_sync_ra

write to 0xffff8881049a2e80 of 4 bytes by task 15186 on cpu 0:
 page_cache_sync_ra+0x511/0x670 mm/readahead.c:543
 page_cache_sync_readahead include/linux/pagemap.h:1296 [inline]
 filemap_get_pages+0x252/0xfb0 mm/filemap.c:2529
 filemap_splice_read+0x360/0x920 mm/filemap.c:2894
 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+0x3ab/0x950 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
 x64_sys_call+0xed5/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:41
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff8881049a2e80 of 4 bytes by task 15180 on cpu 1:
 page_cache_sync_ra+0x511/0x670 mm/readahead.c:543
 page_cache_sync_readahead include/linux/pagemap.h:1296 [inline]
 filemap_get_pages+0x252/0xfb0 mm/filemap.c:2529
 filemap_splice_read+0x360/0x920 mm/filemap.c:2894
 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+0x3ab/0x950 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
 x64_sys_call+0xed5/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:41
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00000008 -> 0x00000010

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 15180 Comm: syz.3.756 Not tainted 6.11.0-rc6-syzkaller-00026-g88fac17500f4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/04 07:17 upstream 88fac17500f4 9d47f20a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in page_cache_sync_ra / page_cache_sync_ra
2024/08/31 14:28 upstream 1934261d8974 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in page_cache_sync_ra / page_cache_sync_ra
2024/08/06 09:31 upstream b446a2dae984 e1bdb00a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in page_cache_sync_ra / page_cache_sync_ra
* Struck through repros no longer work on HEAD.