syzbot


KCSAN: data-race in drop_nlink / generic_fillattr (4)

Status: auto-obsoleted due to no activity on 2023/04/11 17:00
Subsystems: fs
[Documentation on labels]
First crash: 696d, last: 653d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in drop_nlink / generic_fillattr (6) fs 2 323d 329d 0/28 auto-obsoleted due to no activity on 2024/02/29 22:16
upstream KCSAN: data-race in drop_nlink / generic_fillattr (7) fs 2 281d 287d 0/28 auto-obsoleted due to no activity on 2024/04/11 18:19
upstream KCSAN: data-race in drop_nlink / generic_fillattr (5) fs 2 400d 369d 0/28 auto-obsoleted due to no activity on 2023/12/25 00:01
upstream KCSAN: data-race in drop_nlink / generic_fillattr (8) fs 1 55d 55d 0/28 auto-obsoleted due to no activity on 2024/11/23 13:06
upstream KCSAN: data-race in drop_nlink / generic_fillattr (3) fs 22 1158d 1369d 0/28 auto-closed as invalid on 2021/11/16 10:39
upstream KCSAN: data-race in drop_nlink / generic_fillattr fs 9 1548d 1624d 0/28 auto-closed as invalid on 2020/10/22 03:32
upstream KCSAN: data-race in drop_nlink / generic_fillattr (9) fs 1 1h51m 1h50m 0/28 moderation: reported on 2024/12/13 23:17
upstream KCSAN: data-race in drop_nlink / generic_fillattr (2) fs 8 1423d 1467d 0/28 auto-closed as invalid on 2021/02/25 00:13

Sample crash report:
==================================================================
BUG: KCSAN: data-race in drop_nlink / generic_fillattr

write to 0xffff888129d66d50 of 4 bytes by task 3393 on cpu 0:
 drop_nlink+0x3b/0x90 fs/inode.c:332
 shmem_unlink+0x173/0x190 mm/shmem.c:3039
 shmem_rename2+0x199/0x2f0 mm/shmem.c:3113
 vfs_rename+0x811/0xa40 fs/namei.c:4772
 do_renameat2+0x66f/0x9c0 fs/namei.c:4923
 __do_sys_rename fs/namei.c:4969 [inline]
 __se_sys_rename fs/namei.c:4967 [inline]
 __x64_sys_rename+0x5c/0x70 fs/namei.c:4967
 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 0xffff888129d66d50 of 4 bytes by task 3825 on cpu 1:
 generic_fillattr+0xf3/0x1e0 fs/stat.c:54
 shmem_getattr+0x32a/0x3b0 mm/shmem.c:1068
 vfs_getattr_nosec+0x1e3/0x3c0 fs/stat.c:133
 vfs_getattr fs/stat.c:170 [inline]
 vfs_statx+0x156/0x300 fs/stat.c:242
 vfs_fstatat fs/stat.c:276 [inline]
 __do_sys_newfstatat fs/stat.c:446 [inline]
 __se_sys_newfstatat+0x8a/0x2a0 fs/stat.c:440
 __x64_sys_newfstatat+0x55/0x60 fs/stat.c:440
 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: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3825 Comm: udevd Not tainted 6.2.0-syzkaller-12998-gc0927a7a5391-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/01 09:34 upstream c0927a7a5391 ef65e6cb .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2023/01/17 16:40 upstream 6e50979a9c87 42660d9e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
* Struck through repros no longer work on HEAD.