syzbot


KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark

Status: auto-closed as invalid on 2022/05/06 12:50
Reported-by: syzbot+1ce22474fa58cb890597@syzkaller.appspotmail.com
First crash: 486d, last: 135d

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

write to 0xffff888137b40c5c of 4 bytes by task 19492 on cpu 0:
 xa_mark_set lib/xarray.c:69 [inline]
 xas_set_mark+0x11e/0x130 lib/xarray.c:889
 tag_pages_for_writeback+0xad/0x2a0 mm/page-writeback.c:2121
 ext4_writepages+0x593/0x1a60 fs/ext4/inode.c:2742
 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]
 filemap_write_and_wait_range+0x1b4/0x340 mm/filemap.c:673
 __iomap_dio_rw+0x4f6/0x10a0 fs/iomap/direct-io.c:562
 iomap_dio_rw+0x38/0x80 fs/iomap/direct-io.c:681
 ext4_dio_read_iter fs/ext4/file.c:79 [inline]
 ext4_file_read_iter+0x19c/0x200 fs/ext4/file.c:130
 call_read_iter include/linux/fs.h:2073 [inline]
 generic_file_splice_read+0x1de/0x2c0 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:870
 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

read to 0xffff888137b40c5c of 4 bytes by task 19486 on cpu 1:
 xa_marked include/linux/xarray.h:418 [inline]
 mapping_tagged include/linux/fs.h:487 [inline]
 filemap_fdatawrite_wbc mm/filemap.c:384 [inline]
 __filemap_fdatawrite_range mm/filemap.c:421 [inline]
 filemap_write_and_wait_range+0x104/0x340 mm/filemap.c:673
 __iomap_dio_rw+0x4f6/0x10a0 fs/iomap/direct-io.c:562
 iomap_dio_rw+0x38/0x80 fs/iomap/direct-io.c:681
 ext4_dio_read_iter fs/ext4/file.c:79 [inline]
 ext4_file_read_iter+0x19c/0x200 fs/ext4/file.c:130
 call_read_iter include/linux/fs.h:2073 [inline]
 generic_file_splice_read+0x1de/0x2c0 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:870
 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: 0x01000021 -> 0x07000021

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 19486 Comm: syz-executor.5 Not tainted 5.17.0-syzkaller-13673-ge8b767f5e040-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (143):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/04/01 12:49 upstream e8b767f5e040 68fc921a .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/26 08:41 upstream 52d543b5497c 89bc8608 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/03/25 05:06 upstream 52deda9551a0 89bc8608 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/02/21 15:38 upstream cfb92440ee71 3cd800e4 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/02/14 04:51 upstream 42964a18f81c 8b9ca619 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/02/04 19:37 upstream dcb85f85fa6f a3e470b2 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/01/30 03:42 upstream f8c7e4ede46f 495e00c5 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/01/25 21:35 upstream 49d766f3a0e4 2cbffd88 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2022/01/24 11:16 upstream dd81e1c7d5fb 214351e1 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/12/25 02:36 upstream b927dfc67d05 6caa12e4 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/12/12 09:10 upstream a763d5a5abd6 49ca1f59 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/12/11 14:01 upstream 9e65da135b39 49ca1f59 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/11/23 01:08 upstream 136057256686 545ab074 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/11/06 02:58 upstream fe91c4725aee 4c1be0be .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/11/01 11:54 upstream 8bb7eca972ad 098b5d53 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/31 16:24 upstream 180eca540ae0 098b5d53 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/26 08:57 upstream 87066fdd2e30 c1132b49 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/25 15:05 upstream 6c62666d8879 4f0000ee .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/23 18:59 upstream 9c0c4d24ac00 282f03fb .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/19 21:14 upstream d9abdee5fd5a 466b7db1 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/12 22:41 upstream f4d0cc426f77 08362356 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/11 07:17 upstream 64570fbc14f8 838e7e2c .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/09 17:50 upstream 5d6ab0bb408f 838e7e2c .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/08 19:14 upstream 1da38549dd64 efe0f24d .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/07 16:27 upstream 5af4055fa813 efe0f24d .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/07 03:05 upstream 5af4055fa813 62ee0987 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/06 22:02 upstream 60a9483534ed 62ee0987 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/04 22:12 upstream 84b3e42564ac ce697b49 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/03 08:48 upstream 7b66f4393ad4 db0f5787 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/03 05:46 upstream ab2a7a35c4e7 db0f5787 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/01 15:36 upstream 4de593fb965f cc80db95 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/30 22:58 upstream 4de593fb965f 0f01403d .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/30 19:08 upstream 02d5e016800d 0f01403d .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/27 16:32 upstream 5816b3e6577e 78494d16 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/27 01:58 upstream 996148ee05d0 78494d16 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/24 23:28 upstream f9e36107ec70 8cac236e .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/23 02:37 upstream cf1d2c3e7e2f 8cac236e .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/22 15:27 upstream 92477dd1faa6 8cac236e .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/22 03:29 upstream 92477dd1faa6 169724fe .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/21 21:29 upstream d9fb678414c0 169724fe .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/21 11:36 upstream d9fb678414c0 af796c18 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/21 09:32 upstream e8f71f89236e af796c18 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/20 08:41 upstream e4e737bb5c17 3d9c9a2a .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/19 21:46 upstream d4d016caa4b8 70b76c1d .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/06/24 22:33 upstream 4a09d388f2ab 0edbbe31 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark
ci2-upstream-kcsan-gce 2021/04/15 20:19 upstream 7f75285ca572 c59079a6 .config log report info KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark