syzbot


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

Status: auto-closed as invalid on 2021/11/11 03:01
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 496d, last: 426d
similar bugs (8):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (4) 1 600d 600d 0/24 auto-closed as invalid on 2021/05/21 19:40
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (5) 2 555d 561d 0/24 auto-closed as invalid on 2021/07/05 00:47
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (2) 201 677d 838d 0/24 auto-closed as invalid on 2021/03/05 09:30
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (8) 1 198d 198d 0/24 auto-closed as invalid on 2022/06/27 21:27
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead 44 902d 1115d 0/24 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (9) 3 102d 108d 0/24 auto-closed as invalid on 2022/10/01 03:27
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (3) 1 637d 637d 0/24 auto-closed as invalid on 2021/04/14 20:49
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (7) 5 260d 323d 0/24 auto-closed as invalid on 2022/04/26 07:02

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

write to 0xffff8881249cc5a4 of 4 bytes by task 10453 on cpu 0:
 ondemand_readahead+0x352/0x7c0 mm/readahead.c:531
 page_cache_sync_ra+0xaf/0xe0 mm/readahead.c:580
 page_cache_sync_readahead include/linux/pagemap.h:883 [inline]
 filemap_get_pages mm/filemap.c:2545 [inline]
 filemap_read+0x3ad/0x1220 mm/filemap.c:2628
 generic_file_read_iter+0x75/0x2c0 mm/filemap.c:2779
 ext4_file_read_iter+0x1db/0x290
 call_read_iter include/linux/fs.h:2157 [inline]
 generic_file_splice_read+0x24f/0x330 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+0x106/0x190 fs/splice.c:979
 do_sendfile+0x63e/0xbb0 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1314 [inline]
 __se_sys_sendfile64 fs/read_write.c:1300 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1300
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881249cc5a4 of 4 bytes by task 10468 on cpu 1:
 ondemand_readahead+0x1af/0x7c0 mm/readahead.c:465
 page_cache_sync_ra+0xaf/0xe0 mm/readahead.c:580
 page_cache_sync_readahead include/linux/pagemap.h:883 [inline]
 filemap_get_pages mm/filemap.c:2545 [inline]
 filemap_read+0x3ad/0x1220 mm/filemap.c:2628
 generic_file_read_iter+0x75/0x2c0 mm/filemap.c:2779
 ext4_file_read_iter+0x1db/0x290
 call_read_iter include/linux/fs.h:2157 [inline]
 generic_file_splice_read+0x24f/0x330 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+0x106/0x190 fs/splice.c:979
 do_sendfile+0x63e/0xbb0 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1314 [inline]
 __se_sys_sendfile64 fs/read_write.c:1300 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1300
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000010 -> 0x0000000f

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 10468 Comm: syz-executor.0 Not tainted 5.15.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (17):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/10/07 02:58 upstream 5af4055fa813 62ee0987 .config log report info KCSAN: data-race in ondemand_readahead / ondemand_readahead
ci2-upstream-kcsan-gce 2021/09/27 15:34 upstream 5816b3e6577e 78494d16 .config log report info KCSAN: data-race in ondemand_readahead / ondemand_readahead
ci2-upstream-kcsan-gce 2021/09/25 06:31 upstream 7d42e9818258 8cac236e .config log report info KCSAN: data-race in ondemand_readahead / ondemand_readahead
ci2-upstream-kcsan-gce 2021/09/16 23:05 upstream ff1ffd71d5f0 aae492f2 .config log report info KCSAN: data-race in ondemand_readahead / ondemand_readahead
ci2-upstream-kcsan-gce 2021/09/16 12:21 upstream ff1ffd71d5f0 07e953c1 .config log report info KCSAN: data-race in ondemand_readahead / ondemand_readahead
ci2-upstream-kcsan-gce 2021/09/15 00:32 upstream 1619b69edce1 07e953c1 .config log report info KCSAN: data-race in ondemand_readahead / ondemand_readahead
ci2-upstream-kcsan-gce 2021/09/14 00:39 upstream 316346243be6 58d09404 .config log report info KCSAN: data-race in ondemand_readahead / ondemand_readahead
ci2-upstream-kcsan-gce 2021/09/12 12:09 upstream c605c39677b9 3ce60af8 .config log report info KCSAN: data-race in ondemand_readahead / ondemand_readahead
ci2-upstream-kcsan-gce 2021/08/16 08:58 upstream 7c60610d4767 2489ab88 .config log report info KCSAN: data-race in ondemand_readahead / ondemand_readahead
ci2-upstream-kcsan-gce 2021/08/15 19:44 upstream ecf93431963a 2489ab88 .config log report info KCSAN: data-race in ondemand_readahead / ondemand_readahead
ci2-upstream-kcsan-gce 2021/08/14 12:54 upstream dfa377c35d70 2489ab88 .config log report info KCSAN: data-race in ondemand_readahead / ondemand_readahead
ci2-upstream-kcsan-gce 2021/08/13 13:13 upstream f8e6dfc64f61 3fd2ea69 .config log report info KCSAN: data-race in ondemand_readahead / ondemand_readahead
ci2-upstream-kcsan-gce 2021/08/08 12:25 upstream 85a90500f9a1 6972b106 .config log report info KCSAN: data-race in ondemand_readahead / ondemand_readahead
ci2-upstream-kcsan-gce 2021/08/05 12:46 upstream 251a1524293d 7f7bb950 .config log report info KCSAN: data-race in ondemand_readahead / ondemand_readahead
ci2-upstream-kcsan-gce 2021/08/05 01:57 upstream 251a1524293d b97d64c9 .config log report info KCSAN: data-race in ondemand_readahead / ondemand_readahead
ci2-upstream-kcsan-gce 2021/08/02 09:37 upstream c500bee1c5b2 6c236867 .config log report info KCSAN: data-race in ondemand_readahead / ondemand_readahead
ci2-upstream-kcsan-gce 2021/07/29 18:02 upstream 7e96bf476270 8a799410 .config log report info KCSAN: data-race in ondemand_readahead / ondemand_readahead
* Struck through repros no longer work on HEAD.