syzbot


KCSAN: data-race in d_delete / step_into (4)

Status: auto-closed as invalid on 2021/05/17 11:48
Subsystems: fs
[Documentation on labels]
First crash: 1135d, last: 1121d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in d_delete / step_into (6) fs 660 18h56m 133d 0/26 moderation: reported on 2023/12/07 10:03
upstream KCSAN: data-race in d_delete / step_into (5) fs 3 1009d 1044d 0/26 auto-closed as invalid on 2021/08/17 20:13
upstream KCSAN: data-race in d_delete / step_into fs 2 1430d 1431d 0/26 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in d_delete / step_into (3) fs 1 1186d 1186d 0/26 auto-closed as invalid on 2021/02/21 16:24
upstream KCSAN: data-race in d_delete / step_into (2) fs 2 1361d 1377d 0/26 auto-closed as invalid on 2020/08/30 20:17

Sample crash report:
==================================================================
BUG: KCSAN: data-race in d_delete / step_into

write to 0xffff888106d7d180 of 4 bytes by task 27929 on cpu 0:
 d_delete+0x6e/0xa0 fs/dcache.c:2502
 vfs_unlink+0x3bc/0x3e0 fs/namei.c:4043
 do_unlinkat+0x29f/0x4f0 fs/namei.c:4096
 __do_sys_unlink fs/namei.c:4143 [inline]
 __se_sys_unlink fs/namei.c:4141 [inline]
 __x64_sys_unlink+0x2c/0x30 fs/namei.c:4141
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888106d7d180 of 4 bytes by task 4839 on cpu 1:
 __follow_mount_rcu fs/namei.c:1398 [inline]
 handle_mounts fs/namei.c:1455 [inline]
 step_into+0xec/0xec0 fs/namei.c:1769
 walk_component+0x190/0x350 fs/namei.c:1945
 lookup_last fs/namei.c:2396 [inline]
 path_lookupat+0x12d/0x570 fs/namei.c:2420
 filename_lookup+0xf2/0x380 fs/namei.c:2453
 user_path_at_empty+0x3b/0x50 fs/namei.c:2733
 do_readlinkat+0x87/0x200 fs/stat.c:417
 __do_sys_readlink fs/stat.c:450 [inline]
 __se_sys_readlink fs/stat.c:447 [inline]
 __x64_sys_readlink+0x43/0x50 fs/stat.c:447
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

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

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/23 16:26 upstream 84196390620a e613994b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / step_into
2021/03/16 03:06 upstream 1e28eed17697 fdb2bb2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / step_into
2021/03/10 05:12 upstream 144c79ef3353 26967e35 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / step_into
* Struck through repros no longer work on HEAD.