syzbot


KCSAN: data-race in atime_needs_update / shmem_xattr_handler_set

Status: auto-obsoleted due to no activity on 2023/02/17 08:27
Subsystems: mm
[Documentation on labels]
First crash: 753d, last: 753d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in atime_needs_update / shmem_xattr_handler_set (2) mm 3 525d 574d 0/28 auto-obsoleted due to no activity on 2023/09/26 18:03

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

write to 0xffff88813db253f8 of 8 bytes by task 3507 on cpu 0:
 shmem_xattr_handler_set+0x8a/0xb0 mm/shmem.c:3317
 __vfs_setxattr+0x2f0/0x320 fs/xattr.c:202
 __vfs_setxattr_noperm+0xe9/0x3e0 fs/xattr.c:236
 __vfs_setxattr_locked+0x1a8/0x1c0 fs/xattr.c:297
 vfs_setxattr+0x145/0x2a0 fs/xattr.c:323
 do_setxattr fs/xattr.c:608 [inline]
 setxattr fs/xattr.c:631 [inline]
 path_setxattr+0x2a4/0x390 fs/xattr.c:650
 __do_sys_lsetxattr fs/xattr.c:673 [inline]
 __se_sys_lsetxattr fs/xattr.c:669 [inline]
 __x64_sys_lsetxattr+0x66/0x80 fs/xattr.c:669
 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 0xffff88813db253f8 of 8 bytes by task 3804 on cpu 1:
 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
 do_readlinkat+0x16d/0x210 fs/stat.c:482
 __do_sys_readlink fs/stat.c:504 [inline]
 __se_sys_readlink fs/stat.c:501 [inline]
 __x64_sys_readlink+0x43/0x50 fs/stat.c:501
 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: 0x000000002aea7312 -> 0x000000002cb43693

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3804 Comm: udevd Not tainted 6.2.0-rc2-syzkaller-00057-g41c03ba9beea-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/06 08:13 upstream 41c03ba9beea 1dac8c7a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in atime_needs_update / shmem_xattr_handler_set
* Struck through repros no longer work on HEAD.