syzbot


KCSAN: data-race in file_update_time / shmem_setattr

Status: auto-obsoleted due to no activity on 2023/04/12 11:41
Subsystems: mm
[Documentation on labels]
First crash: 754d, last: 754d

Sample crash report:
EXT4-fs error (device loop3): ext4_orphan_get:1397: comm syz-executor.3: couldn't read orphan inode 15 (err -117)
EXT4-fs (loop3): mounted filesystem 00000000-0000-0000-0000-000000000000 without journal. Quota mode: writeback.
==================================================================
BUG: KCSAN: data-race in file_update_time / shmem_setattr

write to 0xffff888101a09760 of 8 bytes by task 7700 on cpu 0:
 shmem_setattr+0x134/0x490 mm/shmem.c:1136
 notify_change+0xa5c/0xad0 fs/attr.c:482
 vfs_utimes+0x2b9/0x3e0 fs/utimes.c:65
 do_utimes_path fs/utimes.c:98 [inline]
 do_utimes+0x14c/0x1f0 fs/utimes.c:144
 __do_sys_utimensat fs/utimes.c:163 [inline]
 __se_sys_utimensat fs/utimes.c:147 [inline]
 __x64_sys_utimensat+0xc6/0x170 fs/utimes.c:147
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888101a09760 of 8 bytes by task 9283 on cpu 1:
 timespec64_equal include/linux/time64.h:49 [inline]
 inode_needs_update_time fs/inode.c:2040 [inline]
 file_update_time+0xf5/0x3a0 fs/inode.c:2084
 __generic_file_write_iter+0x98/0x280 mm/filemap.c:3849
 blkdev_write_iter+0x25f/0x3e0 block/fops.c:534
 do_iter_write+0x494/0x750 fs/read_write.c:861
 vfs_iter_write+0x4c/0x70 fs/read_write.c:902
 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:686
 do_splice_from fs/splice.c:764 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:931
 splice_direct_to_actor+0x305/0x620 fs/splice.c:886
 do_splice_direct+0xfb/0x180 fs/splice.c:974
 do_sendfile+0x3bf/0x910 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1323 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1309
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000063b55f63 -> 0x0000000063b55f64

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 9283 Comm: syz-executor.3 Not tainted 6.2.0-rc2-syzkaller-00010-g69b41ac87e4a-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/04 11:13 upstream 69b41ac87e4a 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in file_update_time / shmem_setattr
* Struck through repros no longer work on HEAD.