syzbot


KCSAN: data-race in d_delete / lookup_fast (7)

Status: moderation: reported on 2024/07/01 17:10
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+70c2f73d091a888a745b@syzkaller.appspotmail.com
First crash: 97d, last: 7d20h
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in d_delete / lookup_fast (6) fs 288 180d 304d 0/28 auto-obsoleted due to no activity on 2024/05/14 15:32
upstream KCSAN: data-race in d_delete / lookup_fast (5) fs 3 1139d 1152d 0/28 auto-closed as invalid on 2021/09/28 20:03
upstream KCSAN: data-race in d_delete / lookup_fast (2) fs 2 1429d 1399d 0/28 auto-closed as invalid on 2020/12/21 11:52
upstream KCSAN: data-race in d_delete / lookup_fast (4) fs 12 1193d 1270d 0/28 auto-closed as invalid on 2021/08/05 10:35
upstream KCSAN: data-race in d_delete / lookup_fast fs 33 1712d 1809d 0/28 auto-closed as invalid on 2020/04/08 11:57
upstream KCSAN: data-race in d_delete / lookup_fast (3) fs 1 1351d 1351d 0/28 auto-closed as invalid on 2021/02/28 15:17

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

read-write to 0xffff8881006b33c0 of 4 bytes by task 4177 on cpu 0:
 d_delete+0x73/0x100 fs/dcache.c:2404
 d_delete_notify+0x34/0x100 include/linux/fsnotify.h:330
 vfs_unlink+0x320/0x430 fs/namei.c:4484
 do_unlinkat+0x236/0x4c0 fs/namei.c:4533
 __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 0xffff8881006b33c0 of 4 bytes by task 2966 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: 0x00600108 -> 0x00008008

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 2966 Comm: udevd Not tainted 6.11.0-syzkaller-11993-g3efc57369a0c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (20):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/29 08:40 upstream 3efc57369a0c ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/09/21 17:49 upstream 7856a565416e 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/09/10 05:10 upstream bc83b4d1f086 784df80e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/09/07 19:23 upstream d1f2d51b711a 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/09/04 23:58 upstream c7fb1692dc01 dfbe2ed4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/08/28 09:36 upstream 86987d84b968 6c853ff9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/08/22 20:23 upstream 872cf28b8df9 ca02180f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/08/11 09:53 upstream 5189dafa4cf9 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/08/08 03:45 upstream 6a0e38264012 de12cf65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/08/02 06:30 upstream 183d46ff422e 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/08/01 00:41 upstream 21b136cc63d2 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/07/31 14:51 upstream e4fc196f5ba3 6fde257d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/07/30 20:08 upstream 22f546873149 6fde257d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/07/28 12:21 upstream 5437f30d3458 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/07/19 08:24 upstream 720261cfc732 ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/07/17 17:40 upstream 51835949dda3 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/07/13 15:25 upstream 528dd46d0fc3 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/07/04 08:47 upstream 795c58e4c7fc 3f2748a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/07/03 19:21 upstream 8a9c6c40432e f76a75f3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/07/01 17:09 upstream 22a40d14b572 b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
* Struck through repros no longer work on HEAD.