syzbot


KCSAN: data-race in ondemand_readahead / ondemand_readahead (9)

Status: auto-closed as invalid on 2022/10/01 03:27
Subsystems: mm fs
[Documentation on labels]
First crash: 978d, last: 973d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (4) fs mm 1 1470d 1470d 0/28 auto-closed as invalid on 2021/05/21 19:40
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (5) mm fs 2 1426d 1432d 0/28 auto-closed as invalid on 2021/07/05 00:47
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (2) fs mm 201 1548d 1709d 0/28 auto-closed as invalid on 2021/03/05 09:30
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (10) fs mm 147 415d 505d 0/28 auto-obsoleted due to no activity on 2024/04/11 01:33
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (8) fs mm 1 1068d 1068d 0/28 auto-closed as invalid on 2022/06/27 21:27
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead fs mm 44 1773d 1986d 0/28 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (3) fs mm 1 1507d 1507d 0/28 auto-closed as invalid on 2021/04/14 20:49
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (7) fs mm 5 1131d 1193d 0/28 auto-closed as invalid on 2022/04/26 07:02
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (6) fs mm 17 1297d 1366d 0/28 auto-closed as invalid on 2021/11/11 03:01
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (11) mm fs 98 297d 375d 0/28 auto-obsoleted due to no activity on 2024/07/30 21:57

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

read to 0xffff8881043e4da4 of 4 bytes by task 16464 on cpu 1:
 ondemand_readahead+0x226/0x780 mm/readahead.c:584
 page_cache_sync_ra+0xdc/0xf0 mm/readahead.c:699
 page_cache_sync_readahead include/linux/pagemap.h:1215 [inline]
 filemap_get_pages mm/filemap.c:2566 [inline]
 filemap_read+0x3ef/0x1430 mm/filemap.c:2660
 generic_file_read_iter+0x72/0x320 mm/filemap.c:2806
 ext4_file_read_iter+0x1e9/0x2a0
 call_read_iter include/linux/fs.h:2181 [inline]
 generic_file_splice_read+0xde/0x2b0 fs/splice.c:309
 do_splice_to fs/splice.c:793 [inline]
 splice_direct_to_actor+0x26c/0x620 fs/splice.c:865
 do_splice_direct+0xfb/0x180 fs/splice.c:974
 do_sendfile+0x3bf/0x910 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1317 [inline]
 __se_sys_sendfile64 fs/read_write.c:1303 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1303
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to 0xffff8881043e4da4 of 4 bytes by task 16456 on cpu 0:
 ondemand_readahead+0x3d3/0x780 mm/readahead.c:651
 page_cache_sync_ra+0xdc/0xf0 mm/readahead.c:699
 page_cache_sync_readahead include/linux/pagemap.h:1215 [inline]
 filemap_get_pages mm/filemap.c:2566 [inline]
 filemap_read+0x3ef/0x1430 mm/filemap.c:2660
 generic_file_read_iter+0x72/0x320 mm/filemap.c:2806
 ext4_file_read_iter+0x1e9/0x2a0
 call_read_iter include/linux/fs.h:2181 [inline]
 generic_file_splice_read+0xde/0x2b0 fs/splice.c:309
 do_splice_to fs/splice.c:793 [inline]
 splice_direct_to_actor+0x26c/0x620 fs/splice.c:865
 do_splice_direct+0xfb/0x180 fs/splice.c:974
 do_sendfile+0x3bf/0x910 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1317 [inline]
 __se_sys_sendfile64 fs/read_write.c:1303 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1303
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00000014 -> 0x00000015

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 16456 Comm: syz-executor.1 Not tainted 6.0.0-rc2-syzkaller-00248-ge022620b5d05-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/27 03:16 upstream e022620b5d05 07177916 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2022/08/25 03:24 upstream c40e8341e3b3 514514f6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2022/08/21 21:48 upstream e3f259d33c0e 26a13b38 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
* Struck through repros no longer work on HEAD.