syzbot


KCSAN: data-race in vfs_fsync_range / writeback_single_inode (2)

Status: auto-closed as invalid on 2022/01/09 20:31
Subsystems: exfat
[Documentation on labels]
Reported-by: syzbot+38c4a2b15c510e753d2e@syzkaller.appspotmail.com
First crash: 1593d, last: 1091d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in vfs_fsync_range / writeback_single_inode (7) ext4 147 1d02h 196d 0/28 moderation: reported on 2024/05/19 01:02
upstream KCSAN: data-race in vfs_fsync_range / writeback_single_inode (4) exfat 101 580d 846d 0/28 auto-obsoleted due to no activity on 2023/06/05 02:12
upstream KCSAN: data-race in vfs_fsync_range / writeback_single_inode (3) exfat 12 905d 1018d 0/28 auto-closed as invalid on 2022/07/14 22:12
upstream KCSAN: data-race in vfs_fsync_range / writeback_single_inode (5) exfat 3 512d 532d 0/28 auto-obsoleted due to no activity on 2023/08/12 00:00
upstream KCSAN: data-race in vfs_fsync_range / writeback_single_inode (6) exfat 13 285d 357d 0/28 auto-obsoleted due to no activity on 2024/03/25 18:33
upstream KCSAN: data-race in vfs_fsync_range / writeback_single_inode exfat 12 1636d 1862d 0/28 closed as invalid on 2020/06/18 14:24

Sample crash report:
==================================================================
BUG: KCSAN: data-race in vfs_fsync_range / writeback_single_inode

write to 0xffff888138c30de0 of 8 bytes by task 14842 on cpu 1:
 writeback_single_inode+0x103/0x3d0 fs/fs-writeback.c:1726
 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:3919
 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 0xffff888138c30de0 of 8 bytes by task 14849 on cpu 0:
 vfs_fsync_range+0x98/0x120 fs/sync.c:180
 generic_write_sync include/linux/fs.h:2955 [inline]
 generic_file_write_iter+0x103/0x130 mm/filemap.c:3919
 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: 0x0000000000000007 -> 0x0000000000000084

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

Crashes (131):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/05 20:30 upstream 944207047ca4 a617004c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/12/04 04:37 upstream 12119cfa1052 a617004c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/11/28 08:37 upstream 3498e7f2bb41 63eeac02 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/11/25 21:15 upstream b501b85957de 63eeac02 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/11/13 12:58 upstream 66f4beaa6c1d 75b04091 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/10/10 02:29 upstream 7fd2bf83d59a 838e7e2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/10/09 10:25 upstream 5d6ab0bb408f efe0f24d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/10/03 07:59 upstream 7b66f4393ad4 db0f5787 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/10/02 17:29 upstream 53d5fc89d66a db0f5787 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/09/27 23:56 upstream 0513e464f900 78494d16 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/09/22 22:32 upstream cf1d2c3e7e2f 8cac236e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/09/21 12:25 upstream d9fb678414c0 af796c18 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/09/17 17:01 upstream ddf21bd8ab98 70b76c1d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/09/15 19:33 upstream 80be5998ad63 07e953c1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/09/14 10:50 upstream d0ee23f9d78b 58d09404 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/09/13 23:21 upstream 316346243be6 58d09404 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/09/12 00:17 upstream c605c39677b9 3ce60af8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/09/09 12:26 upstream a3fa7a101dcf e2776ee4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/09/07 20:50 upstream 0bcfe68b8767 064c9eb7 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/09/02 08:34 upstream 4ac6d90867a4 7eb7e152 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/08/28 11:21 upstream 64b4fc45bea6 d5a29e53 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/08/27 15:06 upstream 77dd11439b86 b318694d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/08/26 18:40 upstream 73f3af7b4611 b318694d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/08/23 10:31 upstream e22ce8eb631b b599f2fc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/08/19 21:48 upstream f87d64319e6f e2da378b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/08/18 13:40 upstream 614cb2751d31 a2fe1cb5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/08/12 00:56 upstream 761c6d7ec820 6972b106 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/07/27 16:27 upstream ff1176468d36 17d6ab15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/07/25 13:39 upstream d8079fac1681 4d1b57d4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/07/24 04:26 upstream f0fddcec6b62 bc5f1d88 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/07/16 10:04 upstream d936eb238744 f115ae98 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/07/09 20:54 upstream 3dbdb38e2869 8f5a7b8c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/06/30 22:09 upstream df04fbe8680b 38a885d1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/06/29 14:34 upstream c54b245d0118 9d2ab5df .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/06/26 17:00 upstream b7050b242430 9d2ab5df .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/06/19 09:59 upstream 9ed13a17e38e aba2b2fb .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/06/14 19:31 upstream 009c9aa5be65 1ba81399 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/06/13 16:14 upstream 8ecfa36cd4db 1ba81399 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/05/30 17:18 upstream b90e90f40b4f 325a8dab .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/05/20 20:23 upstream f01da525b3de c560a65d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/05/19 17:22 upstream c3d0e3fd41b7 a343ba6b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/05/18 21:34 upstream 8ac91e6c6033 a343ba6b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2021/01/16 23:05 upstream 54c6247d06f1 65a7a854 .config console log report info ci2-upstream-kcsan-gce
2020/12/06 10:59 upstream 7059c2c00a21 f12ba0c5 .config console log report info ci2-upstream-kcsan-gce
2020/07/21 19:00 upstream 4fa640dc5230 e562dd8a .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.