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: 142d, last: 2d06h
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 225d 349d 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 1184d 1197d 0/28 auto-closed as invalid on 2021/09/28 20:03
upstream KCSAN: data-race in d_delete / lookup_fast (2) fs 2 1474d 1444d 0/28 auto-closed as invalid on 2020/12/21 11:52
upstream KCSAN: data-race in d_delete / lookup_fast (4) fs 12 1238d 1315d 0/28 auto-closed as invalid on 2021/08/05 10:35
upstream KCSAN: data-race in d_delete / lookup_fast fs 33 1757d 1854d 0/28 auto-closed as invalid on 2020/04/08 11:57
upstream KCSAN: data-race in d_delete / lookup_fast (3) fs 1 1396d 1396d 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 0xffff888106b64240 of 4 bytes by task 3656 on cpu 0:
 d_delete+0x15a/0x180 fs/dcache.c:2416
 d_delete_notify+0x34/0x100 include/linux/fsnotify.h:330
 vfs_unlink+0x320/0x430 fs/namei.c:4525
 do_unlinkat+0x236/0x4c0 fs/namei.c:4574
 __do_sys_unlink fs/namei.c:4622 [inline]
 __se_sys_unlink fs/namei.c:4620 [inline]
 __x64_sys_unlink+0x2e/0x40 fs/namei.c:4620
 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 0xffff888106b64240 of 4 bytes by task 3017 on cpu 1:
 d_revalidate fs/namei.c:908 [inline]
 lookup_fast+0xd9/0x2a0 fs/namei.c:1722
 walk_component+0x3f/0x230 fs/namei.c:2090
 lookup_last fs/namei.c:2597 [inline]
 path_lookupat+0x10a/0x2b0 fs/namei.c:2621
 filename_lookup+0x127/0x300 fs/namei.c:2650
 do_readlinkat+0x89/0x210 fs/stat.c:579
 __do_sys_readlink fs/stat.c:616 [inline]
 __se_sys_readlink fs/stat.c:613 [inline]
 __x64_sys_readlink+0x47/0x60 fs/stat.c:613
 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: 3017 Comm: udevd Not tainted 6.12.0-syzkaller-00171-g23acd177540d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
==================================================================

Crashes (28):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/19 00:15 upstream 23acd177540d 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/11/12 04:39 upstream 2d5404caa8c7 75bb1b32 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/11/10 18:18 upstream a9cda7c0ffed 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/11/05 20:49 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/11/01 05:19 upstream 5635f189425e 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/10/29 02:16 upstream 819837584309 9efb3cc7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/10/18 00:17 upstream 6efbea77b390 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
2024/10/10 07:38 upstream d3d1556696c1 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / lookup_fast
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.