syzbot


KCSAN: data-race in atime_needs_update / shmem_setattr (2)

Status: auto-obsoleted due to no activity on 2023/02/12 02:36
Subsystems: mm
[Documentation on labels]
First crash: 487d, last: 487d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in atime_needs_update / shmem_setattr mm 1 774d 774d 0/26 auto-closed as invalid on 2022/04/23 20:11

Sample crash report:
==================================================================
BUG: KCSAN: data-race in atime_needs_update / shmem_setattr

write to 0xffff888101a43478 of 8 bytes by task 6228 on cpu 1:
 shmem_setattr+0x144/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 0xffff888101a43478 of 8 bytes by task 10645 on cpu 0:
 timespec64_compare include/linux/time64.h:63 [inline]
 relatime_need_update fs/inode.c:1823 [inline]
 atime_needs_update+0x45f/0x4d0 fs/inode.c:1911
 touch_atime+0x63/0x2e0 fs/inode.c:1926
 file_accessed include/linux/fs.h:2516 [inline]
 splice_direct_to_actor+0x520/0x620 fs/splice.c:904
 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: 0x0000000015f002c3 -> 0x0000000017212fc3

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 10645 Comm: syz-executor.4 Not tainted 6.2.0-rc1-syzkaller-00084-gc8451c141e07-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/01 02:18 upstream c8451c141e07 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in atime_needs_update / shmem_setattr
* Struck through repros no longer work on HEAD.