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: 10h29m, last: 10h29m
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dentry_kill / step_into (6) fs 1 382d 382d 0/28 auto-obsoleted due to no activity on 2024/05/21 11:40
upstream KCSAN: data-race in __dentry_kill / step_into (8) fs 23 73d 306d 0/28 auto-obsoleted due to no activity on 2025/04/17 06:32
upstream KCSAN: data-race in __dentry_kill / step_into fs 1 1667d 1667d 0/28 auto-closed as invalid on 2020/11/14 02:21
upstream KCSAN: data-race in __dentry_kill / step_into (5) fs 106 428d 513d 0/28 auto-obsoleted due to no activity on 2024/04/05 18:21
upstream KCSAN: data-race in __dentry_kill / step_into (4) fs 1 1162d 1162d 0/28 auto-closed as invalid on 2022/04/03 02:19
upstream KCSAN: data-race in __dentry_kill / step_into (7) fs 2 343d 347d 0/28 auto-obsoleted due to no activity on 2024/06/29 19:22
upstream KCSAN: data-race in __dentry_kill / step_into (2) fs 3 1422d 1460d 0/28 auto-closed as invalid on 2021/07/16 10:59
upstream KCSAN: data-race in __dentry_kill / step_into (3) fs 5 1224d 1282d 0/28 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 0xffff8881065aed80 of 4 bytes by task 26711 on cpu 1:
 dentry_unlist fs/dcache.c:605 [inline]
 __dentry_kill+0x230/0x4b0 fs/dcache.c:674
 dput+0x5e/0xd0 fs/dcache.c:902
 __fput+0x444/0x650 fs/file_table.c:473
 fput_close_sync+0x6e/0x120 fs/file_table.c:570
 __do_sys_close fs/open.c:1581 [inline]
 __se_sys_close fs/open.c:1566 [inline]
 __x64_sys_close+0x56/0xf0 fs/open.c:1566
 x64_sys_call+0x2747/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881065aed80 of 4 bytes by task 26581 on cpu 0:
 __d_entry_type include/linux/dcache.h:409 [inline]
 d_is_symlink include/linux/dcache.h:439 [inline]
 step_into+0x12f/0x820 fs/namei.c:1981
 open_last_lookups fs/namei.c:3827 [inline]
 path_openat+0x13e8/0x2170 fs/namei.c:4036
 do_filp_open+0x109/0x230 fs/namei.c:4066
 do_sys_openat2+0xa6/0x110 fs/open.c:1429
 do_sys_open fs/open.c:1444 [inline]
 __do_sys_openat fs/open.c:1460 [inline]
 __se_sys_openat fs/open.c:1455 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1455
 x64_sys_call+0x1af/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00200008 -> 0x00004008

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 26581 Comm: syz-executor Not tainted 6.15.0-rc4-syzkaller-00291-g2a239ffbebb5 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
==================================================================
==================================================================
BUG: KCSAN: data-race in __dentry_kill / fast_dput

write to 0xffff88810044ecd0 of 8 bytes by task 26711 on cpu 0:
 __d_drop fs/dcache.c:566 [inline]
 __dentry_kill+0x142/0x4b0 fs/dcache.c:658
 dput+0x5e/0xd0 fs/dcache.c:902
 do_unlinkat+0x299/0x4c0 fs/namei.c:4646
 __do_sys_unlink fs/namei.c:4689 [inline]
 __se_sys_unlink fs/namei.c:4687 [inline]
 __x64_sys_unlink+0x2e/0x40 fs/namei.c:4687
 x64_sys_call+0x22a6/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88810044ecd0 of 8 bytes by task 26581 on cpu 1:
 hlist_bl_unhashed include/linux/list_bl.h:54 [inline]
 d_unhashed include/linux/dcache.h:359 [inline]
 retain_dentry fs/dcache.c:743 [inline]
 fast_dput+0x5f/0x2c0 fs/dcache.c:839
 dput+0x24/0xd0 fs/dcache.c:896
 __fput+0x444/0x650 fs/file_table.c:473
 fput_close_sync+0x6e/0x120 fs/file_table.c:570
 __do_sys_close fs/open.c:1581 [inline]
 __se_sys_close fs/open.c:1566 [inline]
 __x64_sys_close+0x56/0xf0 fs/open.c:1566
 x64_sys_call+0x2747/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffff888237bafdb8 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 26581 Comm: syz-executor Not tainted 6.15.0-rc4-syzkaller-00291-g2a239ffbebb5 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
==================================================================
==================================================================
BUG: KCSAN: data-race in __dentry_kill / step_into

read-write to 0xffff88810044f840 of 4 bytes by task 26711 on cpu 1:
 dentry_unlist fs/dcache.c:605 [inline]
 __dentry_kill+0x230/0x4b0 fs/dcache.c:674
 dput+0x5e/0xd0 fs/dcache.c:902
 do_unlinkat+0x299/0x4c0 fs/namei.c:4646
 __do_sys_unlink fs/namei.c:4689 [inline]
 __se_sys_unlink fs/namei.c:4687 [inline]
 __x64_sys_unlink+0x2e/0x40 fs/namei.c:4687
 x64_sys_call+0x22a6/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88810044f840 of 4 bytes by task 26581 on cpu 0:
 __d_entry_type include/linux/dcache.h:409 [inline]
 d_is_symlink include/linux/dcache.h:439 [inline]
 step_into+0x12f/0x820 fs/namei.c:1981
 open_last_lookups fs/namei.c:3827 [inline]
 path_openat+0x13e8/0x2170 fs/namei.c:4036
 do_filp_open+0x109/0x230 fs/namei.c:4066
 do_sys_openat2+0xa6/0x110 fs/open.c:1429
 do_sys_open fs/open.c:1444 [inline]
 __do_sys_openat fs/open.c:1460 [inline]
 __se_sys_openat fs/open.c:1455 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1455
 x64_sys_call+0x1af/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00200008 -> 0x00004008

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 26581 Comm: syz-executor Not tainted 6.15.0-rc4-syzkaller-00291-g2a239ffbebb5 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
==================================================================
==================================================================
BUG: KCSAN: data-race in __dentry_kill / lookup_fast

read-write to 0xffff8881005c83c0 of 4 bytes by task 26711 on cpu 1:
 dentry_unlist fs/dcache.c:605 [inline]
 __dentry_kill+0x230/0x4b0 fs/dcache.c:674
 dput+0x5e/0xd0 fs/dcache.c:902
 __fput+0x444/0x650 fs/file_table.c:473
 fput_close_sync+0x6e/0x120 fs/file_table.c:570
 __do_sys_close fs/open.c:1581 [inline]
 __se_sys_close fs/open.c:1566 [inline]
 __x64_sys_close+0x56/0xf0 fs/open.c:1566
 x64_sys_call+0x2747/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881005c83c0 of 4 bytes by task 26581 on cpu 0:
 d_revalidate fs/namei.c:928 [inline]
 lookup_fast+0xf0/0x320 fs/namei.c:1765
 lookup_fast_for_open fs/namei.c:3738 [inline]
 open_last_lookups fs/namei.c:3771 [inline]
 path_openat+0x43c/0x2170 fs/namei.c:4036
 do_filp_open+0x109/0x230 fs/namei.c:4066
 do_sys_openat2+0xa6/0x110 fs/open.c:1429
 do_sys_open fs/open.c:1444 [inline]
 __do_sys_openat fs/open.c:1460 [inline]
 __se_sys_openat fs/open.c:1455 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1455
 x64_sys_call+0x1af/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00200008 -> 0x00004008

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 26581 Comm: syz-executor Not tainted 6.15.0-rc4-syzkaller-00291-g2a239ffbebb5 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
==================================================================
==================================================================
BUG: KCSAN: data-race in __dentry_kill / fast_dput

write to 0xffff8881066d1b50 of 8 bytes by task 26711 on cpu 1:
 __d_drop fs/dcache.c:566 [inline]
 __dentry_kill+0x142/0x4b0 fs/dcache.c:658
 dput+0x5e/0xd0 fs/dcache.c:902
 __fput+0x444/0x650 fs/file_table.c:473
 fput_close_sync+0x6e/0x120 fs/file_table.c:570
 __do_sys_close fs/open.c:1581 [inline]
 __se_sys_close fs/open.c:1566 [inline]
 __x64_sys_close+0x56/0xf0 fs/open.c:1566
 x64_sys_call+0x2747/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881066d1b50 of 8 bytes by task 26581 on cpu 0:
 hlist_bl_unhashed include/linux/list_bl.h:54 [inline]
 d_unhashed include/linux/dcache.h:359 [inline]
 retain_dentry fs/dcache.c:743 [inline]
 fast_dput+0x5f/0x2c0 fs/dcache.c:839
 dput+0x24/0xd0 fs/dcache.c:896
 do_unlinkat+0x299/0x4c0 fs/namei.c:4646
 __do_sys_unlink fs/namei.c:4689 [inline]
 __se_sys_unlink fs/namei.c:4687 [inline]
 __x64_sys_unlink+0x2e/0x40 fs/namei.c:4687
 x64_sys_call+0x22a6/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffff888237bafdb8 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 26581 Comm: syz-executor Not tainted 6.15.0-rc4-syzkaller-00291-g2a239ffbebb5 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
==================================================================
==================================================================
BUG: KCSAN: data-race in __dentry_kill / step_into

read-write to 0xffff888100457cc0 of 4 bytes by task 26711 on cpu 1:
 dentry_unlist fs/dcache.c:605 [inline]
 __dentry_kill+0x230/0x4b0 fs/dcache.c:674
 dput+0x5e/0xd0 fs/dcache.c:902
 __fput+0x444/0x650 fs/file_table.c:473
 fput_close_sync+0x6e/0x120 fs/file_table.c:570
 __do_sys_close fs/open.c:1581 [inline]
 __se_sys_close fs/open.c:1566 [inline]
 __x64_sys_close+0x56/0xf0 fs/open.c:1566
 x64_sys_call+0x2747/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888100457cc0 of 4 bytes by task 26581 on cpu 0:
 __follow_mount_rcu fs/namei.c:1572 [inline]
 handle_mounts fs/namei.c:1623 [inline]
 step_into+0xe3/0x820 fs/namei.c:1976
 open_last_lookups fs/namei.c:3827 [inline]
 path_openat+0x13e8/0x2170 fs/namei.c:4036
 do_filp_open+0x109/0x230 fs/namei.c:4066
 do_sys_openat2+0xa6/0x110 fs/open.c:1429
 do_sys_open fs/open.c:1444 [inline]
 __do_sys_openat fs/open.c:1460 [inline]
 __se_sys_openat fs/open.c:1455 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1455
 x64_sys_call+0x1af/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00200008 -> 0x00004008

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 26581 Comm: syz-executor Not tainted 6.15.0-rc4-syzkaller-00291-g2a239ffbebb5 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
==================================================================
==================================================================
BUG: KCSAN: data-race in __dentry_kill / step_into

read-write to 0xffff888106661c00 of 4 bytes by task 26711 on cpu 0:
 dentry_unlist fs/dcache.c:605 [inline]
 __dentry_kill+0x230/0x4b0 fs/dcache.c:674
 dput+0x5e/0xd0 fs/dcache.c:902
 __fput+0x444/0x650 fs/file_table.c:473
 fput_close_sync+0x6e/0x120 fs/file_table.c:570
 __do_sys_close fs/open.c:1581 [inline]
 __se_sys_close fs/open.c:1566 [inline]
 __x64_sys_close+0x56/0xf0 fs/open.c:1566
 x64_sys_call+0x2747/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888106661c00 of 4 bytes by task 26581 on cpu 1:
 __d_entry_type include/linux/dcache.h:409 [inline]
 d_is_symlink include/linux/dcache.h:439 [inline]
 step_into+0x12f/0x820 fs/namei.c:1981
 open_last_lookups fs/namei.c:3827 [inline]
 path_openat+0x13e8/0x2170 fs/namei.c:4036
 do_filp_open+0x109/0x230 fs/namei.c:4066
 do_sys_openat2+0xa6/0x110 fs/open.c:1429
 do_sys_open fs/open.c:1444 [inline]
 __do_sys_openat fs/open.c:1460 [inline]
 __se_sys_openat fs/open.c:1455 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1455
 x64_sys_call+0x1af/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00200008 -> 0x00004008

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 26581 Comm: syz-executor Not tainted 6.15.0-rc4-syzkaller-00291-g2a239ffbebb5 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
==================================================================
==================================================================
BUG: KCSAN: data-race in dentry_unlink_inode / step_into

write to 0xffff8881065e49f0 of 8 bytes by task 26711 on cpu 1:
 __d_clear_type_and_inode fs/dcache.c:410 [inline]
 dentry_unlink_inode+0x65/0x260 fs/dcache.c:447
 __dentry_kill+0x18d/0x4b0 fs/dcache.c:660
 dput+0x5e/0xd0 fs/dcache.c:902
 __fput+0x444/0x650 fs/file_table.c:473
 fput_close_sync+0x6e/0x120 fs/file_table.c:570
 __do_sys_close fs/open.c:1581 [inline]
 __se_sys_close fs/open.c:1566 [inline]
 __x64_sys_close+0x56/0xf0 fs/open.c:1566
 x64_sys_call+0x2747/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881065e49f0 of 8 bytes by task 26581 on cpu 0:
 step_into+0x122/0x820 fs/namei.c:1980
 open_last_lookups fs/namei.c:3827 [inline]
 path_openat+0x13e8/0x2170 fs/namei.c:4036
 do_filp_open+0x109/0x230 fs/namei.c:4066
 do_sys_openat2+0xa6/0x110 fs/open.c:1429
 do_sys_open fs/open.c:1444 [inline]
 __do_sys_openat fs/open.c:1460 [inline]
 __se_sys_openat fs/open.c:1455 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1455

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.