syzbot


KCSAN: data-race in file_write_and_wait_range / xas_set_mark

Status: auto-closed as invalid on 2022/05/10 17:35
Reported-by: syzbot+e6bdfe3f2f86bdca117d@syzkaller.appspotmail.com
First crash: 486d, last: 131d

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

write to 0xffff8881245673dc of 4 bytes by task 29575 on cpu 1:
 xa_mark_set lib/xarray.c:69 [inline]
 xas_set_mark+0x11e/0x130 lib/xarray.c:891
 __folio_start_writeback+0x2c7/0x5f0 mm/page-writeback.c:2856
 set_page_writeback+0x3d/0xe0 mm/folio-compat.c:78
 ext4_bio_write_page+0xfd/0x860 fs/ext4/page-io.c:449
 mpage_submit_page fs/ext4/inode.c:2090 [inline]
 mpage_process_page_bufs+0x315/0x3d0 fs/ext4/inode.c:2204
 mpage_prepare_extent_to_map+0x480/0x8b0 fs/ext4/inode.c:2630
 ext4_writepages+0x5d6/0x1a60 fs/ext4/inode.c:2758
 do_writepages+0x1cb/0x330 mm/page-writeback.c:2352
 filemap_fdatawrite_wbc mm/filemap.c:388 [inline]
 __filemap_fdatawrite_range mm/filemap.c:421 [inline]
 file_write_and_wait_range+0x134/0x1d0 mm/filemap.c:779
 ext4_sync_file+0xad/0x570 fs/ext4/fsync.c:151
 vfs_fsync_range+0x107/0x120 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2732 [inline]
 ext4_buffered_write_iter+0x23f/0x280 fs/ext4/file.c:277
 ext4_file_write_iter+0x21a/0xd70
 call_write_iter include/linux/fs.h:2050 [inline]
 do_iter_readv_writev+0x27d/0x320 fs/read_write.c:726
 do_iter_write+0x192/0x5c0 fs/read_write.c:852
 vfs_iter_write+0x4c/0x70 fs/read_write.c:893
 iter_file_splice_write+0x43a/0x790 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/0x650 fs/splice.c:891
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 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/0x140 fs/read_write.c:1297
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x50 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881245673dc of 4 bytes by task 29587 on cpu 0:
 xa_marked include/linux/xarray.h:419 [inline]
 mapping_tagged include/linux/fs.h:458 [inline]
 filemap_fdatawrite_wbc mm/filemap.c:384 [inline]
 __filemap_fdatawrite_range mm/filemap.c:421 [inline]
 file_write_and_wait_range+0x101/0x1d0 mm/filemap.c:779
 ext4_sync_file+0xad/0x570 fs/ext4/fsync.c:151
 vfs_fsync_range+0x107/0x120 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2732 [inline]
 ext4_buffered_write_iter+0x23f/0x280 fs/ext4/file.c:277
 ext4_file_write_iter+0x21a/0xd70
 call_write_iter include/linux/fs.h:2050 [inline]
 do_iter_readv_writev+0x27d/0x320 fs/read_write.c:726
 do_iter_write+0x192/0x5c0 fs/read_write.c:852
 vfs_iter_write+0x4c/0x70 fs/read_write.c:893
 iter_file_splice_write+0x43a/0x790 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/0x650 fs/splice.c:891
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 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+0x102/0x140 fs/read_write.c:1297
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x50 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x28000021 -> 0x10000021

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

Crashes (183):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/04/05 17:35 upstream ce4c854ee868 0127c10f .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/05 15:55 upstream 312310928417 0127c10f .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/04 16:41 upstream 312310928417 5915c2cb .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/04 03:42 upstream 09bb8856d4a7 79a2a8fc .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/02 22:30 upstream be2d3ecedd99 79a2a8fc .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/04/01 21:57 upstream d0d642a5d365 79a2a8fc .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/31 13:05 upstream 787af64d05cd c4c32d8c .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/31 02:53 upstream 74164d284b29 9d49f3a7 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/30 14:54 upstream d888c83fcec7 42718dd6 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/29 12:05 upstream 1930a6e739c4 6bdac766 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/28 22:35 upstream ae085d7f9365 6bdac766 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/27 11:26 upstream f022814633e1 89bc8608 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/26 22:12 upstream bddac7c1e02b 89bc8608 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/24 12:50 upstream ed4643521e6a 89bc8608 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/23 03:08 upstream 3bf03b9a0839 5ff41e94 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/21 07:35 upstream f443e374ae13 e2d91b1d .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/20 18:25 upstream 14702b3b2438 e2d91b1d .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/20 14:07 upstream 97e9c8eb4bb1 e2d91b1d .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/19 05:13 upstream 34e047aa16c0 e2d91b1d .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/18 01:44 upstream 551acdc3c3d2 e2d91b1d .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/15 18:25 upstream 56e337f2cf13 9e8eaa75 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/14 17:54 upstream 09688c0166e7 9e8eaa75 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/13 02:09 upstream aad611a868d1 9e8eaa75 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/12 07:41 upstream 68453767131a 9e8eaa75 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/11 16:07 upstream 79b00034e9dc 9e8eaa75 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/10 18:31 upstream 1db333d9a51f 9e8eaa75 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/09 16:24 upstream 330f4c53d3c2 9e8eaa75 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/07 21:49 upstream ea4424be1688 7bdd8b2c .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/06 23:59 upstream ffb217a13a2e 7bdd8b2c .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/06 15:57 upstream dcde98da9970 7bdd8b2c .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/05 21:00 upstream 0014404f9c18 7bdd8b2c .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/05 18:11 upstream ac84e82f78cb 7bdd8b2c .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/05 11:58 upstream ac84e82f78cb 45a13a73 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/04 01:39 upstream 38f80f42147f 45a13a73 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/03 15:05 upstream 5859a2b19911 45a13a73 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/03 00:27 upstream 92ebf5f91b4d 45a13a73 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/02 10:07 upstream fb184c4af9b9 45a13a73 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/02 02:18 upstream 575115360652 45a13a73 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/01 00:40 upstream 719fce7539cd 45a13a73 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/02/28 10:59 upstream 7e57714cd0ad 45a13a73 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/02/28 00:50 upstream 52a025546731 45a13a73 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/02/25 22:47 upstream c47658311d60 45a13a73 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/02/25 04:48 upstream 53ab78cd6d5a 7c337266 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/02/24 20:56 upstream 73878e5eb1bd b28851a4 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/08/23 22:29 upstream e22ce8eb631b b599f2fc .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/04/15 16:43 upstream 7f75285ca572 c59079a6 .config log report info KCSAN: data-race in file_write_and_wait_range / xas_set_mark