syzbot


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

Status: auto-closed as invalid on 2021/03/05 09:30
Subsystems: fs mm
[Documentation on labels]
Reported-by: syzbot+75c8f278444ac898e162@syzkaller.appspotmail.com
First crash: 1390d, last: 1172d
Similar bugs (9)
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 1094d 1094d 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 1050d 1055d 0/26 auto-closed as invalid on 2021/07/05 00:47
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (10) fs mm 147 39d 129d 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 692d 692d 0/26 auto-closed as invalid on 2022/06/27 21:27
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead fs mm 44 1397d 1610d 0/26 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (9) mm fs 3 597d 602d 0/26 auto-closed as invalid on 2022/10/01 03:27
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (3) fs mm 1 1131d 1131d 0/26 auto-closed as invalid on 2021/04/14 20:49
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (7) fs mm 5 755d 817d 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 921d 990d 0/26 auto-closed as invalid on 2021/11/11 03:01

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

write to 0xffff888107bc52a4 of 4 bytes by task 11755 on cpu 0:
 ondemand_readahead+0x31e/0x780 mm/readahead.c:528
 page_cache_sync_ra+0x1ab/0x1c0 mm/readahead.c:577
 page_cache_sync_readahead include/linux/pagemap.h:839 [inline]
 generic_file_buffered_read_get_pages+0x234/0xaf0 mm/filemap.c:2361
 generic_file_buffered_read+0x27f/0x9a0 mm/filemap.c:2481
 generic_file_read_iter+0x80/0x3d0 mm/filemap.c:2633
 call_read_iter include/linux/fs.h:1895 [inline]
 generic_file_splice_read+0x22a/0x310 fs/splice.c:311
 do_splice_to fs/splice.c:788 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:867
 do_splice_direct+0xf5/0x170 fs/splice.c:976
 do_sendfile+0x5db/0xca0 fs/read_write.c:1257
 __do_sys_sendfile64 fs/read_write.c:1318 [inline]
 __se_sys_sendfile64 fs/read_write.c:1304 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1304
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888107bc52a4 of 4 bytes by task 11761 on cpu 1:
 ondemand_readahead+0x4dd/0x780 mm/readahead.c:549
 page_cache_sync_ra+0x1ab/0x1c0 mm/readahead.c:577
 page_cache_sync_readahead include/linux/pagemap.h:839 [inline]
 generic_file_buffered_read_get_pages+0x234/0xaf0 mm/filemap.c:2361
 generic_file_buffered_read+0x27f/0x9a0 mm/filemap.c:2481
 generic_file_read_iter+0x80/0x3d0 mm/filemap.c:2633
 call_read_iter include/linux/fs.h:1895 [inline]
 generic_file_splice_read+0x22a/0x310 fs/splice.c:311
 do_splice_to fs/splice.c:788 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:867
 do_splice_direct+0xf5/0x170 fs/splice.c:976
 do_sendfile+0x5db/0xca0 fs/read_write.c:1257
 __do_sys_sendfile64 fs/read_write.c:1318 [inline]
 __se_sys_sendfile64 fs/read_write.c:1304 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1304
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (201):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/29 09:29 upstream bec4c2968fce 6593fd32 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2021/01/09 12:23 upstream 996e435fd401 a6c52263 .config console log report info ci2-upstream-kcsan-gce
2021/01/02 07:08 upstream eda809aef534 79264ae3 .config console log report info ci2-upstream-kcsan-gce
2020/12/18 14:26 upstream a409ed156a90 04201c06 .config console log report info ci2-upstream-kcsan-gce
2020/12/16 15:42 upstream d01e7f10dae2 649595c6 .config console log report info ci2-upstream-kcsan-gce
2020/12/15 16:54 upstream 148842c98a24 97183ed7 .config console log report info ci2-upstream-kcsan-gce
2020/12/15 02:50 upstream fab0fca1da5c 97183ed7 .config console log report info ci2-upstream-kcsan-gce
2020/12/10 01:34 upstream ca4bbdaf1716 c090b4da .config console log report info ci2-upstream-kcsan-gce
2020/12/09 13:05 upstream a68a0262abda 99917735 .config console log report info ci2-upstream-kcsan-gce
2020/12/08 09:32 upstream cd796ed33450 9af51e31 .config console log report info ci2-upstream-kcsan-gce
2020/12/08 00:38 upstream cd796ed33450 51a9082e .config console log report info ci2-upstream-kcsan-gce
2020/12/07 10:24 upstream 0477e9288185 f80ce148 .config console log report info ci2-upstream-kcsan-gce
2020/12/07 00:45 upstream 8100a58044f8 c521566d .config console log report info ci2-upstream-kcsan-gce
2020/12/06 09:16 upstream 7059c2c00a21 f12ba0c5 .config console log report info ci2-upstream-kcsan-gce
2020/12/05 21:55 upstream 32f741b02f1a 50503117 .config console log report info ci2-upstream-kcsan-gce
2020/12/05 09:53 upstream b3298500b23f 0ef84591 .config console log report info ci2-upstream-kcsan-gce
2020/12/04 20:07 upstream e87297fa080a 20366b87 .config console log report info ci2-upstream-kcsan-gce
2020/12/01 18:24 upstream b65054597872 07bfe8a5 .config console log report info ci2-upstream-kcsan-gce
2020/11/29 04:02 upstream 67f34fa8893e a0092f9d .config console log report info ci2-upstream-kcsan-gce
2020/11/28 17:06 upstream c84e1efae022 3c7136c0 .config console log report info ci2-upstream-kcsan-gce
2020/11/27 16:33 upstream 85a2c56cb445 486f93ef .config console log report info ci2-upstream-kcsan-gce
2020/11/27 10:21 upstream 4df910620beb 5018c946 .config console log report info ci2-upstream-kcsan-gce
2020/11/23 21:28 upstream 418baf2c28f3 878fb17a .config console log report info ci2-upstream-kcsan-gce
2020/11/22 05:47 upstream a349e4c65960 0d27f508 .config console log report info ci2-upstream-kcsan-gce
2020/11/21 21:13 upstream 27bba9c532a8 c7ec2d19 .config console log report info ci2-upstream-kcsan-gce
2020/11/13 16:09 upstream 585e5b17b92d 4a7fa9b4 .config console log report info ci2-upstream-kcsan-gce
2020/11/12 11:16 upstream 3d5e28bff7ad 77a55c8e .config console log report info ci2-upstream-kcsan-gce
2020/11/11 20:29 upstream eccc87672492 cca87986 .config console log report info ci2-upstream-kcsan-gce
2020/11/09 23:55 upstream 3552c3709c0e cba33199 .config console log report info ci2-upstream-kcsan-gce
2020/11/06 00:32 upstream 521b619acdc8 cba33199 .config console log report info ci2-upstream-kcsan-gce
2020/11/03 14:50 upstream b7cbaf59f62f cba33199 .config console log report info ci2-upstream-kcsan-gce
2020/11/02 05:44 upstream 31f020064f9d 8bc4594f .config console log report info ci2-upstream-kcsan-gce
2020/10/31 12:28 upstream 5fc6b075e165 8bc4594f .config console log report info ci2-upstream-kcsan-gce
2020/10/30 11:21 upstream 07e088730245 a6e3ac3b .config console log report info ci2-upstream-kcsan-gce
2020/10/29 21:20 upstream 23859ae44402 a0c7169a .config console log report info ci2-upstream-kcsan-gce
2020/10/29 09:54 upstream 23859ae44402 f24824d3 .config console log report info ci2-upstream-kcsan-gce
2020/10/28 19:08 upstream ed8780e3f2ec f24824d3 .config console log report info ci2-upstream-kcsan-gce
2020/10/27 11:40 upstream 4525c8781ec0 94942294 .config console log report info ci2-upstream-kcsan-gce
2020/10/27 05:09 upstream 41ba50b0572e 8b3eaf58 .config console log report info ci2-upstream-kcsan-gce
2020/10/24 19:17 upstream f11901ed723d a1839e81 .config console log report info ci2-upstream-kcsan-gce
2020/10/24 01:24 upstream 0adc313c4f20 2bb6666c .config console log report info ci2-upstream-kcsan-gce
2020/10/22 18:55 upstream 96485e446260 be6b1582 .config console log report info ci2-upstream-kcsan-gce
2020/08/20 06:11 upstream 7eac66d0456f ed282a3a .config console log report ci2-upstream-kcsan-gce
2020/08/20 02:10 upstream 18445bf405cb ed282a3a .config console log report ci2-upstream-kcsan-gce
2020/06/25 04:50 upstream 26e122e97a3d 9d60b18e .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.