syzbot


KCSAN: data-race in __writeback_single_inode / xas_set_mark (6)

Status: moderation: reported on 2024/05/07 08:53
Subsystems: fs mm
[Documentation on labels]
Reported-by: syzbot+40d7ce09fc0205cdd588@syzkaller.appspotmail.com
First crash: 124d, last: 2d16h
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __writeback_single_inode / xas_set_mark (5) fs mm 2 168d 200d 0/27 auto-obsoleted due to no activity on 2024/04/28 10:15
upstream KCSAN: data-race in __writeback_single_inode / xas_set_mark ext4 39 1544d 1781d 0/27 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __writeback_single_inode / xas_set_mark (3) fs mm 115 412d 940d 0/27 auto-obsoleted due to no activity on 2023/08/28 03:40
upstream KCSAN: data-race in __writeback_single_inode / xas_set_mark (2) fs mm 238 991d 1438d 0/27 auto-closed as invalid on 2022/01/26 09:38
upstream KCSAN: data-race in __writeback_single_inode / xas_set_mark (4) fs mm 10 241d 273d 0/27 auto-obsoleted due to no activity on 2024/02/15 01:09

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

write to 0xffff888106aaeff4 of 4 bytes by task 4446 on cpu 1:
 xa_mark_set lib/xarray.c:71 [inline]
 xas_set_mark+0x131/0x150 lib/xarray.c:893
 __folio_start_writeback+0x1f1/0x450 mm/page-writeback.c:3135
 ext4_bio_write_folio+0x58b/0x9a0 fs/ext4/page-io.c:554
 mpage_submit_folio fs/ext4/inode.c:1943 [inline]
 mpage_process_page_bufs+0x486/0x5d0 fs/ext4/inode.c:2056
 mpage_prepare_extent_to_map+0x788/0xb80 fs/ext4/inode.c:2564
 ext4_do_writepages+0xa20/0x2110 fs/ext4/inode.c:2751
 ext4_writepages+0x159/0x2e0 fs/ext4/inode.c:2842
 do_writepages+0x1d8/0x480 mm/page-writeback.c:2683
 filemap_fdatawrite_wbc+0xdb/0x100 mm/filemap.c:397
 __filemap_fdatawrite_range mm/filemap.c:430 [inline]
 file_write_and_wait_range+0xc8/0x170 mm/filemap.c:788
 generic_buffers_fsync_noflush+0x4c/0x130 fs/buffer.c:600
 ext4_fsync_nojournal fs/ext4/fsync.c:88 [inline]
 ext4_sync_file+0x20b/0x6c0 fs/ext4/fsync.c:151
 vfs_fsync_range+0x122/0x140 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2822 [inline]
 ext4_buffered_write_iter+0x338/0x380 fs/ext4/file.c:305
 ext4_file_write_iter+0x29f/0xe30
 iter_file_splice_write+0x5e6/0x970 fs/splice.c:743
 do_splice_from fs/splice.c:941 [inline]
 direct_splice_actor+0x16c/0x2c0 fs/splice.c:1164
 splice_direct_to_actor+0x305/0x670 fs/splice.c:1108
 do_splice_direct_actor fs/splice.c:1207 [inline]
 do_splice_direct+0xd7/0x150 fs/splice.c:1233
 do_sendfile+0x3ab/0x950 fs/read_write.c:1295
 __do_sys_sendfile64 fs/read_write.c:1362 [inline]
 __se_sys_sendfile64 fs/read_write.c:1348 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1348
 x64_sys_call+0xed5/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:41
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888106aaeff4 of 4 bytes by task 4451 on cpu 0:
 xa_marked include/linux/xarray.h:424 [inline]
 mapping_tagged include/linux/fs.h:503 [inline]
 __writeback_single_inode+0x21d/0x870 fs/fs-writeback.c:1702
 writeback_single_inode+0x12f/0x4a0 fs/fs-writeback.c:1772
 sync_inode_metadata+0x5c/0x90 fs/fs-writeback.c:2842
 generic_buffers_fsync_noflush+0xe4/0x130 fs/buffer.c:610
 ext4_fsync_nojournal fs/ext4/fsync.c:88 [inline]
 ext4_sync_file+0x20b/0x6c0 fs/ext4/fsync.c:151
 vfs_fsync_range+0x122/0x140 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2822 [inline]
 ext4_buffered_write_iter+0x338/0x380 fs/ext4/file.c:305
 ext4_file_write_iter+0x29f/0xe30
 iter_file_splice_write+0x5e6/0x970 fs/splice.c:743
 do_splice_from fs/splice.c:941 [inline]
 direct_splice_actor+0x16c/0x2c0 fs/splice.c:1164
 splice_direct_to_actor+0x305/0x670 fs/splice.c:1108
 do_splice_direct_actor fs/splice.c:1207 [inline]
 do_splice_direct+0xd7/0x150 fs/splice.c:1233
 do_sendfile+0x3ab/0x950 fs/read_write.c:1295
 __do_sys_sendfile64 fs/read_write.c:1362 [inline]
 __se_sys_sendfile64 fs/read_write.c:1348 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1348
 x64_sys_call+0xed5/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:41
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0a000021 -> 0x04000021

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 4451 Comm: syz.1.181 Not tainted 6.11.0-rc6-syzkaller-00075-gad618736883b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
==================================================================
syz.1.181 (4451) used greatest stack depth: 10728 bytes left

Crashes (53):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/06 00:19 upstream ad618736883b 464ac2ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/09/05 01:24 upstream c7fb1692dc01 dfbe2ed4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/09/04 07:03 upstream 88fac17500f4 9d47f20a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/09/03 19:37 upstream 67784a74e258 326f9c5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/09/02 01:38 upstream c9f016e72b5c 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/09/01 04:56 upstream e8784b0aef62 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/31 09:57 upstream 1934261d8974 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/30 21:26 upstream 20371ba12063 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/30 06:38 upstream 20371ba12063 ee2602b8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/29 06:10 upstream 928f79a188aa ef3de9e8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/28 23:54 upstream 86987d84b968 ef3de9e8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/27 07:20 upstream 3e9bff3bbe13 9aee4e0b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/26 03:00 upstream 5be63fc19fca d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/25 05:40 upstream 780bdc1ba776 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/24 16:49 upstream d2bafcf224f3 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/23 05:00 upstream aa0743a22936 ce8a9099 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/22 04:44 upstream 872cf28b8df9 ca02180f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/21 12:04 upstream b311c1b497e5 db5852f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/21 06:16 upstream b311c1b497e5 9f0ab3fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/19 11:51 upstream 47ac09b91bef 9f0ab3fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/19 03:07 upstream c3f2d783a459 dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/16 19:16 upstream d7a5aa4b3c00 e1c76ab2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/14 09:24 upstream 6b0f8db921ab 07a4d4ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/12 17:43 upstream 7c626ce4bae1 842184b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/08 15:45 upstream 6a0e38264012 61405512 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/06 22:15 upstream eb5e56d14912 1ef9fe42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/05 10:26 upstream de9c2c66ad8e e35c337f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/05 05:37 upstream a5dbd76a8942 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/04 07:18 upstream defaf1a2113a 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/03 19:50 upstream 17712b7ea075 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/03 00:03 upstream 1c4246294c98 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/02 20:52 upstream 1c4246294c98 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/02 07:29 upstream c0ecd6388360 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/08/01 20:51 upstream 183d46ff422e 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/07/31 14:53 upstream e4fc196f5ba3 6fde257d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/07/31 08:40 upstream 22f546873149 6fde257d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/07/27 23:01 upstream ff30564411ff 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/07/27 15:16 upstream 3a7e02c040b1 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/07/25 08:59 upstream c33ffdb70cc6 d1a1b0ca .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/07/24 06:16 upstream 786c8248dbd3 57b2edb1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/07/24 00:18 upstream 28bbe4ea686a e50e8da5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/07/12 10:23 upstream 43db1e03c086 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/07/09 03:41 upstream 4376e966ecb7 bc23a442 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/06/27 14:14 upstream afcd48134c58 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/06/26 12:43 upstream 55027e689933 c6d33a01 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/06/24 20:16 upstream 626737a5791b 215eef4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/06/20 14:37 upstream e5b3efbe1ab1 dac2aa43 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/06/18 14:32 upstream 14d7c92f8df9 639d6cdf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/05/21 02:49 upstream daa121128a2d c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/05/19 03:04 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/05/19 00:58 upstream 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2024/05/07 08:52 upstream dccb07f2914c fa7a5cf0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
* Struck through repros no longer work on HEAD.