[moderation] [fs?] KCSAN: data-race in generic_fillattr / inode_set_ctime_current (4)

1 view
Skip to first unread message

syzbot

unread,
May 11, 2026, 6:21:33 AM (yesterday) May 11
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 5d6919055dec Linux 7.1-rc3
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=119cc0ec580000
kernel config: https://syzkaller.appspot.com/x/.config?x=2e40c0f41e01837e
dashboard link: https://syzkaller.appspot.com/bug?extid=c886d58659d9942bf21f
compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8
CC: [bra...@kernel.org ja...@suse.cz linux-...@vger.kernel.org linux-...@vger.kernel.org vi...@zeniv.linux.org.uk]

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/515c0abd1a99/disk-5d691905.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/3c5bf04595e0/vmlinux-5d691905.xz
kernel image: https://storage.googleapis.com/syzbot-assets/810674f82a11/bzImage-5d691905.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+c886d5...@syzkaller.appspotmail.com

==================================================================
BUG: KCSAN: data-race in generic_fillattr / inode_set_ctime_current

write to 0xffff88810b1aa940 of 4 bytes by task 13758 on cpu 0:
inode_set_ctime_to_ts fs/inode.c:2772 [inline]
inode_set_ctime_current+0x256/0x8c0 fs/inode.c:2835
__simple_unlink fs/libfs.c:792 [inline]
simple_unlink+0x2d/0x80 fs/libfs.c:807
shmem_unlink+0x12d/0x140 mm/shmem.c:3981
shmem_rename2+0x18e/0x310 mm/shmem.c:4062
vfs_rename+0x97f/0xad0 fs/namei.c:6054
filename_renameat2+0x3b6/0x6e0 fs/namei.c:6172
__do_sys_rename fs/namei.c:6216 [inline]
__se_sys_rename+0x4a/0x1c0 fs/namei.c:6212
__x64_sys_rename+0x31/0x40 fs/namei.c:6212
x64_sys_call+0x2b3/0x3020 arch/x86/include/generated/asm/syscalls_64.h:83
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x12c/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88810b1aa940 of 4 bytes by task 13781 on cpu 1:
inode_get_ctime_nsec include/linux/fs.h:1690 [inline]
inode_get_ctime include/linux/fs.h:1696 [inline]
generic_fillattr+0x1d1/0x340 fs/stat.c:101
shmem_getattr+0x181/0x200 mm/shmem.c:1302
vfs_getattr_nosec+0x146/0x1e0 fs/stat.c:213
vfs_getattr+0x48/0x60 fs/stat.c:262
vfs_statx_path+0x28/0x140 fs/stat.c:299
vfs_statx+0xc4/0x170 fs/stat.c:356
vfs_fstatat+0x118/0x170 fs/stat.c:373
__do_sys_newfstatat fs/stat.c:538 [inline]
__se_sys_newfstatat+0x55/0x3e0 fs/stat.c:532
__x64_sys_newfstatat+0x55/0x70 fs/stat.c:532
x64_sys_call+0x2c64/0x3020 arch/x86/include/generated/asm/syscalls_64.h:263
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x12c/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x257765c0 -> 0x28725641

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 13781 Comm: udevd Tainted: G W syzkaller #0 PREEMPT(full)
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
==================================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages