syzbot


KCSAN: data-race in xas_find_marked / xas_set_mark
Status: moderation: reported on 2019/12/05 04:45
Reported-by: syzbot+238e9bb046564c2c4d4a@syzkaller.appspotmail.com
First crash: 947d, last: 2d00h

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

write to 0xffff888135d62d0c of 4 bytes by task 29744 on cpu 0:
 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:2858
 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:2352
 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:2723 [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 0xffff888135d62d0c of 4 bytes by task 29759 on cpu 1:
 xa_marked include/linux/xarray.h:419 [inline]
 xas_find_marked+0x587/0x5e0 lib/xarray.c:1328
 find_get_entry mm/filemap.c:2032 [inline]
 find_get_pages_range_tag+0x103/0x480 mm/filemap.c:2314
 pagevec_lookup_range_tag+0x37/0x50 mm/swap.c:1122
 mpage_prepare_extent_to_map+0x1a4/0xa50 fs/ext4/inode.c:2577
 ext4_writepages+0x6b2/0x1d00 fs/ext4/inode.c:2770
 do_writepages+0x1db/0x350 mm/page-writeback.c:2352
 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:2723 [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: 1 PID: 29759 Comm: syz-executor.2 Tainted: G        W         5.18.0-syzkaller-02752-gfdaf9a5840ac-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (941):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/25 15:38 upstream fdaf9a5840ac 3037caa9 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/22 06:54 upstream eaea45fc0e7b 7268fa62 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/14 10:43 upstream ec7f49619d8e 744a39e2 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/08 21:53 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/05 19:49 upstream 0f5d752b1395 b3f09415 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/05/02 08:15 upstream 672c0c517342 2df221f6 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/30 23:07 upstream 8013d1d3d2e3 2df221f6 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/29 17:10 upstream 38d741cb70b3 44a5ca63 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/27 10:49 upstream 46cf2c613f4b 1fa34c1b .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/26 10:07 upstream d615b5416f8a 1fa34c1b .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/23 11:58 upstream c00c5e1d157b 131df97d .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/19 04:05 upstream b2d229d4ddb1 8bcc32a6 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/13 08:55 upstream a19944809fe9 faabdb86 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/11 07:15 upstream ce522ba9ef7e e22c3da3 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/08 23:59 upstream 1831fed55973 e22c3da3 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/06 09:09 upstream 3e732ebf7316 86b4b7f8 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/05 16:38 upstream 312310928417 0127c10f .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/24 12:04 upstream ed4643521e6a 89bc8608 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/19 09:13 upstream 34e047aa16c0 e2d91b1d .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/14 01:36 upstream f0e18b03fcaf 9e8eaa75 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/06 16:04 upstream dcde98da9970 7bdd8b2c .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/02/27 09:32 upstream 2293be58d6a1 45a13a73 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/02/25 14:19 upstream 53ab78cd6d5a 7c337266 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/02/23 10:04 upstream 5c1ee569660d 6e821dbf .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/02/21 10:08 upstream cfb92440ee71 3cd800e4 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/02/20 11:16 upstream 4f12b742eb2b 3cd800e4 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/02/18 18:35 upstream 7993e65fdd0f 3cd800e4 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/02/13 17:53 upstream b81b1829e7e3 8b9ca619 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/02/10 10:29 upstream f4bc5bbb5fef 0b33604d .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/02/07 22:23 upstream 2ade8eef993c a7dab638 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/02/03 00:08 upstream 27bb0b18c208 4ebb2798 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/02/01 03:19 upstream 26291c54e111 6b7c57fe .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/01/30 00:17 upstream f8c7e4ede46f 495e00c5 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/01/29 17:00 upstream 169387e2aa29 495e00c5 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/01/28 19:02 upstream df0001545b27 495e00c5 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/01/27 16:07 upstream 626b2dda7651 64a8e201 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/01/18 16:13 upstream e3a8b6a1e70c 731a2d23 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/01/15 17:20 upstream a33f5c380c4b 723cfaf0 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/01/14 20:59 upstream 871bfa02d08d 53e00b45 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/01/10 15:37 upstream df0cc57e057f 2ca0d385 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/01/08 20:49 upstream 21f35d2ca83e 2ca0d385 .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2022/01/03 04:54 upstream 1286cc4893cf e1768e9c .config log report info KCSAN: data-race in xas_find_marked / xas_set_mark
ci2-upstream-kcsan-gce 2021/01/16 09:14 upstream 1d94330a437a 65a7a854 .config log report info
ci2-upstream-kcsan-gce 2019/10/23 02:27 https://github.com/google/ktsan.git kcsan 05f2236801fe d0686497 .config log report