syzbot


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

Status: auto-obsoleted due to no activity on 2023/08/28 03:40
Subsystems: fs mm
[Documentation on labels]
First crash: 886d, last: 358d
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 114d 146d 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 1490d 1726d 0/27 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __writeback_single_inode / xas_set_mark (6) fs mm 11 4d04h 70d 0/27 moderation: reported on 2024/05/07 08:53
upstream KCSAN: data-race in __writeback_single_inode / xas_set_mark (2) fs mm 238 937d 1384d 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 187d 219d 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 0xffff88810ae81144 of 4 bytes by task 18073 on cpu 1:
 xa_mark_set lib/xarray.c:71 [inline]
 xas_set_mark+0x131/0x140 lib/xarray.c:892
 __folio_start_writeback+0x23f/0x4b0 mm/page-writeback.c:3032
 __block_write_full_folio+0x510/0x8b0 fs/buffer.c:1923
 block_write_full_page+0x302/0x3c0
 __mpage_writepage+0x761/0xdb0 fs/mpage.c:652
 write_cache_pages+0x39d/0x750 mm/page-writeback.c:2474
 mpage_writepages+0x72/0xe0 fs/mpage.c:679
 fat_writepages+0x24/0x30 fs/fat/inode.c:200
 do_writepages+0x1c5/0x340 mm/page-writeback.c:2553
 filemap_fdatawrite_wbc+0xdb/0xf0 mm/filemap.c:393
 __filemap_fdatawrite_range mm/filemap.c:426 [inline]
 file_write_and_wait_range+0xfa/0x190 mm/filemap.c:784
 __generic_file_fsync+0x4c/0x140 fs/libfs.c:1127
 fat_file_fsync+0x4c/0x100 fs/fat/file.c:191
 vfs_fsync_range+0x111/0x120 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2493 [inline]
 generic_file_write_iter+0x191/0x1c0 mm/filemap.c:4048
 do_iter_write+0x4b4/0x7b0 fs/read_write.c:860
 vfs_iter_write+0x56/0x70 fs/read_write.c:901
 iter_file_splice_write+0x462/0x7e0 fs/splice.c:739
 do_splice_from fs/splice.c:934 [inline]
 direct_splice_actor+0x8a/0xb0 fs/splice.c:1143
 splice_direct_to_actor+0x31d/0x690 fs/splice.c:1089
 do_splice_direct+0x10d/0x190 fs/splice.c:1195
 do_sendfile+0x3b6/0x9a0 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1322 [inline]
 __se_sys_sendfile64 fs/read_write.c:1308 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88810ae81144 of 4 bytes by task 18074 on cpu 0:
 xa_marked include/linux/xarray.h:420 [inline]
 mapping_tagged include/linux/fs.h:476 [inline]
 __writeback_single_inode+0x21d/0x860 fs/fs-writeback.c:1654
 writeback_single_inode+0x12f/0x4a0 fs/fs-writeback.c:1724
 sync_inode_metadata+0x56/0x80 fs/fs-writeback.c:2786
 __generic_file_fsync+0xf9/0x140 fs/libfs.c:1138
 fat_file_fsync+0x4c/0x100 fs/fat/file.c:191
 vfs_fsync_range+0x111/0x120 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2493 [inline]
 generic_file_write_iter+0x191/0x1c0 mm/filemap.c:4048
 do_iter_write+0x4b4/0x7b0 fs/read_write.c:860
 vfs_iter_write+0x56/0x70 fs/read_write.c:901
 iter_file_splice_write+0x462/0x7e0 fs/splice.c:739
 do_splice_from fs/splice.c:934 [inline]
 direct_splice_actor+0x8a/0xb0 fs/splice.c:1143
 splice_direct_to_actor+0x31d/0x690 fs/splice.c:1089
 do_splice_direct+0x10d/0x190 fs/splice.c:1195
 do_sendfile+0x3b6/0x9a0 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1322 [inline]
 __se_sys_sendfile64 fs/read_write.c:1308 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x14000021 -> 0x08000021

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 18074 Comm: syz-executor.3 Not tainted 6.5.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
==================================================================

Crashes (115):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/24 03:32 upstream 6eaae1980760 27cbe77f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/07/09 01:33 upstream 8fc3b8f082cc 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/07/08 03:14 upstream 5133c9e51de4 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/07/06 14:37 upstream c17414a273b8 1a2f6297 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/06/21 12:55 upstream e660abd551f1 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/06/20 22:30 upstream 99ec1ed7c2ed 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/06/18 19:41 upstream 8c1f0c38b310 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/06/17 20:33 upstream 1b29d271614a f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/06/16 12:16 upstream 62d8779610bb f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/05/29 07:25 upstream 7877cb91f108 cf184559 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/05/26 01:34 upstream 9db898594c54 0513b3e6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/05/11 22:25 upstream 105131df9c3b adb9a3cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/05/10 01:30 upstream 1dc3731daf1f 30aa2a7e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/05/07 22:28 upstream 17784de648be 90c93c40 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/05/02 22:42 upstream 7df047b3f0aa 48e0a81d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/04/21 06:48 upstream 6a66fdd29ea1 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/04/01 02:28 upstream 5a57b48fdfcb f325deb0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/03/29 12:23 upstream fcd476ea6a88 f325deb0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/03/28 00:20 upstream 3a93e40326c8 47f3aaf1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/02/25 17:06 upstream 489fa31ea873 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/02/25 06:25 upstream 8cbd92339db0 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/02/24 16:48 upstream d2980d8d8265 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/02/20 22:31 upstream 91bc559d8d3a 2414209c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/02/19 00:09 upstream 5e725d112e1a bcdf85f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/02/18 09:47 upstream 38f8ccde04a3 d02e9a70 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/02/17 16:58 upstream ec35307e18ba cf8c2d39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/02/17 11:28 upstream ec35307e18ba 3e7039f4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/02/14 15:51 upstream f6feea56f66d 93ae7e0a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/02/12 23:03 upstream ceaa837f96ad 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/02/10 14:53 upstream 38c1e0c65865 e29a17f5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/02/09 22:15 upstream 35674e787518 07980f9d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/02/07 13:50 upstream 05ecb680708a 5bc3be51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/02/06 03:21 upstream 4ec5183ec486 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/02/04 21:19 upstream db27c22251e7 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/02/03 03:08 upstream e7368fd30165 33fc5c09 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/02/02 04:33 upstream 9f266ccaa2f5 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/01/29 02:19 upstream c96618275234 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/01/27 13:07 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/01/25 17:43 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/01/25 05:56 upstream fb6e71db53f3 9dfcf09c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/01/23 22:02 upstream 7bf70dbb1882 9dfcf09c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/01/23 15:38 upstream 2475bf0250de 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/01/23 11:32 upstream 2475bf0250de 44388686 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/01/23 02:32 upstream 2475bf0250de cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/01/19 22:22 upstream 081edded9b38 71197f3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/01/19 00:24 upstream c1649ec55708 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2023/01/16 07:05 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
2022/02/11 03:58 upstream f1baf68e1383 0b33604d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / xas_set_mark
* Struck through repros no longer work on HEAD.