syzbot


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

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

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

write to 0xffff8881392ddbc0 of 8 bytes by task 5357 on cpu 0:
 shmem_xattr_handler_set+0x91/0xc0 mm/shmem.c:3470
 __vfs_setxattr+0x2de/0x300 fs/xattr.c:201
 __vfs_setxattr_noperm+0xed/0x3e0 fs/xattr.c:235
 __vfs_setxattr_locked+0x1af/0x1d0 fs/xattr.c:296
 vfs_setxattr+0x140/0x280 fs/xattr.c:322
 do_setxattr fs/xattr.c:630 [inline]
 setxattr+0x1bc/0x230 fs/xattr.c:653
 path_setxattr+0xf5/0x1a0 fs/xattr.c:672
 __do_sys_lsetxattr fs/xattr.c:695 [inline]
 __se_sys_lsetxattr fs/xattr.c:691 [inline]
 __x64_sys_lsetxattr+0x6a/0x80 fs/xattr.c:691
 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

read to 0xffff8881392ddbc0 of 8 bytes by task 3185 on cpu 1:
 timespec64_compare include/linux/time64.h:63 [inline]
 relatime_need_update fs/inode.c:1864 [inline]
 atime_needs_update+0x399/0x410 fs/inode.c:1952
 touch_atime+0x68/0x310 fs/inode.c:1967
 do_readlinkat+0x164/0x210 fs/stat.c:488
 __do_sys_readlink fs/stat.c:510 [inline]
 __se_sys_readlink fs/stat.c:507 [inline]
 __x64_sys_readlink+0x47/0x50 fs/stat.c:507
 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: 0x000000000d3c61b3 -> 0x000000000dd4f833

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3185 Comm: udevd Not tainted 6.5.0-rc7-syzkaller-00004-gf7757129e3de #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
==================================================================
I/O error, dev loop1, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/22 17:57 upstream f7757129e3de b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in atime_needs_update / shmem_xattr_handler_set
2023/07/21 16:24 upstream f7e3a1bafdea abdf9bae .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in atime_needs_update / shmem_xattr_handler_set
2023/07/04 14:59 upstream 24be4d0b46bb f99c2404 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in atime_needs_update / shmem_xattr_handler_set
* Struck through repros no longer work on HEAD.