syzbot


KCSAN: data-race in __generic_file_fsync / __mark_inode_dirty (6)

Status: moderation: reported on 2024/06/25 01:11
Subsystems: exfat
[Documentation on labels]
Reported-by: syzbot+ffa996b3456919dca1b7@syzkaller.appspotmail.com
First crash: 20d, last: 18d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __generic_file_fsync / __mark_inode_dirty (4) exfat 1 594d 594d 0/27 auto-obsoleted due to no activity on 2023/01/14 16:28
upstream KCSAN: data-race in __generic_file_fsync / __mark_inode_dirty (2) exfat 3 1025d 1040d 0/27 auto-closed as invalid on 2021/10/28 20:30
upstream KCSAN: data-race in __generic_file_fsync / __mark_inode_dirty (5) exfat 2 462d 540d 0/27 auto-obsoleted due to no activity on 2023/05/15 07:03
upstream KCSAN: data-race in __generic_file_fsync / __mark_inode_dirty exfat 3 1158d 1222d 0/27 auto-closed as invalid on 2021/06/17 13:50
upstream KCSAN: data-race in __generic_file_fsync / __mark_inode_dirty (3) exfat 1 875d 875d 0/27 auto-closed as invalid on 2022/03/28 09:07

Sample crash report:
(unnamed net_device) (uninitialized): option active_slave: mode dependency failed, not supported in mode broadcast(3)
==================================================================
BUG: KCSAN: data-race in __generic_file_fsync / __mark_inode_dirty

write to 0xffff888106be34b8 of 8 bytes by task 4179 on cpu 1:
 __mark_inode_dirty+0x256/0x7e0 fs/fs-writeback.c:2517
 fat_update_time+0x1fe/0x210 fs/fat/misc.c:357
 inode_update_time fs/inode.c:1919 [inline]
 touch_atime+0x14f/0x350 fs/inode.c:1992
 file_accessed include/linux/fs.h:2458 [inline]
 filemap_splice_read+0x8b0/0x920 mm/filemap.c:2950
 do_splice_read fs/splice.c:985 [inline]
 splice_direct_to_actor+0x26c/0x670 fs/splice.c:1089
 do_splice_direct_actor fs/splice.c:1207 [inline]
 do_splice_direct+0xd7/0x150 fs/splice.c:1233
 do_sendfile+0x3ab/0x960 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+0x2c9f/0x2d70 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 0xffff888106be34b8 of 8 bytes by task 4183 on cpu 0:
 __generic_file_fsync+0x95/0x140 fs/libfs.c:1522
 fat_file_fsync+0x4c/0x100 fs/fat/file.c:191
 vfs_fsync_range+0x122/0x140 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2794 [inline]
 generic_file_write_iter+0x191/0x1d0 mm/filemap.c:4140
 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/0x960 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+0x2c9f/0x2d70 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: 0x0000000000000000 -> 0x0000000000000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 4183 Comm: syz.4.177 Not tainted 6.10.0-rc5-syzkaller-00018-g55027e689933 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/26 12:32 upstream 55027e689933 c6d33a01 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __generic_file_fsync / __mark_inode_dirty
2024/06/25 01:11 upstream 626737a5791b 215eef4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __generic_file_fsync / __mark_inode_dirty
* Struck through repros no longer work on HEAD.