[moderation] [fs?] KCSAN: data-race in __dentry_kill / step_into (9)

3 views
Skip to first unread message

syzbot

unread,
May 3, 2025, 6:30:26 PM5/3/25
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2a239ffbebb5 Merge tag 'sound-6.15-rc5' of git://git.kerne..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=170758d4580000
kernel config: https://syzkaller.appspot.com/x/.config?x=6bd11c5d4ce102b4
dashboard link: https://syzkaller.appspot.com/bug?extid=03eeb7a335f7bec13d0c
compiler: Debian clang version 20.1.2 (++20250402124445+58df0ef89dd6-1~exp1~20250402004600.97), Debian LLD 20.1.2
CC: [bra...@kernel.org ja...@suse.cz linux-...@vger.kernel.org linux-...@vger.kernel.org vi...@zeniv.linux.org.uk]

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/a37e08667ec3/disk-2a239ffb.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/611a1665e47f/vmlinux-2a239ffb.xz
kernel image: https://storage.googleapis.com/syzbot-assets/c56f32f07145/bzImage-2a239ffb.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+03eeb7...@syzkaller.appspotmail.com

==================================================================
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


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Jan 26, 2026, 1:17:15 PMJan 26
to syzkaller-upst...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages