syzbot


KCSAN: data-race in __writeback_single_inode / xas_set_mark (2)
Status: auto-closed as invalid on 2022/01/26 09:38
Reported-by: syzbot+97eeccf4d8f23c24c6ac@syzkaller.appspotmail.com
First crash: 699d, last: 156d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __writeback_single_inode / xas_set_mark 39 709d 946d 0/22 closed as invalid on 2020/06/18 14:24

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

write to 0xffff88811891de3c of 4 bytes by task 4325 on cpu 1:
 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:2133
 write_cache_pages+0x1a8/0x7f0 mm/page-writeback.c:2203
 mpage_writepages+0x7f/0x130 fs/mpage.c:712
 fat_writepages+0x20/0x30 fs/fat/inode.c:205
 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
 __generic_file_fsync+0x48/0x140 fs/libfs.c:1115
 fat_file_fsync+0x48/0x100 fs/fat/file.c:190
 vfs_fsync_range+0x107/0x120 fs/sync.c:182
 generic_write_sync include/linux/fs.h:2955 [inline]
 generic_file_write_iter+0x103/0x130 mm/filemap.c:3917
 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 0xffff88811891de3c of 4 bytes by task 4321 on cpu 0:
 xa_marked include/linux/xarray.h:418 [inline]
 mapping_tagged include/linux/fs.h:493 [inline]
 __writeback_single_inode+0x209/0x4d0 fs/fs-writeback.c:1667
 writeback_single_inode+0x11f/0x3d0 fs/fs-writeback.c:1729
 sync_inode_metadata+0x57/0x80 fs/fs-writeback.c:2749
 __generic_file_fsync+0xf5/0x140 fs/libfs.c:1126
 fat_file_fsync+0x48/0x100 fs/fat/file.c:190
 vfs_fsync_range+0x107/0x120 fs/sync.c:182
 generic_write_sync include/linux/fs.h:2955 [inline]
 generic_file_write_iter+0x103/0x130 mm/filemap.c:3917
 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: 0x02000021 -> 0x04000021

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

Crashes (238):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/22 09:37 upstream 2f47a9a4dfa3 6caa12e4 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/12/06 22:20 upstream f80ef9e49fdf 0230ba3e .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/12/05 06:38 upstream 79a72162048e a617004c .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/12/04 02:08 upstream 12119cfa1052 a617004c .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/11/30 11:11 upstream d58071a8a76d 80270552 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/11/29 14:34 upstream d58071a8a76d d0830353 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/11/28 13:56 upstream 3498e7f2bb41 63eeac02 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/11/25 04:41 upstream 5f53fa508db0 545ab074 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/11/19 14:45 upstream 4c388a8e740d 3a9d0024 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/11/16 23:03 upstream 8ab774587903 cafff8b6 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/11/15 12:07 upstream 8ab774587903 75b04091 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/11/13 02:21 upstream 66f4beaa6c1d 75b04091 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/17 19:21 upstream d999ade1cc86 0c5d9412 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/11 05:42 upstream efb52a7d9511 838e7e2c .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/10 02:02 upstream 7fd2bf83d59a 838e7e2c .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/08 15:12 upstream 1da38549dd64 efe0f24d .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/06 04:32 upstream 60a9483534ed 0a63fd36 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/10/03 21:53 upstream 6761a0ae9895 db0f5787 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/27 15:50 upstream 5816b3e6577e 78494d16 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/27 06:30 upstream 996148ee05d0 78494d16 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/23 01:52 upstream cf1d2c3e7e2f 8cac236e .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/21 15:14 upstream d9fb678414c0 169724fe .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/18 21:00 upstream 93ff9f13be91 70b76c1d .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/16 17:06 upstream ff1ffd71d5f0 aae492f2 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/14 09:19 upstream d0ee23f9d78b 58d09404 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/11 14:09 upstream 926de8c4326c 3ce60af8 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/11 07:51 upstream e99f23c5bf59 3ce60af8 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/09/01 19:28 upstream 835d31d319d9 7eb7e152 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/08/31 15:26 upstream b91db6a0b52e 7eb7e152 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/08/29 15:13 upstream 3f5ad13cb012 be2c130d .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/08/26 08:49 upstream 73f3af7b4611 b599f2fc .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/08/19 21:30 upstream f87d64319e6f e2da378b .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/08/16 10:10 upstream 7c60610d4767 6652437d .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/08/14 17:32 upstream ba31f97d43be 2489ab88 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/08/10 21:09 upstream 9e723c5380c6 6972b106 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/08/08 16:08 upstream 85a90500f9a1 6972b106 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/08/03 14:47 upstream c500bee1c5b2 6c236867 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/07/26 07:15 upstream ff1176468d36 fd511809 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/07/24 09:42 upstream f0fddcec6b62 4d1b57d4 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/07/23 07:12 upstream 9bead1b58c4c bc5f1d88 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/07/22 00:17 upstream 7b6ae471e541 29c3f20f .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/07/19 22:38 upstream 2734d6c1b1a0 bc48c9ab .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/07/19 11:33 upstream 2734d6c1b1a0 e6a17580 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/07/17 10:27 upstream 0d18c12b288a f115ae98 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/07/16 09:47 upstream d936eb238744 f115ae98 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/07/12 21:52 upstream 7fef2edf7cc7 f415556d .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/07/10 17:13 upstream 3dbdb38e2869 8f5a7b8c .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/07/08 18:45 upstream 3dbdb38e2869 1b20171a .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/07/08 12:40 upstream 3dbdb38e2869 1aade754 .config log report info KCSAN: data-race in __writeback_single_inode / xas_set_mark
ci2-upstream-kcsan-gce 2021/01/15 05:00 upstream 146620506274 65a7a854 .config log report info
ci2-upstream-kcsan-gce 2020/10/01 03:02 upstream 60e720931556 a9767fb2 .config log report info
ci2-upstream-kcsan-gce 2020/06/27 13:13 upstream 1590a2e1c681 032b4239 .config log report