[moderation] [fs?] KCSAN: data-race in __dentry_kill / lookup_fast (13)

0 views
Skip to first unread message

syzbot

unread,
Feb 24, 2025, 11:41:26 PMFeb 24
Hello,

syzbot found the following issue on:

HEAD commit: d082ecbc71e9 Linux 6.14-rc4
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=163d46e4580000
kernel config: https://syzkaller.appspot.com/x/.config?x=e9dd6c7eeba2114e
dashboard link: https://syzkaller.appspot.com/bug?extid=d39da0f4ddf3340ad108
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
CC: [[email protected] [email protected] [email protected] [email protected] [email protected]]

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/2b352c2abb77/disk-d082ecbc.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/c5f4a062a264/vmlinux-d082ecbc.xz
kernel image: https://storage.googleapis.com/syzbot-assets/c3a86625df5a/bzImage-d082ecbc.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: [email protected]

==================================================================
BUG: KCSAN: data-race in __dentry_kill / lookup_fast

read-write to 0xffff88811d0f9180 of 4 bytes by task 7347 on cpu 0:
dentry_unlist fs/dcache.c:588 [inline]
__dentry_kill+0x22e/0x4c0 fs/dcache.c:657
dput+0x5c/0xd0 fs/dcache.c:885
__fput+0x428/0x640 fs/file_table.c:472
__fput_sync+0x96/0xc0 fs/file_table.c:550
__do_sys_close fs/open.c:1580 [inline]
__se_sys_close fs/open.c:1565 [inline]
__x64_sys_close+0x55/0xe0 fs/open.c:1565
x64_sys_call+0x266c/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:4
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 0xffff88811d0f9180 of 4 bytes by task 7726 on cpu 1:
d_revalidate fs/namei.c:927 [inline]
lookup_fast+0xe9/0x320 fs/namei.c:1741
lookup_fast_for_open fs/namei.c:3688 [inline]
open_last_lookups fs/namei.c:3721 [inline]
path_openat+0x41e/0x1fc0 fs/namei.c:3986
do_filp_open+0x107/0x230 fs/namei.c:4016
do_sys_openat2+0xab/0x120 fs/open.c:1428
do_sys_open fs/open.c:1443 [inline]
__do_sys_openat fs/open.c:1459 [inline]
__se_sys_openat fs/open.c:1454 [inline]
__x64_sys_openat+0xf3/0x120 fs/open.c:1454
x64_sys_call+0x2b30/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:258
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: 0x00400008 -> 0x00008008

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 7726 Comm: syz-executor Not tainted 6.14.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
==================================================================
==================================================================
BUG: KCSAN: data-race in __dentry_kill / step_into

read-write to 0xffff88811d1e9180 of 4 bytes by task 7347 on cpu 0:
dentry_unlist fs/dcache.c:588 [inline]
__dentry_kill+0x22e/0x4c0 fs/dcache.c:657
dput+0x5c/0xd0 fs/dcache.c:885
__fput+0x428/0x640 fs/file_table.c:472
__fput_sync+0x96/0xc0 fs/file_table.c:550
__do_sys_close fs/open.c:1580 [inline]
__se_sys_close fs/open.c:1565 [inline]
__x64_sys_close+0x55/0xe0 fs/open.c:1565
x64_sys_call+0x266c/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:4
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 0xffff88811d1e9180 of 4 bytes by task 7726 on cpu 1:
__d_entry_type include/linux/dcache.h:416 [inline]
d_is_symlink include/linux/dcache.h:446 [inline]
step_into+0x129/0x820 fs/namei.c:1957
open_last_lookups fs/namei.c:3777 [inline]
path_openat+0x13e5/0x1fc0 fs/namei.c:3986
do_filp_open+0x107/0x230 fs/namei.c:4016
do_sys_openat2+0xab/0x120 fs/open.c:1428
do_sys_open fs/open.c:1443 [inline]
__do_sys_openat fs/open.c:1459 [inline]
__se_sys_openat fs/open.c:1454 [inline]
__x64_sys_openat+0xf3/0x120 fs/open.c:1454
x64_sys_call+0x2b30/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:258
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: 0x00400008 -> 0x00008008

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 7726 Comm: syz-executor Not tainted 6.14.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
==================================================================
==================================================================
BUG: KCSAN: data-race in __dentry_kill / lookup_fast

read-write to 0xffff88810673ad80 of 4 bytes by task 7347 on cpu 0:
dentry_unlist fs/dcache.c:588 [inline]
__dentry_kill+0x22e/0x4c0 fs/dcache.c:657
dput+0x5c/0xd0 fs/dcache.c:885
__fput+0x428/0x640 fs/file_table.c:472
__fput_sync+0x96/0xc0 fs/file_table.c:550
__do_sys_close fs/open.c:1580 [inline]
__se_sys_close fs/open.c:1565 [inline]
__x64_sys_close+0x55/0xe0 fs/open.c:1565
x64_sys_call+0x266c/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:4
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 0xffff88810673ad80 of 4 bytes by task 7726 on cpu 1:
d_revalidate fs/namei.c:927 [inline]
lookup_fast+0xe9/0x320 fs/namei.c:1741
lookup_fast_for_open fs/namei.c:3688 [inline]
open_last_lookups fs/namei.c:3721 [inline]
path_openat+0x41e/0x1fc0 fs/namei.c:3986
do_filp_open+0x107/0x230 fs/namei.c:4016
do_sys_openat2+0xab/0x120 fs/open.c:1428
do_sys_open fs/open.c:1443 [inline]
__do_sys_openat fs/open.c:1459 [inline]
__se_sys_openat fs/open.c:1454 [inline]
__x64_sys_openat+0xf3/0x120 fs/open.c:1454
x64_sys_call+0x2b30/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:258
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: 0x00400008 -> 0x00008008

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 7726 Comm: syz-executor Not tainted 6.14.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
==================================================================
==================================================================
BUG: KCSAN: data-race in __dentry_kill / lookup_fast

read-write to 0xffff88810043d0c0 of 4 bytes by task 7347 on cpu 0:
dentry_unlist fs/dcache.c:588 [inline]
__dentry_kill+0x22e/0x4c0 fs/dcache.c:657
dput+0x5c/0xd0 fs/dcache.c:885
__fput+0x428/0x640 fs/file_table.c:472
__fput_sync+0x96/0xc0 fs/file_table.c:550
__do_sys_close fs/open.c:1580 [inline]
__se_sys_close fs/open.c:1565 [inline]
__x64_sys_close+0x55/0xe0 fs/open.c:1565
x64_sys_call+0x266c/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:4
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 0xffff88810043d0c0 of 4 bytes by task 7726 on cpu 1:
d_revalidate fs/namei.c:927 [inline]
lookup_fast+0xe9/0x320 fs/namei.c:1741
lookup_fast_for_open fs/namei.c:3688 [inline]
open_last_lookups fs/namei.c:3721 [inline]
path_openat+0x41e/0x1fc0 fs/namei.c:3986
do_filp_open+0x107/0x230 fs/namei.c:4016
do_sys_openat2+0xab/0x120 fs/open.c:1428
do_sys_open fs/open.c:1443 [inline]
__do_sys_openat fs/open.c:1459 [inline]
__se_sys_openat fs/open.c:1454 [inline]
__x64_sys_openat+0xf3/0x120 fs/open.c:1454
x64_sys_call+0x2b30/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:258
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: 0x00400008 -> 0x00008008

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 7726 Comm: syz-executor Not tainted 6.14.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
==================================================================
==================================================================
BUG: KCSAN: data-race in __dentry_kill / step_into

read-write to 0xffff888106736180 of 4 bytes by task 7347 on cpu 0:
dentry_unlist fs/dcache.c:588 [inline]
__dentry_kill+0x22e/0x4c0 fs/dcache.c:657
dput+0x5c/0xd0 fs/dcache.c:885
__fput+0x428/0x640 fs/file_table.c:472
__fput_sync+0x96/0xc0 fs/file_table.c:550
__do_sys_close fs/open.c:1580 [inline]
__se_sys_close fs/open.c:1565 [inline]
__x64_sys_close+0x55/0xe0 fs/open.c:1565
x64_sys_call+0x266c/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:4
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 0xffff888106736180 of 4 bytes by task 7726 on cpu 1:
__d_entry_type include/linux/dcache.h:416 [inline]
d_is_symlink include/linux/dcache.h:446 [inline]
step_into+0x129/0x820 fs/namei.c:1957
open_last_lookups fs/namei.c:3777 [inline]
path_openat+0x13e5/0x1fc0 fs/namei.c:3986
do_filp_open+0x107/0x230 fs/namei.c:4016
do_sys_openat2+0xab/0x120 fs/open.c:1428
do_sys_open fs/open.c:1443 [inline]
__do_sys_openat fs/open.c:1459 [inline]
__se_sys_openat fs/open.c:1454 [inline]
__x64_sys_openat+0xf3/0x120 fs/open.c:1454
x64_sys_call+0x2b30/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:258
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: 0x00400008 -> 0x00008008

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 7726 Comm: syz-executor Not tainted 6.14.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
==================================================================


---
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 [email protected].

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
Reply all
Reply to author
Forward
0 new messages