syzbot


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

Status: auto-closed as invalid on 2021/04/14 20:49
Subsystems: fs mm
[Documentation on labels]
First crash: 1134d, last: 1134d
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 1097d 1097d 0/26 auto-closed as invalid on 2021/05/21 19:40
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (5) mm fs 2 1053d 1058d 0/26 auto-closed as invalid on 2021/07/05 00:47
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (2) fs mm 201 1174d 1336d 0/26 auto-closed as invalid on 2021/03/05 09:30
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (10) fs mm 147 41d 132d 0/26 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 695d 695d 0/26 auto-closed as invalid on 2022/06/27 21:27
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead fs mm 44 1399d 1613d 0/26 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (9) mm fs 3 599d 605d 0/26 auto-closed as invalid on 2022/10/01 03:27
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (7) fs mm 5 757d 820d 0/26 auto-closed as invalid on 2022/04/26 07:02
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (6) fs mm 17 923d 993d 0/26 auto-closed as invalid on 2021/11/11 03:01
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (11) fs mm 4 10h56m 2d00h 0/26 moderation: reported on 2024/04/16 01:12

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

write to 0xffff88802ccc9e98 of 8 bytes by task 14616 on cpu 1:
 ondemand_readahead+0x23f/0x780 mm/readahead.c:526
 page_cache_sync_ra+0x18f/0x1a0 mm/readahead.c:577
 page_cache_sync_readahead include/linux/pagemap.h:840 [inline]
 filemap_get_pages+0x1ba/0x660 mm/filemap.c:2375
 filemap_read+0x1ba/0x7b0 mm/filemap.c:2458
 generic_file_read_iter+0x82/0x410 mm/filemap.c:2609
 call_read_iter include/linux/fs.h:1971 [inline]
 generic_file_splice_read+0x22a/0x310 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:870
 do_splice_direct+0xf5/0x170 fs/splice.c:979
 do_sendfile+0x7a6/0xe20 fs/read_write.c:1260
 __do_sys_sendfile64 fs/read_write.c:1325 [inline]
 __se_sys_sendfile64 fs/read_write.c:1311 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1311
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88802ccc9e98 of 8 bytes by task 14627 on cpu 0:
 ondemand_readahead+0x15e/0x780 mm/readahead.c:462
 page_cache_sync_ra+0x18f/0x1a0 mm/readahead.c:577
 page_cache_sync_readahead include/linux/pagemap.h:840 [inline]
 filemap_get_pages+0x1ba/0x660 mm/filemap.c:2375
 filemap_read+0x1ba/0x7b0 mm/filemap.c:2458
 generic_file_read_iter+0x82/0x410 mm/filemap.c:2609
 call_read_iter include/linux/fs.h:1971 [inline]
 generic_file_splice_read+0x22a/0x310 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:870
 do_splice_direct+0xf5/0x170 fs/splice.c:979
 do_sendfile+0x7a6/0xe20 fs/read_write.c:1260
 __do_sys_sendfile64 fs/read_write.c:1325 [inline]
 __se_sys_sendfile64 fs/read_write.c:1311 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1311
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 14627 Comm: syz-executor.2 Not tainted 5.12.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/10 20:43 upstream 05a59d79793d 764067f3 .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.