syzbot


KCSAN: data-race in read_pages / read_pages (3)

Status: moderation: reported on 2024/09/10 11:15
Subsystems: fs mm
[Documentation on labels]
Reported-by: syzbot+5f6800f9d44004bea3d8@syzkaller.appspotmail.com
First crash: 8d02h, last: 8d02h
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in read_pages / read_pages (2) fs mm 134 190d 285d 0/28 auto-obsoleted due to no activity on 2024/04/14 15:35
upstream KCSAN: data-race in read_pages / read_pages fs mm 1 815d 815d 0/28 auto-closed as invalid on 2022/07/30 19:54

Sample crash report:
loop3: detected capacity change from 0 to 2048
EXT4-fs (loop3): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: none.
==================================================================
BUG: KCSAN: data-race in read_pages / read_pages

write to 0xffff8881045a8284 of 4 bytes by task 18421 on cpu 1:
 read_pages+0x287/0x540 mm/readahead.c:172
 page_cache_ra_unbounded+0x22c/0x2e0
 page_cache_sync_ra+0x652/0x670
 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
 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+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

read to 0xffff8881045a8284 of 4 bytes by task 18420 on cpu 0:
 read_pages+0x25c/0x540 mm/readahead.c:171
 page_cache_ra_unbounded+0x22c/0x2e0
 page_cache_sync_ra+0x652/0x670
 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
 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+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: 0x0000000a -> 0x00000006

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 18420 Comm: syz.3.4772 Not tainted 6.11.0-rc7-syzkaller-00017-gbc83b4d1f086 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/10 11:15 upstream bc83b4d1f086 784df80e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in read_pages / read_pages
* Struck through repros no longer work on HEAD.