[moderation] [fs?] KCSAN: data-race in d_invalidate / fast_dput (2)

0 views
Skip to first unread message

syzbot

unread,
Jun 4, 2024, 10:03:31 AMJun 4
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2ab795141095 Merge tag 'cxl-fixes-6.10-rc3' of git://git.k..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=116ba306980000
kernel config: https://syzkaller.appspot.com/x/.config?x=8c00b51a1d411353
dashboard link: https://syzkaller.appspot.com/bug?extid=93fd29c10343c5f02a57
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
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/bfbbe027757b/disk-2ab79514.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/7d9e21e4f192/vmlinux-2ab79514.xz
kernel image: https://storage.googleapis.com/syzbot-assets/85e4f04a70cc/bzImage-2ab79514.xz

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

==================================================================
BUG: KCSAN: data-race in d_invalidate / fast_dput

write to 0xffff88813286b910 of 8 bytes by task 1946 on cpu 1:
__d_drop fs/dcache.c:509 [inline]
d_invalidate+0x59/0x1c0 fs/dcache.c:1585
lookup_fast+0x254/0x2a0 fs/namei.c:1657
open_last_lookups fs/namei.c:3542 [inline]
path_openat+0x44c/0x1da0 fs/namei.c:3804
do_filp_open+0xf7/0x200 fs/namei.c:3834
do_sys_openat2+0xab/0x120 fs/open.c:1405
do_sys_open fs/open.c:1420 [inline]
__do_sys_openat fs/open.c:1436 [inline]
__se_sys_openat fs/open.c:1431 [inline]
__x64_sys_openat+0xf3/0x120 fs/open.c:1431
x64_sys_call+0x1057/0x2d70 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

read to 0xffff88813286b910 of 8 bytes by task 1947 on cpu 0:
hlist_bl_unhashed include/linux/list_bl.h:54 [inline]
d_unhashed include/linux/dcache.h:347 [inline]
retain_dentry fs/dcache.c:686 [inline]
fast_dput+0x62/0x2b0 fs/dcache.c:782
dput+0x24/0xd0 fs/dcache.c:839
path_put fs/namei.c:561 [inline]
terminate_walk+0xfb/0x280 fs/namei.c:685
path_openat+0x1821/0x1da0 fs/namei.c:3808
do_filp_open+0xf7/0x200 fs/namei.c:3834
do_sys_openat2+0xab/0x120 fs/open.c:1405
do_sys_open fs/open.c:1420 [inline]
__do_sys_openat fs/open.c:1436 [inline]
__se_sys_openat fs/open.c:1431 [inline]
__x64_sys_openat+0xf3/0x120 fs/open.c:1431
x64_sys_call+0x1057/0x2d70 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: 0xffff88823795fc30 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1947 Comm: syz-executor.0 Tainted: G W 6.10.0-rc2-syzkaller-00010-g2ab795141095 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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 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
Reply all
Reply to author
Forward
0 new messages