syzbot


KCSAN: data-race in __dentry_kill / lookup_fast (12)

Status: moderation: reported on 2024/11/07 05:42
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+cc0d7c280a30e1e2e347@syzkaller.appspotmail.com
First crash: 2d17h, last: 2d17h
Similar bugs (11)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dentry_kill / lookup_fast (5) fs 12 1258d 1331d 0/28 auto-closed as invalid on 2021/07/05 09:49
upstream KCSAN: data-race in __dentry_kill / lookup_fast (8) fs 8 569d 633d 0/28 auto-obsoleted due to no activity on 2023/05/25 00:07
upstream KCSAN: data-race in __dentry_kill / lookup_fast (2) fs 5 1539d 1599d 0/28 auto-closed as invalid on 2020/09/27 09:27
upstream KCSAN: data-race in __dentry_kill / lookup_fast fs 10 1622d 1715d 0/28 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __dentry_kill / lookup_fast (11) fs 1 113d 113d 0/28 auto-obsoleted due to no activity on 2024/08/23 20:28
upstream KCSAN: data-race in __dentry_kill / lookup_fast (10) fs 3 223d 261d 0/28 auto-obsoleted due to no activity on 2024/05/05 12:07
upstream KCSAN: data-race in __dentry_kill / lookup_fast (7) fs 27 680d 940d 0/28 auto-obsoleted due to no activity on 2023/02/12 11:35
upstream KCSAN: data-race in __dentry_kill / lookup_fast (6) fs 1 1085d 1085d 0/28 auto-closed as invalid on 2021/12/25 02:52
upstream KCSAN: data-race in __dentry_kill / lookup_fast (4) fs 3 1379d 1404d 0/28 auto-closed as invalid on 2021/03/06 20:57
upstream KCSAN: data-race in __dentry_kill / lookup_fast (3) fs 3 1441d 1433d 0/28 auto-closed as invalid on 2021/01/03 16:37
upstream KCSAN: data-race in __dentry_kill / lookup_fast (9) fs 31 301d 336d 0/28 auto-obsoleted due to no activity on 2024/02/17 10:11

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __dentry_kill / lookup_fast

read-write to 0xffff888119186600 of 4 bytes by task 23188 on cpu 0:
 dentry_unlist fs/dcache.c:560 [inline]
 __dentry_kill+0x22e/0x4c0 fs/dcache.c:629
 dput+0x5c/0xd0 fs/dcache.c:857
 do_unlinkat+0x257/0x4c0 fs/namei.c:4536
 __do_sys_unlink fs/namei.c:4581 [inline]
 __se_sys_unlink fs/namei.c:4579 [inline]
 __x64_sys_unlink+0x2e/0x40 fs/namei.c:4579
 x64_sys_call+0x280f/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888119186600 of 4 bytes by task 3015 on cpu 1:
 d_revalidate fs/namei.c:867 [inline]
 lookup_fast+0xd9/0x2a0 fs/namei.c:1681
 walk_component+0x3f/0x230 fs/namei.c:2049
 lookup_last fs/namei.c:2556 [inline]
 path_lookupat+0x10a/0x2b0 fs/namei.c:2580
 filename_lookup+0x127/0x300 fs/namei.c:2609
 do_readlinkat+0x89/0x210 fs/stat.c:537
 __do_sys_readlink fs/stat.c:574 [inline]
 __se_sys_readlink fs/stat.c:571 [inline]
 __x64_sys_readlink+0x47/0x60 fs/stat.c:571
 x64_sys_call+0x13c3/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:90
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00600008 -> 0x00008008

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 3015 Comm: udevd Not tainted 6.12.0-rc6-syzkaller-00099-g7758b206117d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/07 05:42 upstream 7758b206117d df3dc63b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / lookup_fast
* Struck through repros no longer work on HEAD.