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: 180d, last: 4h28m

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

write to 0xffff888126ceac4c of 4 bytes by task 4278 on cpu 1:
 xa_mark_set lib/xarray.c:69 [inline]
 xas_set_mark+0x11e/0x130 lib/xarray.c:894
 tag_pages_for_writeback+0x9d/0x290 mm/page-writeback.c:2237
 ext4_writepages+0x66f/0x1cf0 fs/ext4/inode.c:2765
 do_writepages+0x1db/0x350 mm/page-writeback.c:2468
 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:773
 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:2869 [inline]
 ext4_buffered_write_iter+0x398/0x3e0 fs/ext4/file.c:277
 ext4_file_write_iter+0x2e3/0x1210
 do_iter_write+0x494/0x750 fs/read_write.c:861
 vfs_iter_write+0x4c/0x70 fs/read_write.c:902
 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:686
 do_splice_from fs/splice.c:764 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:931
 splice_direct_to_actor+0x305/0x620 fs/splice.c:886
 do_splice_direct+0xfb/0x180 fs/splice.c:974
 do_sendfile+0x3bf/0x910 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1317 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0xb9/0x150 fs/read_write.c:1309
 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+0x63/0xcd

read to 0xffff888126ceac4c of 4 bytes by task 4266 on cpu 0:
 xa_marked include/linux/xarray.h:420 [inline]
 mapping_tagged include/linux/fs.h:461 [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:773
 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:2869 [inline]
 ext4_buffered_write_iter+0x398/0x3e0 fs/ext4/file.c:277
 ext4_file_write_iter+0x2e3/0x1210
 do_iter_write+0x494/0x750 fs/read_write.c:861
 vfs_iter_write+0x4c/0x70 fs/read_write.c:902
 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:686
 do_splice_from fs/splice.c:764 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:931
 splice_direct_to_actor+0x305/0x620 fs/splice.c:886
 do_splice_direct+0xfb/0x180 fs/splice.c:974
 do_sendfile+0x3bf/0x910 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1317 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0xb9/0x150 fs/read_write.c:1309
 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+0x63/0xcd

value changed: 0x08000021 -> 0x10000021

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 4266 Comm: syz-executor.0 Not tainted 6.0.0-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================

Crashes (202):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/10/03 16:40 upstream 4fe89d07dcc2 feb56351 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/10/02 20:36 upstream b357fd1c2afc feb56351 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/10/01 15:10 upstream ffb4d94b4314 feb56351 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/10/01 02:15 upstream 70575e77839f feb56351 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/30 10:59 upstream 987a926c1d8a 45fd7169 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/29 13:09 upstream c3e0e1e23c70 a41a2080 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/28 21:44 upstream 49c13ed0316d a41a2080 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/28 04:47 upstream 46452d3786a8 75c78242 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/27 07:30 upstream 3800a713b607 10323ddf .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/26 08:29 upstream f76349cf4145 d59ba983 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/25 18:21 upstream 1a61b828566f 0042f2b4 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/24 10:18 upstream a63f2e7cb110 0042f2b4 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/23 19:26 upstream bf682942cd26 0042f2b4 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/22 07:49 upstream 06f7db949993 60af5050 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/20 21:10 upstream 60891ec99e14 c4b8ccfd .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/20 08:39 upstream 521a547ced64 7c41a9ba .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/18 17:41 upstream 38eddeedbbea dd9a85ff .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/17 05:53 upstream a335366bad13 dd9a85ff .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/16 17:59 upstream 6879c2d3b960 dd9a85ff .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/15 07:38 upstream 3245cb65fd91 dd9a85ff .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/15 01:28 upstream 3245cb65fd91 b884348d .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/13 20:11 upstream d1221cea11fc b884348d .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/13 16:27 upstream d1221cea11fc a08652b0 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/12 10:21 upstream 80e78fcce86d 356d8217 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/10 18:28 upstream b96fbd602d35 356d8217 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/10 01:14 upstream ce888220d5c7 356d8217 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/09 13:58 upstream 9b4509495418 90058bdc .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/09 09:01 upstream 506357871c18 f3027468 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/08 18:38 upstream 26b1224903b3 f3027468 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/07 18:13 upstream 0066f1b0e275 c5b7bc57 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/06 12:12 upstream 53e99dcff61e 65aea2b9 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/05 02:58 upstream 7e18e42e4b28 28811d0a .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/04 07:22 upstream 7726d4c3e60b 28811d0a .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/09/01 15:12 upstream c5e4d5e99162 86c46e46 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/08/31 18:50 upstream c5e4d5e99162 51e54e30 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/08/29 21:52 upstream b90cb1053190 d7593c58 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/08/28 08:35 upstream 10d4879f9ef0 07177916 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/08/27 01:58 upstream e022620b5d05 07177916 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/08/26 22:33 upstream 4c612826bec1 e5a303f1 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/08/24 03:38 upstream df0219d11b6f cea8b0f7 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/08/22 11:29 upstream 1c23f9e627a7 26a13b38 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/08/21 17:10 upstream 15b3f48a4339 26a13b38 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
ci2-upstream-kcsan-gce 2022/08/20 04:22 upstream 50cd95ac4654 26a13b38 .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/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/04/06 11:04 upstream 3e732ebf7316 86b4b7f8 .config log report info KCSAN: data-race in filemap_fdatawrite_wbc / xas_set_mark
* Struck through repros no longer work on HEAD.