[moderation] [fs?] KCSAN: data-race in dont_mount / lookup_fast

5 views
Skip to first unread message

syzbot

unread,
Dec 7, 2023, 7:01:34 PM12/7/23
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 9ace34a8e446 Merge tag 'cgroup-for-6.7-rc4-fixes' of git:/..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=12c6f536e80000
kernel config: https://syzkaller.appspot.com/x/.config?x=ac34c1f29a8029df
dashboard link: https://syzkaller.appspot.com/bug?extid=66941b35e83b90763e23
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
CC: [bra...@kernel.org 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/955528ed37c5/disk-9ace34a8.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ed03c0892611/vmlinux-9ace34a8.xz
kernel image: https://storage.googleapis.com/syzbot-assets/b4d56563956a/bzImage-9ace34a8.xz

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

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

read-write to 0xffff8881066f9180 of 4 bytes by task 3871 on cpu 0:
dont_mount+0x27/0x40 include/linux/dcache.h:352
vfs_unlink+0x282/0x3e0 fs/namei.c:4320
do_unlinkat+0x236/0x4c0 fs/namei.c:4382
__do_sys_unlink fs/namei.c:4430 [inline]
__se_sys_unlink fs/namei.c:4428 [inline]
__x64_sys_unlink+0x30/0x40 fs/namei.c:4428
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff8881066f9180 of 4 bytes by task 2778 on cpu 1:
d_revalidate fs/namei.c:861 [inline]
lookup_fast+0xd9/0x290 fs/namei.c:1643
walk_component+0x3f/0x230 fs/namei.c:1998
lookup_last fs/namei.c:2459 [inline]
path_lookupat+0x10a/0x2a0 fs/namei.c:2483
filename_lookup+0x126/0x300 fs/namei.c:2512
user_path_at_empty+0x42/0x110 fs/namei.c:2911
do_readlinkat+0x92/0x210 fs/stat.c:494
__do_sys_readlink fs/stat.c:527 [inline]
__se_sys_readlink fs/stat.c:524 [inline]
__x64_sys_readlink+0x47/0x50 fs/stat.c:524
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x00600008 -> 0x00008008

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 2778 Comm: udevd Not tainted 6.7.0-rc4-syzkaller-00039-g9ace34a8e446 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
==================================================================


---
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,
Jun 6, 2024, 6:08:25 PMJun 6
to syzkaller-upst...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: d30d0e49da71 Merge tag 'net-6.10-rc3' of git://git.kernel...
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=1610715a980000
kernel config: https://syzkaller.appspot.com/x/.config?x=8c00b51a1d411353
dashboard link: https://syzkaller.appspot.com/bug?extid=66941b35e83b90763e23
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=139243fc980000
CC: [bra...@kernel.org ja...@suse.cz linux-...@vger.kernel.org linux-...@vger.kernel.org vi...@zeniv.linux.org.uk]

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/4cac47708eca/disk-d30d0e49.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/7b6f5da412fe/vmlinux-d30d0e49.xz
kernel image: https://storage.googleapis.com/syzbot-assets/51d086a9e1e6/bzImage-d30d0e49.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/51b0b5fbff7d/mount_19.gz

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

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

read-write to 0xffff888106ae8f00 of 4 bytes by task 3530 on cpu 0:
dont_mount+0x27/0x40 include/linux/dcache.h:363
vfs_unlink+0x298/0x430 fs/namei.c:4345
do_unlinkat+0x236/0x4c0 fs/namei.c:4407
__do_sys_unlink fs/namei.c:4455 [inline]
__se_sys_unlink fs/namei.c:4453 [inline]
__x64_sys_unlink+0x30/0x40 fs/namei.c:4453
x64_sys_call+0x28a3/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:88
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 0xffff888106ae8f00 of 4 bytes by task 2784 on cpu 1:
d_revalidate fs/namei.c:860 [inline]
lookup_fast+0xd9/0x2a0 fs/namei.c:1641
walk_component+0x3f/0x230 fs/namei.c:2000
lookup_last fs/namei.c:2469 [inline]
path_lookupat+0x10a/0x2b0 fs/namei.c:2493
filename_lookup+0x127/0x300 fs/namei.c:2522
user_path_at_empty+0x42/0x120 fs/namei.c:2929
do_readlinkat+0x92/0x210 fs/stat.c:499
__do_sys_readlink fs/stat.c:532 [inline]
__se_sys_readlink fs/stat.c:529 [inline]
__x64_sys_readlink+0x47/0x60 fs/stat.c:529
x64_sys_call+0x264b/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:90
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: 0x00600008 -> 0x00008008

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 2784 Comm: udevd Not tainted 6.10.0-rc2-syzkaller-00222-gd30d0e49da71 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
==================================================================


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages