syzbot


KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range

Status: moderation: reported on 2022/01/06 20:11
Reported-by: syzbot+06d291120ff02d083cb8@syzkaller.appspotmail.com
First crash: 246d, last: 14h19m

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

read-write to 0xffff88813772fe40 of 8 bytes by task 13011 on cpu 1:
 __filemap_add_folio+0x2d9/0x7f0 mm/filemap.c:904
 filemap_add_folio+0x6b/0x150 mm/filemap.c:959
 page_cache_ra_unbounded+0x19e/0x2e0 mm/readahead.c:245
 do_page_cache_ra+0xa7/0xc0 mm/readahead.c:293
 ondemand_readahead+0x770/0x780 mm/readahead.c:645
 page_cache_sync_ra+0xdc/0xf0 mm/readahead.c:699
 page_cache_sync_readahead include/linux/pagemap.h:1234 [inline]
 filemap_get_pages mm/filemap.c:2594 [inline]
 filemap_read+0x3ef/0x1410 mm/filemap.c:2688
 generic_file_read_iter+0x72/0x320 mm/filemap.c:2834
 ext4_file_read_iter+0x1e9/0x2a0
 call_read_iter include/linux/fs.h:2052 [inline]
 generic_file_splice_read+0x1de/0x2c0 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2ac/0x660 fs/splice.c:870
 do_splice_direct+0xfb/0x180 fs/splice.c:979
 do_sendfile+0x3ad/0x900 fs/read_write.c:1262
 __do_sys_sendfile64 fs/read_write.c:1327 [inline]
 __se_sys_sendfile64 fs/read_write.c:1313 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1313
 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+0x46/0xb0

read to 0xffff88813772fe40 of 8 bytes by task 13028 on cpu 0:
 mapping_needs_writeback mm/filemap.c:627 [inline]
 filemap_write_and_wait_range+0x34/0x2e0 mm/filemap.c:672
 __iomap_dio_rw+0x51e/0xf50 fs/iomap/direct-io.c:572
 iomap_dio_rw+0x3c/0x80 fs/iomap/direct-io.c:689
 ext4_dio_write_iter fs/ext4/file.c:566 [inline]
 ext4_file_write_iter+0xaa9/0x1210 fs/ext4/file.c:677
 do_iter_readv_writev+0x27b/0x300
 do_iter_write+0x16f/0x5c0 fs/read_write.c:868
 vfs_iter_write+0x4c/0x70 fs/read_write.c:909
 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x660 fs/splice.c:891
 do_splice_direct+0xfb/0x180 fs/splice.c:979
 do_sendfile+0x3ad/0x900 fs/read_write.c:1262
 __do_sys_sendfile64 fs/read_write.c:1327 [inline]
 __se_sys_sendfile64 fs/read_write.c:1313 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1313
 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+0x46/0xb0

value changed: 0x000000000000073a -> 0x000000000000073c

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 13028 Comm: syz-executor.4 Not tainted 5.19.0-rc5-syzkaller-00056-ge35e5b6f695d-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
==================================================================

Crashes (236):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/07/05 20:57 upstream e35e5b6f695d bff65f44 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/07/05 02:30 upstream c1084b6c5620 bff65f44 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/07/04 16:37 upstream 88084a3df167 bff65f44 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/07/03 19:53 upstream 20855e4cb361 1434eec0 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/07/02 13:53 upstream 089866061428 1434eec0 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/29 16:44 upstream 941e3e791269 1434eec0 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/29 14:04 upstream 941e3e791269 1434eec0 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/26 03:35 upstream 0840a7914caa a371c43c .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/25 14:40 upstream 8c23f235a6a8 a371c43c .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/24 19:28 upstream 38bc4ac43168 a371c43c .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/24 11:22 upstream 92f20ff72066 a371c43c .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/22 16:10 upstream ca1fdab7fd27 912f5df7 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/21 20:57 upstream ca1fdab7fd27 0fc5c330 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/21 00:44 upstream 78ca55889a54 0fc5c330 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/20 07:40 upstream a111daf0c53a 8f633d84 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/19 16:56 upstream 05c6ca8512f2 8f633d84 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/17 19:26 upstream 462abc9de7a1 8f633d84 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/17 07:20 upstream 47700948a4ab cb58b3b2 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/16 05:33 upstream 30306f6194ca 1719ee24 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/15 13:21 upstream 018ab4fabddd 1719ee24 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/14 22:48 upstream 24625f7d91fb 127d1faf .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/14 13:40 upstream b13baccc3850 127d1faf .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/13 19:05 upstream b13baccc3850 0f087040 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/13 14:28 upstream b13baccc3850 0d5abf15 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/12 09:01 upstream 7a68065eb9cd 0d5abf15 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/08 19:16 upstream 34f4335c16a5 0d5abf15 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/08 03:51 upstream 9886142c7a22 b2706118 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/07 22:06 upstream e71e60cd74df b2706118 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/04 15:01 upstream 032dcf09e2bf c8857892 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/03 02:15 upstream 58f9d52ff689 02dddea8 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/02 12:17 upstream d1dc87763f40 6e12f05f .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/01 20:00 upstream 8eca6b0a647a b4bc6a3d .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/06/01 00:16 upstream e1cbc3b96a99 3666edfe .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/30 15:24 upstream b00ed48bb0a7 af70c3a9 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/30 05:48 upstream c3a9a3c5f559 a46af346 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/26 07:59 upstream d7227785e384 3037caa9 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/25 13:32 upstream fdaf9a5840ac 3037caa9 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/25 00:34 upstream 0350785b0a09 647c0e27 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/24 03:20 upstream 140e40e39a29 e7f9308d .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/22 21:56 upstream 978df3e15846 7268fa62 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/22 07:53 upstream eaea45fc0e7b 7268fa62 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/22 00:51 upstream 6c3f5bec9b40 7268fa62 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/21 09:52 upstream 3b5e1590a267 7268fa62 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/21 00:04 upstream 3d7285a335ed bd37ad7e .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/20 14:40 upstream 3d7285a335ed cb1ac2e7 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/19 07:22 upstream f993aed406ea 50c53f39 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/18 14:26 upstream 210e04ff7681 50c53f39 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/18 01:13 upstream 210e04ff7681 744a39e2 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/16 09:53 upstream 42226c989789 744a39e2 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/15 16:08 upstream bc403203d65a 744a39e2 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/15 01:12 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/14 16:39 upstream ec7f49619d8e 744a39e2 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/13 10:09 upstream f3f19f939c11 7ce5a022 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/05/12 13:14 upstream feb9c5e19e91 9ad6612a .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2022/01/06 17:04 upstream 75acfdb6fd92 6acc789a .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range
ci2-upstream-kcsan-gce 2021/11/01 23:42 upstream e66435936756 098b5d53 .config log report info KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range