syzbot


KCSAN: data-race in inode_set_ctime_current / inode_update_timestamps

Status: auto-obsoleted due to no activity on 2023/10/26 06:20
Subsystems: fs
[Documentation on labels]
First crash: 428d, last: 412d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in inode_set_ctime_current / inode_update_timestamps (2) fs 1 5d15h 5d15h 0/28 moderation: reported on 2024/11/01 11:57

Sample crash report:
==================================================================
BUG: KCSAN: data-race in inode_set_ctime_current / inode_update_timestamps

write to 0xffff888106237188 of 8 bytes by task 4047 on cpu 0:
 inode_set_ctime_to_ts include/linux/fs.h:1564 [inline]
 inode_set_ctime_current+0x3a3/0x4b0 fs/inode.c:2590
 inode_update_timestamps+0x68/0x3e0 fs/inode.c:1892
 generic_update_time fs/inode.c:1929 [inline]
 inode_update_time fs/inode.c:1949 [inline]
 __file_update_time fs/inode.c:2177 [inline]
 file_update_time+0xba/0x140 fs/inode.c:2207
 pipe_write+0xb0c/0xde0 fs/pipe.c:601
 call_write_iter include/linux/fs.h:1985 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x4ab/0x7d0 fs/read_write.c:584
 ksys_write+0xeb/0x1a0 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __x64_sys_write+0x42/0x50 fs/read_write.c:646
 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 0xffff888106237188 of 8 bytes by task 4041 on cpu 1:
 inode_get_ctime include/linux/fs.h:1548 [inline]
 inode_update_timestamps+0x49/0x3e0 fs/inode.c:1890
 generic_update_time fs/inode.c:1929 [inline]
 inode_update_time fs/inode.c:1949 [inline]
 __file_update_time fs/inode.c:2177 [inline]
 file_update_time+0xba/0x140 fs/inode.c:2207
 pipe_write+0xb0c/0xde0 fs/pipe.c:601
 call_write_iter include/linux/fs.h:1985 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x4ab/0x7d0 fs/read_write.c:584
 ksys_write+0xeb/0x1a0 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __x64_sys_write+0x42/0x50 fs/read_write.c:646
 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: 0x00000000650be003 -> 0x00000000650be004

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 4041 Comm: syz-executor.0 Not tainted 6.6.0-rc2-syzkaller-00048-g42dc814987c1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/21 06:17 upstream 42dc814987c1 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in inode_set_ctime_current / inode_update_timestamps
2023/09/16 18:31 upstream 57d88e8a5974 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in inode_set_ctime_current / inode_update_timestamps
2023/09/06 03:26 upstream 7733171926cc 0b6286dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in inode_set_ctime_current / inode_update_timestamps
* Struck through repros no longer work on HEAD.