syzbot


KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
Status: moderation: reported on 2022/05/10 00:10
Reported-by: syzbot+b97e9f65a69e70c39b6f@syzkaller.appspotmail.com
First crash: 51d, last: 8h32m

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

write to 0xffff8881325fd42c of 4 bytes by task 20012 on cpu 1:
 xa_mark_set lib/xarray.c:69 [inline]
 xas_set_mark+0x11e/0x130 lib/xarray.c:893
 __folio_start_writeback+0x2bf/0x5d0 mm/page-writeback.c:2949
 set_page_writeback+0x3d/0xe0 mm/folio-compat.c:78
 ext4_bio_write_page+0x119/0xb60 fs/ext4/page-io.c:451
 mpage_submit_page fs/ext4/inode.c:2102 [inline]
 mpage_process_page_bufs+0x431/0x530 fs/ext4/inode.c:2216
 mpage_prepare_extent_to_map+0x5b7/0xa50 fs/ext4/inode.c:2642
 ext4_writepages+0x6b2/0x1d00 fs/ext4/inode.c:2770
 do_writepages+0x1db/0x350 mm/page-writeback.c:2443
 filemap_fdatawrite_wbc+0xd6/0xf0 mm/filemap.c:388
 __filemap_fdatawrite_range mm/filemap.c:421 [inline]
 file_write_and_wait_range+0xd6/0x170 mm/filemap.c:779
 ext4_sync_file+0x105/0x6d0 fs/ext4/fsync.c:151
 vfs_fsync_range+0x107/0x120 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2744 [inline]
 ext4_buffered_write_iter+0x2ec/0x330 fs/ext4/file.c:277
 ext4_file_write_iter+0x2e3/0x1210
 do_iter_readv_writev+0x27b/0x300
 do_iter_write+0x16f/0x5c0 fs/read_write.c:852
 vfs_iter_write+0x4c/0x70 fs/read_write.c:893
 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:1246
 __do_sys_sendfile64 fs/read_write.c:1305 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0xb9/0x150 fs/read_write.c:1297
 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 0xffff8881325fd42c of 4 bytes by task 20028 on cpu 0:
 xa_marked include/linux/xarray.h:419 [inline]
 mapping_tagged include/linux/fs.h:446 [inline]
 filemap_fdatawrite_wbc+0x57/0xf0 mm/filemap.c:384
 __filemap_fdatawrite_range mm/filemap.c:421 [inline]
 file_write_and_wait_range+0xd6/0x170 mm/filemap.c:779
 ext4_sync_file+0x105/0x6d0 fs/ext4/fsync.c:151
 vfs_fsync_range+0x107/0x120 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2744 [inline]
 ext4_buffered_write_iter+0x2ec/0x330 fs/ext4/file.c:277
 ext4_file_write_iter+0x2e3/0x1210
 do_iter_readv_writev+0x27b/0x300
 do_iter_write+0x16f/0x5c0 fs/read_write.c:852
 vfs_iter_write+0x4c/0x70 fs/read_write.c:893
 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:1246
 __do_sys_sendfile64 fs/read_write.c:1311 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1297
 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: 0x28000021 -> 0x10000021

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 20028 Comm: syz-executor.4 Not tainted 5.18.0-syzkaller-10037-g7e284070abe5-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (75):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/27 10:21 upstream 7e284070abe5 116e7a7b .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/24 23:13 upstream 0350785b0a09 647c0e27 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/24 11:28 upstream 143a6252e1b8 fcfad4ff .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/24 02:41 upstream 140e40e39a29 e7f9308d .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/23 10:07 upstream 4b0986a3613c 4c7657cb .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/22 22:17 upstream 978df3e15846 7268fa62 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/21 06:52 upstream 3b5e1590a267 7268fa62 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/20 16:14 upstream 3d7285a335ed bd37ad7e .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/20 14:16 upstream 3d7285a335ed cb1ac2e7 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/20 12:02 upstream b015dcd62b86 cb1ac2e7 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/19 11:37 upstream f993aed406ea cb1ac2e7 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/19 07:51 upstream f993aed406ea 50c53f39 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/18 18:40 upstream ef1302160bfb 50c53f39 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/18 01:00 upstream 210e04ff7681 744a39e2 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/16 23:54 upstream 42226c989789 744a39e2 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/15 10:44 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/14 10:44 upstream ec7f49619d8e 744a39e2 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/13 23:17 upstream f2dd007445b1 107f6434 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/13 13:02 upstream f3f19f939c11 7ce5a022 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/13 08:51 upstream f3f19f939c11 9ad6612a .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/12 20:49 upstream 0ac824f379fb 9ad6612a .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/12 13:49 upstream feb9c5e19e91 9ad6612a .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/11 00:20 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/09 16:32 upstream 9be9ed2612b5 8b277b8e .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/09 00:41 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/08 12:25 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/08 10:00 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/08 08:17 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/08 06:13 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/07 20:42 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/07 17:44 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/07 12:40 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/07 01:10 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/06 22:47 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/06 21:30 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/06 17:58 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/06 14:34 upstream fe27d189e3f4 efeff0a5 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/06 02:39 upstream fe27d189e3f4 efeff0a5 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/04 12:40 upstream 107c948d1d3e dc9e5259 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/03 16:33 upstream 9050ba3a61a4 dc9e5259 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/03 01:22 upstream 9050ba3a61a4 2df221f6 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/01 02:29 upstream 57ae8a492116 2df221f6 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/30 12:31 upstream 8013d1d3d2e3 2df221f6 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/29 20:48 upstream 38d741cb70b3 44a5ca63 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/29 09:32 upstream 38d741cb70b3 e9076525 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/28 22:08 upstream 259b897e5a79 e9076525 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/28 17:40 upstream 8f4dd16603ce e9076525 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/28 00:52 upstream 8f4dd16603ce 8a1f1f07 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/26 20:53 upstream cf424ef014ac 1fa34c1b .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/24 22:55 upstream 42740a2ff5d3 131df97d .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/23 21:28 upstream 13bc32bad705 131df97d .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/23 10:28 upstream c00c5e1d157b 131df97d .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/22 16:52 upstream d569e86915b7 131df97d .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/21 23:01 upstream 59f0c2447e25 2738b391 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/21 15:50 upstream b253435746d9 2738b391 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/19 14:40 upstream b2d229d4ddb1 33fc6ed6 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/19 13:34 upstream b2d229d4ddb1 c334415e .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/18 10:31 upstream b2d229d4ddb1 8bcc32a6 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/18 01:00 upstream a2c29ccd9477 8bcc32a6 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/17 02:48 upstream 90ea17a9e27b 8bcc32a6 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/16 20:15 upstream 59250f8a7f3a 8bcc32a6 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/16 19:25 upstream 59250f8a7f3a 8bcc32a6 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/13 11:05 upstream a19944809fe9 b17b2923 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/13 06:48 upstream a19944809fe9 faabdb86 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/13 03:20 upstream a19944809fe9 dacb3f1c .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/13 00:12 upstream ce522ba9ef7e dacb3f1c .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/10 16:56 upstream 1862a69c9174 e22c3da3 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/10 07:53 upstream e1f700ebd6be e22c3da3 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/09 16:51 upstream f1b45d8ccb98 e22c3da3 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/09 16:36 upstream f1b45d8ccb98 e22c3da3 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/08 20:16 upstream 1831fed55973 e22c3da3 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/07 23:51 upstream 42e7a03d3bad c6ff3e05 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/06 19:53 upstream 3e732ebf7316 97582466 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/06 11:04 upstream 3e732ebf7316 86b4b7f8 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark