syzbot


KCSAN: data-race in __mark_inode_dirty / vfs_fsync_range (8)

Status: auto-obsoleted due to no activity on 2023/12/26 00:02
Subsystems: exfat
[Documentation on labels]
Reported-by: syzbot+36d7015951cbc074778a@syzkaller.appspotmail.com
First crash: 164d, last: 164d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mark_inode_dirty / vfs_fsync_range (6) exfat 1 1062d 1062d 0/26 auto-closed as invalid on 2021/07/10 17:50
upstream KCSAN: data-race in __mark_inode_dirty / vfs_fsync_range (5) ext4 5 1119d 1166d 0/26 auto-closed as invalid on 2021/05/14 12:10
upstream KCSAN: data-race in __mark_inode_dirty / vfs_fsync_range (4) ext4 6 1220d 1242d 0/26 auto-closed as invalid on 2021/02/02 16:23
upstream KCSAN: data-race in __mark_inode_dirty / vfs_fsync_range (2) ext4 1 1414d 1414d 0/26 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in __mark_inode_dirty / vfs_fsync_range (7) ext4 1 359d 359d 0/26 auto-obsoleted due to no activity on 2023/06/13 15:21
upstream KCSAN: data-race in __mark_inode_dirty / vfs_fsync_range (3) ext4 1 1381d 1381d 0/26 auto-closed as invalid on 2020/08/25 18:47
upstream KCSAN: data-race in __mark_inode_dirty / vfs_fsync_range ext4 2 1651d 1653d 0/26 closed as invalid on 2019/11/19 13:44

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

write to 0xffff8881076e2590 of 8 bytes by task 30155 on cpu 1:
 __mark_inode_dirty+0x117/0x7d0 fs/fs-writeback.c:2437
 mark_inode_dirty include/linux/fs.h:2306 [inline]
 generic_write_end+0x172/0x230 fs/buffer.c:2307
 fat_write_end+0x4e/0x160 fs/fat/inode.c:244
 generic_perform_write+0x267/0x410 mm/filemap.c:3929
 __generic_file_write_iter+0xa1/0x120 mm/filemap.c:4013
 generic_file_write_iter+0x7d/0x1c0 mm/filemap.c:4039
 do_iter_write+0x4ad/0x770 fs/read_write.c:860
 vfs_iter_write+0x56/0x70 fs/read_write.c:901
 iter_file_splice_write+0x462/0x7e0 fs/splice.c:736
 do_splice_from fs/splice.c:933 [inline]
 direct_splice_actor+0x8a/0xb0 fs/splice.c:1142
 splice_direct_to_actor+0x31d/0x690 fs/splice.c:1088
 do_splice_direct+0x10d/0x190 fs/splice.c:1194
 do_sendfile+0x3c4/0x980 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:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff8881076e2590 of 8 bytes by task 30180 on cpu 0:
 vfs_fsync_range+0xa2/0x120 fs/sync.c:186
 generic_write_sync include/linux/fs.h:2653 [inline]
 generic_file_write_iter+0x191/0x1c0 mm/filemap.c:4043
 do_iter_write+0x4ad/0x770 fs/read_write.c:860
 vfs_iter_write+0x56/0x70 fs/read_write.c:901
 iter_file_splice_write+0x462/0x7e0 fs/splice.c:736
 do_splice_from fs/splice.c:933 [inline]
 direct_splice_actor+0x8a/0xb0 fs/splice.c:1142
 splice_direct_to_actor+0x31d/0x690 fs/splice.c:1088
 do_splice_direct+0x10d/0x190 fs/splice.c:1194
 do_sendfile+0x3c4/0x980 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:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x0000000000000804 -> 0x0000000000000007

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 30180 Comm: syz-executor.2 Not tainted 6.7.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/20 16:17 upstream 98b1cc82c4af cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mark_inode_dirty / vfs_fsync_range
* Struck through repros no longer work on HEAD.