syzbot


KCSAN: data-race in ext4_writepages / xas_set_mark

Status: auto-closed as invalid on 2022/01/15 22:54
Reported-by: syzbot+4a9201832b13e7cf72cc@syzkaller.appspotmail.com
First crash: 1134d, last: 354d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_writepages / xas_set_mark (2) 2 300d 301d 0/24 auto-closed as invalid on 2022/03/10 00:13
upstream KCSAN: data-race in ext4_writepages / xas_set_mark (3) 1 205d 205d 0/24 closed as invalid on 2022/05/13 11:20

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

write to 0xffff88813749c7fc of 4 bytes by task 11109 on cpu 0:
 xa_mark_set lib/xarray.c:69 [inline]
 xas_set_mark+0x11e/0x130 lib/xarray.c:889
 __folio_start_writeback+0x210/0x490 mm/page-writeback.c:2868
 set_page_writeback+0x39/0x50 mm/folio-compat.c:77
 ext4_bio_write_page+0x132/0xaa0 fs/ext4/page-io.c:455
 mpage_submit_page fs/ext4/inode.c:2095 [inline]
 mpage_process_page_bufs+0x437/0x560 fs/ext4/inode.c:2209
 mpage_prepare_extent_to_map+0x4f6/0x650 fs/ext4/inode.c:2621
 ext4_writepages+0x766/0x1e80 fs/ext4/inode.c:2749
 do_writepages+0x1cb/0x330 mm/page-writeback.c:2364
 filemap_fdatawrite_wbc mm/filemap.c:407 [inline]
 __filemap_fdatawrite_range mm/filemap.c:440 [inline]
 file_write_and_wait_range+0x132/0x1d0 mm/filemap.c:824
 ext4_sync_file+0x105/0x6e0 fs/ext4/fsync.c:151
 vfs_fsync_range+0x107/0x120 fs/sync.c:182
 generic_write_sync include/linux/fs.h:2955 [inline]
 ext4_buffered_write_iter+0x322/0x380 fs/ext4/file.c:277
 ext4_file_write_iter+0x2e7/0x1200
 call_write_iter include/linux/fs.h:2162 [inline]
 do_iter_readv_writev+0x2de/0x380 fs/read_write.c:725
 do_iter_write+0x192/0x5c0 fs/read_write.c:851
 vfs_iter_write+0x4c/0x70 fs/read_write.c:892
 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:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1296
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88813749c7fc of 4 bytes by task 11105 on cpu 1:
 xa_marked include/linux/xarray.h:418 [inline]
 mapping_tagged include/linux/fs.h:493 [inline]
 ext4_writepages+0x192/0x1e80 fs/ext4/inode.c:2663
 do_writepages+0x1cb/0x330 mm/page-writeback.c:2364
 filemap_fdatawrite_wbc mm/filemap.c:407 [inline]
 __filemap_fdatawrite_range mm/filemap.c:440 [inline]
 filemap_write_and_wait_range+0x1b2/0x340 mm/filemap.c:718
 __iomap_dio_rw+0x4bb/0x1070 fs/iomap/direct-io.c:560
 iomap_dio_rw+0x38/0x80 fs/iomap/direct-io.c:679
 ext4_dio_write_iter fs/ext4/file.c:568 [inline]
 ext4_file_write_iter+0xa72/0x1200 fs/ext4/file.c:679
 call_write_iter include/linux/fs.h:2162 [inline]
 do_iter_readv_writev+0x2de/0x380 fs/read_write.c:725
 do_iter_write+0x192/0x5c0 fs/read_write.c:851
 vfs_iter_write+0x4c/0x70 fs/read_write.c:892
 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:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1296
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0a000021 -> 0x04000021

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 11105 Comm: syz-executor.3 Not tainted 5.16.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (518):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/11 22:53 upstream 6f513529296f 49ca1f59 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/12/08 01:04 upstream 2a987e65025e 0230ba3e .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/12/05 20:05 upstream 944207047ca4 a617004c .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/12/05 07:19 upstream 79a72162048e a617004c .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/12/01 15:01 upstream 58e1100fdc59 5fa3eacc .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/11/20 18:29 upstream a90af8f15bdc 4eb20a4e .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/11/15 22:51 upstream 8ab774587903 75b04091 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/11/14 23:13 upstream ce49bfc8d037 75b04091 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/11/13 20:27 upstream a9b9669d9822 75b04091 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/11/09 14:37 upstream d2f38a3c6507 59bcaf9a .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/11/06 22:39 upstream 512b7931ad05 4c1be0be .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/11/05 11:27 upstream d4439a1189f9 4c1be0be .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/26 10:33 upstream 87066fdd2e30 c1132b49 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/19 21:59 upstream d9abdee5fd5a 466b7db1 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/19 16:42 upstream d9abdee5fd5a 24dc29db .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/14 18:02 upstream 26d657410983 5462d470 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/13 09:03 upstream f4d0cc426f77 9d56e7dd .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/12 14:12 upstream fa5878760579 08362356 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/12 01:41 upstream fa5878760579 838e7e2c .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/11 18:57 upstream 64570fbc14f8 838e7e2c .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/10 00:08 upstream 5d6ab0bb408f 838e7e2c .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/08 20:24 upstream 741668ef7832 efe0f24d .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/07 02:45 upstream 5af4055fa813 62ee0987 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/06 18:25 upstream 60a9483534ed 62ee0987 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/06 00:59 upstream 60a9483534ed 0a63fd36 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/05 07:47 upstream 84b3e42564ac ce697b49 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/03 23:15 upstream 6761a0ae9895 db0f5787 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/03 15:35 upstream 7b66f4393ad4 db0f5787 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/02 17:12 upstream 53d5fc89d66a db0f5787 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/01 15:22 upstream 4de593fb965f cc80db95 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/30 10:53 upstream 02d5e016800d be530f6c .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/21 12:38 upstream d9fb678414c0 169724fe .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/18 21:17 upstream 93ff9f13be91 70b76c1d .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/16 17:38 upstream ff1ffd71d5f0 aae492f2 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/15 20:58 upstream 80be5998ad63 07e953c1 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/12 16:44 upstream 78e709522d2c 3ce60af8 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/12 00:41 upstream c605c39677b9 3ce60af8 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/10 17:29 upstream bf9f243f23e6 5ae8508a .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/08 00:16 upstream 0bcfe68b8767 064c9eb7 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/07 20:00 upstream 0bcfe68b8767 6ca60148 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/03 05:27 upstream 7ba88a2a09f4 f62a5829 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/02 03:03 upstream 835d31d319d9 7eb7e152 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/08/30 10:55 upstream 7d2a07b76933 8f58a0ef .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/08/27 19:18 upstream 1a6436f37512 57b01c6e .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/08/26 07:41 upstream fe67f4dd8daa b599f2fc .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/08/18 11:54 upstream 614cb2751d31 a2fe1cb5 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/08/14 17:21 upstream ba31f97d43be 2489ab88 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/08/13 04:02 upstream f8e6dfc64f61 3fd2ea69 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/08/10 09:09 upstream 9a73fa375d58 6972b106 .config log report info KCSAN: data-race in ext4_writepages / xas_set_mark
ci2-upstream-kcsan-gce 2021/01/16 07:08 upstream 1d94330a437a 65a7a854 .config log report info
ci2-upstream-kcsan-gce 2020/02/16 22:31 https://github.com/google/ktsan.git kcsan b12d66a6c34f cf914200 .config log report
ci2-upstream-kcsan-gce 2020/02/12 23:45 https://github.com/google/ktsan.git kcsan f60f0f543333 84f4fc8a .config log report
ci2-upstream-kcsan-gce 2019/10/23 05:44 https://github.com/google/ktsan.git kcsan 05f2236801fe d0686497 .config log report
* Struck through repros no longer work on HEAD.