syzbot


KCSAN: data-race in __dentry_kill / vfs_unlink (3)

Status: auto-closed as invalid on 2021/10/17 10:47
Subsystems: fs
[Documentation on labels]
First crash: 1242d, last: 1233d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dentry_kill / vfs_unlink (2) fs 2 1300d 1303d 0/28 auto-closed as invalid on 2021/08/12 00:21
upstream KCSAN: data-race in __dentry_kill / vfs_unlink (4) fs 3 1151d 1183d 0/28 auto-closed as invalid on 2022/01/07 13:09
upstream KCSAN: data-race in __dentry_kill / vfs_unlink fs 1 1467d 1467d 0/28 auto-closed as invalid on 2021/02/25 10:07
upstream KCSAN: data-race in __dentry_kill / vfs_unlink (5) fs 3 1052d 1076d 0/28 auto-closed as invalid on 2022/04/16 18:57

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

write to 0xffff88814195bcc0 of 4 bytes by task 10611 on cpu 1:
 dont_mount include/linux/dcache.h:358 [inline]
 vfs_unlink+0x2b6/0x4b0 fs/namei.c:4104
 do_unlinkat+0x278/0x550 fs/namei.c:4169
 __do_sys_unlink fs/namei.c:4217 [inline]
 __se_sys_unlink fs/namei.c:4215 [inline]
 __x64_sys_unlink+0x2c/0x30 fs/namei.c:4215
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88814195bcc0 of 4 bytes by task 380 on cpu 0:
 dentry_unlist fs/dcache.c:547 [inline]
 __dentry_kill+0x1ef/0x4e0 fs/dcache.c:578
 dput+0xc6/0x360 fs/dcache.c:888
 handle_mounts fs/namei.c:1502 [inline]
 step_into+0x468/0xee0 fs/namei.c:1800
 walk_component+0x1a1/0x360 fs/namei.c:1976
 lookup_last fs/namei.c:2425 [inline]
 path_lookupat+0x12d/0x3d0 fs/namei.c:2449
 __filename_lookup+0x130/0x310 fs/namei.c:2478
 filename_lookup fs/namei.c:2494 [inline]
 user_path_at_empty+0x3e/0x110 fs/namei.c:2801
 do_readlinkat+0x97/0x210 fs/stat.c:443
 __do_sys_readlink fs/stat.c:476 [inline]
 __se_sys_readlink fs/stat.c:473 [inline]
 __x64_sys_readlink+0x43/0x50 fs/stat.c:473
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00600008 -> 0x00000008

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 380 Comm: systemd-udevd Not tainted 5.14.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/09/12 10:39 upstream c605c39677b9 3ce60af8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / vfs_unlink
2021/09/03 18:54 upstream a9c9a6f741cd d236a457 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / vfs_unlink
* Struck through repros no longer work on HEAD.