syzbot


KCSAN: data-race in __dentry_kill / step_into (9)

Status: moderation: reported on 2025/05/03 22:30
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+03eeb7a335f7bec13d0c@syzkaller.appspotmail.com
First crash: 231d, last: 19d
Similar bugs (8)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dentry_kill / step_into (6) fs 6 1 614d 614d 0/29 auto-obsoleted due to no activity on 2024/05/21 11:40
upstream KCSAN: data-race in __dentry_kill / step_into (8) fs 6 23 304d 538d 0/29 auto-obsoleted due to no activity on 2025/04/17 06:32
upstream KCSAN: data-race in __dentry_kill / step_into fs 6 1 1898d 1898d 0/29 auto-closed as invalid on 2020/11/14 02:21
upstream KCSAN: data-race in __dentry_kill / step_into (5) fs 6 106 659d 744d 0/29 auto-obsoleted due to no activity on 2024/04/05 18:21
upstream KCSAN: data-race in __dentry_kill / step_into (4) fs 6 1 1393d 1393d 0/29 auto-closed as invalid on 2022/04/03 02:19
upstream KCSAN: data-race in __dentry_kill / step_into (7) fs 6 2 574d 579d 0/29 auto-obsoleted due to no activity on 2024/06/29 19:22
upstream KCSAN: data-race in __dentry_kill / step_into (2) fs 6 3 1654d 1691d 0/29 auto-closed as invalid on 2021/07/16 10:59
upstream KCSAN: data-race in __dentry_kill / step_into (3) fs 6 5 1456d 1513d 0/29 auto-closed as invalid on 2022/01/30 10:25

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

read-write to 0xffff888119f83600 of 4 bytes by task 3875 on cpu 1:
 dentry_unlist fs/dcache.c:614 [inline]
 __dentry_kill+0x230/0x4b0 fs/dcache.c:683
 dput+0x5e/0xd0 fs/dcache.c:911
 __fput+0x444/0x650 fs/file_table.c:476
 fput_close_sync+0x6e/0x120 fs/file_table.c:573
 __do_sys_close fs/open.c:1589 [inline]
 __se_sys_close fs/open.c:1574 [inline]
 __x64_sys_close+0x56/0xf0 fs/open.c:1574
 x64_sys_call+0x273c/0x3000 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888119f83600 of 4 bytes by task 3968 on cpu 0:
 __d_entry_type include/linux/dcache.h:414 [inline]
 d_is_symlink include/linux/dcache.h:444 [inline]
 step_into+0x12f/0x7f0 fs/namei.c:1994
 open_last_lookups fs/namei.c:3922 [inline]
 path_openat+0x13e8/0x2170 fs/namei.c:4131
 do_filp_open+0x109/0x230 fs/namei.c:4161
 do_sys_openat2+0xa6/0x110 fs/open.c:1437
 do_sys_open fs/open.c:1452 [inline]
 __do_sys_openat fs/open.c:1468 [inline]
 __se_sys_openat fs/open.c:1463 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1463
 x64_sys_call+0x2eab/0x3000 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00200080 -> 0x00004080

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3968 Comm: syz-executor Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
==================================================================
==================================================================
BUG: KCSAN: data-race in __dentry_kill / fast_dput

write to 0xffff888119f863d0 of 8 bytes by task 3875 on cpu 1:
 __d_drop fs/dcache.c:575 [inline]
 __dentry_kill+0x142/0x4b0 fs/dcache.c:667
 dput+0x5e/0xd0 fs/dcache.c:911
 do_unlinkat+0x259/0x480 fs/namei.c:4740
 __do_sys_unlink fs/namei.c:4783 [inline]
 __se_sys_unlink fs/namei.c:4781 [inline]
 __x64_sys_unlink+0x2e/0x40 fs/namei.c:4781
 x64_sys_call+0x2dcf/0x3000 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888119f863d0 of 8 bytes by task 3968 on cpu 0:
 hlist_bl_unhashed include/linux/list_bl.h:54 [inline]
 d_unhashed include/linux/dcache.h:364 [inline]
 retain_dentry fs/dcache.c:752 [inline]
 fast_dput+0x5f/0x2c0 fs/dcache.c:848
 dput+0x24/0xd0 fs/dcache.c:905
 __fput+0x444/0x650 fs/file_table.c:476
 fput_close_sync+0x6e/0x120 fs/file_table.c:573
 __do_sys_close fs/open.c:1589 [inline]
 __se_sys_close fs/open.c:1574 [inline]
 __x64_sys_close+0x56/0xf0 fs/open.c:1574
 x64_sys_call+0x273c/0x3000 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffff888237946b68 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3968 Comm: syz-executor Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
==================================================================
==================================================================
BUG: KCSAN: data-race in __dentry_kill / step_into

read-write to 0xffff88810723e480 of 4 bytes by task 3875 on cpu 1:
 dentry_unlist fs/dcache.c:614 [inline]
 __dentry_kill+0x230/0x4b0 fs/dcache.c:683
 dput+0x5e/0xd0 fs/dcache.c:911
 __fput+0x444/0x650 fs/file_table.c:476
 fput_close_sync+0x6e/0x120 fs/file_table.c:573
 __do_sys_close fs/open.c:1589 [inline]
 __se_sys_close fs/open.c:1574 [inline]
 __x64_sys_close+0x56/0xf0 fs/open.c:1574
 x64_sys_call+0x273c/0x3000 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88810723e480 of 4 bytes by task 3968 on cpu 0:
 __follow_mount_rcu fs/namei.c:1584 [inline]
 handle_mounts fs/namei.c:1635 [inline]
 step_into+0xe3/0x7f0 fs/namei.c:1989
 open_last_lookups fs/namei.c:3922 [inline]
 path_openat+0x13e8/0x2170 fs/namei.c:4131
 do_filp_open+0x109/0x230 fs/namei.c:4161
 do_sys_openat2+0xa6/0x110 fs/open.c:1437
 do_sys_open fs/open.c:1452 [inline]
 __do_sys_openat fs/open.c:1468 [inline]
 __se_sys_openat fs/open.c:1463 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1463
 x64_sys_call+0x2eab/0x3000 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00200080 -> 0x00004080

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3968 Comm: syz-executor Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
==================================================================
==================================================================
BUG: KCSAN: data-race in __dentry_kill / lookup_fast

read-write to 0xffff888119f05a80 of 4 bytes by task 3875 on cpu 1:
 dentry_unlist fs/dcache.c:614 [inline]
 __dentry_kill+0x230/0x4b0 fs/dcache.c:683
 dput+0x5e/0xd0 fs/dcache.c:911
 __fput+0x444/0x650 fs/file_table.c:476
 fput_close_sync+0x6e/0x120 fs/file_table.c:573
 __do_sys_close fs/open.c:1589 [inline]
 __se_sys_close fs/open.c:1574 [inline]
 __x64_sys_close+0x56/0xf0 fs/open.c:1574
 x64_sys_call+0x273c/0x3000 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888119f05a80 of 4 bytes by task 3968 on cpu 0:
 d_revalidate fs/namei.c:928 [inline]
 lookup_fast+0xf0/0x320 fs/namei.c:1764
 lookup_fast_for_open fs/namei.c:3833 [inline]
 open_last_lookups fs/namei.c:3866 [inline]
 path_openat+0x43c/0x2170 fs/namei.c:4131
 do_filp_open+0x109/0x230 fs/namei.c:4161
 do_sys_openat2+0xa6/0x110 fs/open.c:1437
 do_sys_open fs/open.c:1452 [inline]
 __do_sys_openat fs/open.c:1468 [inline]
 __se_sys_openat fs/open.c:1463 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1463
 x64_sys_call+0x2eab/0x3000 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00200080 -> 0x00004080

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3968 Comm: syz-executor Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
==================================================================
==================================================================
BUG: KCSAN: data-race in __dentry_kill / step_into

read-write to 0xffff88813ec366c0 of 4 bytes by task 3875 on cpu 1:
 dentry_unlist fs/dcache.c:614 [inline]
 __dentry_kill+0x230/0x4b0 fs/dcache.c:683
 dput+0x5e/0xd0 fs/dcache.c:911
 __fput+0x444/0x650 fs/file_table.c:476
 fput_close_sync+0x6e/0x120 fs/file_table.c:573
 __do_sys_close fs/open.c:1589 [inline]
 __se_sys_close fs/open.c:1574 [inline]
 __x64_sys_close+0x56/0xf0 fs/open.c:1574
 x64_sys_call+0x273c/0x3000 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88813ec366c0 of 4 bytes by task 3968 on cpu 0:
 __d_entry_type include/linux/dcache.h:414 [inline]
 d_is_symlink include/linux/dcache.h:444 [inline]
 step_into+0x12f/0x7f0 fs/namei.c:1994
 open_last_lookups fs/namei.c:3922 [inline]
 path_openat+0x13e8/0x2170 fs/namei.c:4131
 do_filp_open+0x109/0x230 fs/namei.c:4161
 do_sys_openat2+0xa6/0x110 fs/open.c:1437
 do_sys_open fs/open.c:1452 [inline]
 __do_sys_openat fs/open.c:1468 [inline]
 __se_sys_openat fs/open.c:1463 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1463
 x64_sys_call+0x2eab/0x3000 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00200080 -> 0x00004080

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3968 Comm: syz-executor Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
==================================================================
==================================================================
BUG: KCSAN: data-race in __dentry_kill / lookup_fast

read-write to 0xffff888119fb6780 of 4 bytes by task 3875 on cpu 1:
 dentry_unlist fs/dcache.c:614 [inline]
 __dentry_kill+0x230/0x4b0 fs/dcache.c:683
 dput+0x5e/0xd0 fs/dcache.c:911
 do_unlinkat+0x259/0x480 fs/namei.c:4740
 __do_sys_unlink fs/namei.c:4783 [inline]
 __se_sys_unlink fs/namei.c:4781 [inline]
 __x64_sys_unlink+0x2e/0x40 fs/namei.c:4781
 x64_sys_call+0x2dcf/0x3000 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888119fb6780 of 4 bytes by task 3968 on cpu 0:
 d_revalidate fs/namei.c:928 [inline]
 lookup_fast+0xf0/0x320 fs/namei.c:1764
 lookup_fast_for_open fs/namei.c:3833 [inline]
 open_last_lookups fs/namei.c:3866 [inline]
 path_openat+0x43c/0x2170 fs/namei.c:4131
 do_filp_open+0x109/0x230 fs/namei.c:4161
 do_sys_openat2+0xa6/0x110 fs/open.c:1437
 do_sys_open fs/open.c:1452 [inline]
 __do_sys_openat fs/open.c:1468 [inline]
 __se_sys_openat fs/open.c:1463 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1463
 x64_sys_call+0x2eab/0x3000 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00200080 -> 0x00004080

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3968 Comm: syz-executor Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
==================================================================
==================================================================
BUG: KCSAN: data-race in __dentry_kill / step_into

read-write to 0xffff888119cace40 of 4 bytes by task 3875 on cpu 1:
 dentry_unlist fs/dcache.c:614 [inline]
 __dentry_kill+0x230/0x4b0 fs/dcache.c:683
 dput+0x5e/0xd0 fs/dcache.c:911
 __fput+0x444/0x650 fs/file_table.c:476
 fput_close_sync+0x6e/0x120 fs/file_table.c:573
 __do_sys_close fs/open.c:1589 [inline]
 __se_sys_close fs/open.c:1574 [inline]
 __x64_sys_close+0x56/0xf0 fs/open.c:1574
 x64_sys_call+0x273c/0x3000 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888119cace40 of 4 bytes by task 3968 on cpu 0:
 __d_entry_type include/linux/dcache.h:414 [inline]
 d_is_symlink include/linux/dcache.h:444 [inline]
 step_into+0x12f/0x7f0 fs/namei.c:1994
 open_last_lookups fs/namei.c:3922 [inline]
 path_openat+0x13e8/0x2170 fs/namei.c:4131
 do_filp_open+0x109/0x230 fs/namei.c:4161
 do_sys_openat2+0xa6/0x110 fs/open.c:1437
 do_sys_open fs/open.c:1452 [inline]
 __do_sys_openat fs/open.c:1468 [inline]
 __se_sys_openat fs/open.c:1463 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1463
 x64_sys_call+0x2eab/0x3000 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00200080 -> 0x00004080

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3968 Comm: syz-executor Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
==================================================================
==================================================================
BUG: KCSAN: data-race in __dentry_kill / step_into

read-write to 0xffff88813ec7f600 of 4 bytes by task 3875 on cpu 1:
 dentry_unlist fs/dcache.c:614 [inline]
 __dentry_kill+0x230/0x4b0 fs/dcache.c:683
 dput+0x5e/0xd0 fs/dcache.c:911
 __fput+0x444/0x650 fs/file_table.c:476
 fput_close_sync+0x6e/0x120 fs/file_table.c:573
 __do_sys_close fs/open.c:1589 [inline]
 __se_sys_close fs/open.c:1574 [inline]
 __x64_sys_close+0x56/0xf0 fs/open.c:1574
 x64_sys_call+0x273c/0x3000 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88813ec7f600 of 4 bytes by task 3968 on cpu 0:
 __follow_mount_rcu fs/namei.c:1584 [inline]
 handle_mounts fs/namei.c:1635 [inline]
 step_into+0xe3/0x7f0 fs/namei.c:1989
 open_last_lookups fs/namei.c:3922 [inline]
 path_openat+0x13e8/0x2170 fs/namei.c:4131
 do_filp_open+0x109/0x230 fs/namei.c:4161
 do_sys_openat2+0xa6/0x110 fs/open.c:1437
 do_sys_open fs/open.c:1452 [inline]
 __do_sys_openat fs/open.c:1468 [inline]
 __se_sys_openat fs/open.c:1463 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1463
 x64_sys_call+0x2eab/0x3000 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00200080 -> 0x00004080

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3968 Comm: syz-executor Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
==================================================================

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/01 18:16 upstream 7d0a66e4bb90 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / step_into
2025/11/30 20:59 upstream e69c7c175115 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / step_into
2025/11/06 11:37 upstream dc77806cf3b4 a6c9c731 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / step_into
2025/09/16 11:43 upstream 46a51f4f5eda e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / step_into
2025/08/17 03:03 upstream 90d970cade8e 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / step_into
2025/07/20 00:54 upstream bf61759db409 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / step_into
2025/07/04 17:06 upstream 4c06e63b9203 d869b261 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / step_into
2025/05/28 15:03 upstream feacb1774bd5 874a1386 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / step_into
2025/05/15 05:48 upstream c94d59a126cb d6b2ee52 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / step_into
2025/05/03 22:29 upstream 2a239ffbebb5 b0714e37 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / step_into
* Struck through repros no longer work on HEAD.