syzbot


KCSAN: data-race in inode_needs_update_time / setattr_copy

Status: auto-obsoleted due to no activity on 2023/10/24 11:30
Subsystems: fs
[Documentation on labels]
First crash: 752d, last: 752d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in inode_needs_update_time / setattr_copy

read to 0xffff8881003be8f0 of 8 bytes by task 32715 on cpu 1:
 inode_get_ctime include/linux/fs.h:1549 [inline]
 inode_needs_update_time+0x245/0x370 fs/inode.c:2160
 file_update_time+0x2d/0x140 fs/inode.c:2203
 blkdev_write_iter+0x26a/0x390 block/fops.c:674
 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

write to 0xffff8881003be8f0 of 8 bytes by task 31982 on cpu 0:
 inode_set_ctime_to_ts include/linux/fs.h:1564 [inline]
 setattr_copy+0x1cb/0x270 fs/attr.c:315
 shmem_setattr+0x531/0x840 mm/shmem.c:1221
 notify_change+0x866/0x8e0 fs/attr.c:499
 vfs_utimes+0x2c6/0x3e0 fs/utimes.c:66
 do_utimes_path fs/utimes.c:99 [inline]
 do_utimes+0x14f/0x1f0 fs/utimes.c:145
 __do_sys_utimensat fs/utimes.c:164 [inline]
 __se_sys_utimensat fs/utimes.c:148 [inline]
 __x64_sys_utimensat+0xc6/0x170 fs/utimes.c:148
 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: 0x0000000014081e79 -> 0x000000001a9695f8

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 31982 Comm: udevd Not tainted 6.6.0-rc2-syzkaller-00018-g2cf0f7156238 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/19 11:26 upstream 2cf0f7156238 0b6a67ac .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in inode_needs_update_time / setattr_copy
* Struck through repros no longer work on HEAD.