Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1389725lqg; Sun, 3 Mar 2024 07:51:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUxZPol8yzuv/LRhO0+IThXKSRcjJ3X5TA4h6a0he+y/fJh8lKQawgNasCvZGyzizYFOi67kh7vRy58XWcd/oIFmLuP+yKsB2o31oW6Sg== X-Google-Smtp-Source: AGHT+IFdX7alSYrEGZk3nLIbXhyiHmko4E5Slq3k4v+3psvJqlaEj+qh3tSK67bBZbF+wd33Puyt X-Received: by 2002:a05:6358:75aa:b0:17b:eedd:5bdb with SMTP id x42-20020a05635875aa00b0017beedd5bdbmr5119139rwf.9.1709481088330; Sun, 03 Mar 2024 07:51:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709481088; cv=pass; d=google.com; s=arc-20160816; b=IUuRmY4TgmWxTk9ByJYQHcdGvn8k/8GP9bRodMPAJeIqz+gE+D3BBw+h/OpbSs5OX2 gv5vTFrFNfVktSvJO+9WAP1i//7ho7OMZeJNt92BRwLwLXeuu6vgAlRtkpAI6CSP1NTF W1fQ65vadim2nZa3JGDo1k4kwuq99ajwGRzViouLRC0omiOOuRzqbeOh8bZVQgVTYzG1 m1XVShXwiJv3BrOkGangHidHXo8e3NMEGAvURe/BiU8a3g49hnwRDh/KrLr5J3mymwGt +Ys5ZIFnx4rBq3BIwC8nDgjbZ2sdeHBLU5WzhDAEetmPkr9l0TwJIjQIQHwltO+j5VUv zA9g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:in-reply-to:date:mime-version :list-unsubscribe:list-subscribe:list-id:precedence; bh=j0WfFVpCpCPboe1ePdcUuron3PP3a5v/P9we/dRVjCk=; fh=DPFQ+/GH45YH8ruKsfUJgpzkZ1A8nzyi/SoQG7e70Pg=; b=0Lqfi5EiDCPfFL9F4mE5w1tXAzfAzsCcWwTuP1g9RxUXXRuGwZJJ4fBWjM3azLD8B6 scZo6QGHhsnEwaoV/yTa44eka26bwiF672M6seK7TTIGjWjG4SLVWIkWFI2+uYyehu07 p0WFT3SbYaj3kA/SQ67PQyMuNi5NA67U6c8C6xfhkwUl384b8JXxJnpkiW8zbf/OHI30 8SkBumS8k8rliLj9ryd6gU/RF2QybwVtIVlhh+Ozw7f/IUYKszKNk8XAngfUgYlQwWUY o/dmnfXUj27GQLlveQuh4+nR/wDDdQAqeLhP13DSRh+M8DoRLsHMEy8s+VFalUXoVRTq BSAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-89810-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89810-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 11-20020a056214202b00b0068f47ee1c81si7507822qvf.525.2024.03.03.07.51.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 07:51:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89810-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-89810-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89810-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C50431C21791 for ; Sun, 3 Mar 2024 15:51:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A4CA467C74; Sun, 3 Mar 2024 15:51:17 +0000 (UTC) Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 93DE129CE1 for ; Sun, 3 Mar 2024 15:51:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709481077; cv=none; b=eOVQS38cS41YkDhzOlvvCXXhu5vG8v5YO/fzI2a3ZNCLiBfiqwOUNNbVGTtQOdMqtOYZrz3/sdTA0JHBFHGSW6KLcInHsbNk2ffZUK0BNNLLOEfVJoKhJFNkB4cdgycEZBj6sFLxUpFPW3glLVsnr8P3J/KIgYgk4SsTKmp9Diw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709481077; c=relaxed/simple; bh=8aYiyaGFXCLaXkhRzG6EvSN7OeV6ZdYdG/gRflj4/iQ=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=oOvKVrSOGOClaa+ZHvYpycmGKwmgdyauU3DU6itWUWCBcw5a31b2F6SqKnZeXB64WHQvZGy/Q3ILLZrAZUGexlfMrqxnz6HWLqd8N/ovVnN39NKeN2i5hKSkBwTW2xK3wCicw9aSDT3yGSVkrW9GYZUFJ0TTrj2tRuXMntYfq5s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-il1-f198.google.com with SMTP id e9e14a558f8ab-36579b46ebfso45748535ab.0 for ; Sun, 03 Mar 2024 07:51:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709481075; x=1710085875; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=j0WfFVpCpCPboe1ePdcUuron3PP3a5v/P9we/dRVjCk=; b=HnREITpvwKIYXjmaDtZVZT1sndf7sKpVtHbYTMrSBO6pKjxYH3y9K3CGfUs2iIXtkr Ms4qU4j733VBa+zxdITrCenKBnHMEjUe19fqYf7CuIZ6PH8TOZSt5U79yY1riAphpcNo RiW+QadkDbna5QTFQivKNlQ6KUCTkJUtLXC+1mgF2nm0tTJMFKOeWF7HUhhrSL44ALPM y6jj9kAU62wAGU/4lqb4P0bbyOX3jcAAlQ2tNr+p/iKjDZg8XQUIOChdrYgpZhG/933K Sv+gsOLzJvmQ10sReOlYRABSl5JjZoHlM0h6ETUbj8/hAUdm6EUvTByis0h+0iFyhlZJ 4R8w== X-Forwarded-Encrypted: i=1; AJvYcCVtCoh3S3N6KnAbmnt8PL0zQ5EgDwlIi3Z66A0oMVI8DqtEJhG+8Ve4+fZQA1W/qKxgAnGSzmWqqzifq0qCkEsHOu0ySytjcR6i/Shy X-Gm-Message-State: AOJu0Ywxq8igzJNYPKzTzfr1EZX/KzBopHFAmZgwuPK8XXUowNO1UXQa 0sq4wEdHs+2Gn3qqhAlWkPzgzR5x62oHERlHi0/4a8aPkqf8e0ntWyvaG4KAE7fosDHXYsnrrzy ecHkeEA4S5WPVWEpMneLNDrURzjg6v1DErYh5g+fb7r6I4HlmcAcaoag= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1525:b0:365:cbd9:ac92 with SMTP id i5-20020a056e02152500b00365cbd9ac92mr486466ilu.6.1709481074834; Sun, 03 Mar 2024 07:51:14 -0800 (PST) Date: Sun, 03 Mar 2024 07:51:14 -0800 In-Reply-To: <000000000000d60fa905ee84ff8d@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000037444e0612c39434@google.com> Subject: Re: [syzbot] [hfs?] KMSAN: uninit-value in hfsplus_attr_bin_cmp_key From: syzbot To: glider@google.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" syzbot has found a reproducer for the following issue on: HEAD commit: 04b8076df253 Merge tag 'firewire-fixes-6.8-rc7' of git://g.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=175aa96a180000 kernel config: https://syzkaller.appspot.com/x/.config?x=80c7a82a572c0de3 dashboard link: https://syzkaller.appspot.com/bug?extid=c6d8e1bffb0970780d5c 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=173516ee180000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12fd7bba180000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/a4610b1ff2a7/disk-04b8076d.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/991e9d902d39/vmlinux-04b8076d.xz kernel image: https://storage.googleapis.com/syzbot-assets/a5b8e8e98121/bzImage-04b8076d.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/111a30273774/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+c6d8e1bffb0970780d5c@syzkaller.appspotmail.com loop0: detected capacity change from 0 to 1024 ===================================================== BUG: KMSAN: uninit-value in hfsplus_attr_bin_cmp_key+0xf1/0x190 fs/hfsplus/attributes.c:42 hfsplus_attr_bin_cmp_key+0xf1/0x190 fs/hfsplus/attributes.c:42 hfs_find_rec_by_key+0xb0/0x240 fs/hfsplus/bfind.c:100 __hfsplus_brec_find+0x26b/0x7b0 fs/hfsplus/bfind.c:135 hfsplus_brec_find+0x445/0x970 fs/hfsplus/bfind.c:195 hfsplus_find_attr+0x30c/0x390 hfsplus_attr_exists+0x1c6/0x260 fs/hfsplus/attributes.c:182 __hfsplus_setxattr+0x510/0x3580 fs/hfsplus/xattr.c:336 hfsplus_setxattr+0x129/0x1e0 fs/hfsplus/xattr.c:434 hfsplus_trusted_setxattr+0x55/0x70 fs/hfsplus/xattr_trusted.c:30 __vfs_setxattr+0x7aa/0x8b0 fs/xattr.c:201 __vfs_setxattr_noperm+0x24f/0xa30 fs/xattr.c:235 __vfs_setxattr_locked+0x441/0x480 fs/xattr.c:296 vfs_setxattr+0x294/0x650 fs/xattr.c:322 do_setxattr fs/xattr.c:630 [inline] setxattr+0x45f/0x540 fs/xattr.c:653 path_setxattr+0x1f5/0x3c0 fs/xattr.c:672 __do_sys_setxattr fs/xattr.c:688 [inline] __se_sys_setxattr fs/xattr.c:684 [inline] __x64_sys_setxattr+0xf7/0x180 fs/xattr.c:684 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b Uninit was created at: slab_post_alloc_hook mm/slub.c:3819 [inline] slab_alloc_node mm/slub.c:3860 [inline] __do_kmalloc_node mm/slub.c:3980 [inline] __kmalloc+0x919/0xf80 mm/slub.c:3994 kmalloc include/linux/slab.h:594 [inline] hfsplus_find_init+0x91/0x250 fs/hfsplus/bfind.c:21 hfsplus_attr_exists+0xde/0x260 fs/hfsplus/attributes.c:178 __hfsplus_setxattr+0x510/0x3580 fs/hfsplus/xattr.c:336 hfsplus_setxattr+0x129/0x1e0 fs/hfsplus/xattr.c:434 hfsplus_trusted_setxattr+0x55/0x70 fs/hfsplus/xattr_trusted.c:30 __vfs_setxattr+0x7aa/0x8b0 fs/xattr.c:201 __vfs_setxattr_noperm+0x24f/0xa30 fs/xattr.c:235 __vfs_setxattr_locked+0x441/0x480 fs/xattr.c:296 vfs_setxattr+0x294/0x650 fs/xattr.c:322 do_setxattr fs/xattr.c:630 [inline] setxattr+0x45f/0x540 fs/xattr.c:653 path_setxattr+0x1f5/0x3c0 fs/xattr.c:672 __do_sys_setxattr fs/xattr.c:688 [inline] __se_sys_setxattr fs/xattr.c:684 [inline] __x64_sys_setxattr+0xf7/0x180 fs/xattr.c:684 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b CPU: 0 PID: 5013 Comm: syz-executor247 Not tainted 6.8.0-rc6-syzkaller-00250-g04b8076df253 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/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.