Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp421531lqp; Sun, 9 Jun 2024 02:15:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWwUKGaz6/P+YyEJDexk01jCRa81sL7kiFS1ZkB8ybaCI5s3fUVN3JgT7nSsJcM/q60KqkEVz5wKuRkBLCw9Ylbz0v3jYlXpDnieRKX3Q== X-Google-Smtp-Source: AGHT+IEc6Ltz8+NE7/dPIpf6FxnTRcL3jqJp0hk/3URHm8YpXEuiIJjZwvOeti2seuerfgkkrxKI X-Received: by 2002:a17:902:d483:b0:1f4:7a5c:65d4 with SMTP id d9443c01a7336-1f6d02dcfd8mr78730395ad.18.1717924552270; Sun, 09 Jun 2024 02:15:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717924552; cv=pass; d=google.com; s=arc-20160816; b=cREM+ra+jBp26JIUMge6fmIboTqPOVzOncBEISVw/gdlzXGaV0x3iLsAnHPdgpln/O uNBnD2z2RpDpvBLInMkbeuVrBrmDolYQa3B9kRu1+LKe98t1GN9Fy4V17xrODFCwCg/f m/dZkmN9qnJcWdqih7HQf5dwi16MTxol9H6RUdC6VuHXxfywlbfu+YFaggL9lhfsbO8+ WgsSa0uRK6cJwia5hQCSB0gutToiErKls7A8uHaedHCHj+aaaqNNmdYDgqCDcEVsMwKt YA8UWyDt/bmiregu1Mmup/03waQpWJ6agIl4gQqxDb3JNPOuPMk7WrbJgYmv1moz4AAj zNLQ== 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=WCsiZCKTneAVXR4L4MJh3qWE+iaVc/isJ8aFs0Tt/3k=; fh=uOxEfs73UXnpmsgYZepGR6OauibfyleDeycBITvBwXs=; b=av2ns6KCbuxfRwT3x3eM5mQbGf0DruXNkp+hMeM7xfKh2lVo1hI55L77kACUzo7BD5 +l64WtwGZN6h7bgTBrcPDFs9bfaZQarh+Hzb9GhZ9uak/wowT35I54O4EVKRkWlN0fAM lKSY2yiCvi4chQTAEwSZKqNmzZmKjWMmIoGePdXGc15W1rla3TzYbKguUswwCygDTI88 HNeRfSvHP8zmrgK6KGogFw/ASWFgj5Z1DsvyzutKMLe3jD9rsGwHehbsu0G2Pvj90JnV BA5L/Ape2c1qAxS1l/xdMEPWjdFah9l9DvFJIhjXbEORqVfTzZjHwjVIkRwPVrbFDb+r UTew==; 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-207301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd7f3208si25734945ad.445.2024.06.09.02.15.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 02:15:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; 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-207301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207301-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B5BB4B2128C for ; Sun, 9 Jun 2024 09:15:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3068E1CD2D; Sun, 9 Jun 2024 09:15:41 +0000 (UTC) Received: from mail-io1-f77.google.com (mail-io1-f77.google.com [209.85.166.77]) (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 4D0865258 for ; Sun, 9 Jun 2024 09:15:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.77 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717924540; cv=none; b=hbgJoZ6DecvRXcQ1rDIwPljfk0IckDYvDaF7iBY8UN9xBdk517idb0YPGLyeaFgyqOre+jrdFUAV9nopYsXqH20xNjziaYIxBAcvhYGeEnBt5h75AoX6fxpz6xkh1LT9eAEiCMrk9DaTSs5SgEnduCvP3clviOyK+uLq2hI9OaQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717924540; c=relaxed/simple; bh=J89eN+nsv1LOTu+NpSxVQN546rR1ATPCZ4A5JMNE6cY=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=uNWM9ZG0T9LleIFhRq86lx/4uOf//2IcVD+cNAHl6aWjzZp7LvvOYIF6CMd5wZ/tUbWZzJpsQraojr92LNtCIh8bjV2/ju2GO+nuedcztYTlaq8k8U8Em+EL0FGv1J921r9sJ+ndNqykis4RYkzzImOu4tebPiv+v4wD4Xt+kxI= 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.77 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-io1-f77.google.com with SMTP id ca18e2360f4ac-7eb4c4378c0so393294639f.1 for ; Sun, 09 Jun 2024 02:15:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717924538; x=1718529338; 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=WCsiZCKTneAVXR4L4MJh3qWE+iaVc/isJ8aFs0Tt/3k=; b=omtnoLr7HwBuJ4vYH4NWrTPP1WSlMyYkyFz6HOD1Gs7+tFMTRyteojNuUgQesJ1fLv OlfoLPfczCsE5VXnXo9rf0b4mW9vyQuvykbziv7eDKsytlW4teFcBBXXITMBKHAr8ePH VHeZXJ7YokW/yYaRWwq61pecBY6PPyV69942trs+6RVd/bOhLcUHCwWSd7V38zDTzcbz ir69cMqsVatRSF8zsC10ejgOUvFXoX2imKZJeFm6BVXN+I00UPlimdVTcjbLXz1MlI0H 2hFw7H354by9langzs5jxYmuUeoTeFNdrXZ+sYjZwal55HdmFLiRkMyTimNDJxITBzUV daow== X-Gm-Message-State: AOJu0YxH0QQ3lp97LH6t6pFa9CPI/ctUciuD7zhmOxS70rVdH9shpjWU k5Smp/19gTnx1+2YylvnY9p+7gE24ynvkjOIuacQyJXWeFqU4WvS4H/zgC4ivBE2hp6bVy9OlcS VeQrTt2S6babpy7lAq7d5hx/9oCfDP5ALJ4wPK4fzxvA3YBnkzjpz1DEvUQ== 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:6602:6d17:b0:7eb:7e0c:d172 with SMTP id ca18e2360f4ac-7eb7e0cd4fbmr10295339f.3.1717924538373; Sun, 09 Jun 2024 02:15:38 -0700 (PDT) Date: Sun, 09 Jun 2024 02:15:38 -0700 In-Reply-To: <0000000000005ad04005ee48897f@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000dc66f6061a71790c@google.com> Subject: Re: [syzbot] Re: [syzbot] [hfs?] KMSAN: uninit-value in hfs_revalidate_dentry From: syzbot To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com. *** Subject: Re: [syzbot] [hfs?] KMSAN: uninit-value in hfs_revalidate_dentry Author: chao@kernel.org On 2023/2/10 20:21, syzbot wrote: > syzbot has found a reproducer for the following issue on: > > HEAD commit: 8c89ecf5c13b kmsan: silence -Wmissing-prototypes warnings > git tree: https://github.com/google/kmsan.git master > console output: https://syzkaller.appspot.com/x/log.txt?x=10b53fff480000 > kernel config: https://syzkaller.appspot.com/x/.config?x=91d3152219aa6b45 > dashboard link: https://syzkaller.appspot.com/bug?extid=3ae6be33a50b5aae4dab > compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 > userspace arch: i386 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1409f0b3480000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15c76993480000 > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/fa537cffb53c/disk-8c89ecf5.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/5b9d03c04a3e/vmlinux-8c89ecf5.xz > kernel image: https://storage.googleapis.com/syzbot-assets/55c166dec3af/bzImage-8c89ecf5.xz > mounted in repro: https://storage.googleapis.com/syzbot-assets/b234e4e5c704/mount_0.gz > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+3ae6be33a50b5aae4dab@syzkaller.appspotmail.com #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 771ed66105de --- fs/hfs/inode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/hfs/inode.c b/fs/hfs/inode.c index 8c34798a0715..744e10b46904 100644 --- a/fs/hfs/inode.c +++ b/fs/hfs/inode.c @@ -200,6 +200,7 @@ struct inode *hfs_new_inode(struct inode *dir, const struct qstr *name, umode_t HFS_I(inode)->flags = 0; HFS_I(inode)->rsrc_inode = NULL; HFS_I(inode)->fs_blocks = 0; + HFS_I(inode)->tz_secondswest = sys_tz.tz_minuteswest * 60; if (S_ISDIR(mode)) { inode->i_size = 2; HFS_SB(sb)->folder_count++; @@ -275,6 +276,8 @@ void hfs_inode_read_fork(struct inode *inode, struct hfs_extent *ext, for (count = 0, i = 0; i < 3; i++) count += be16_to_cpu(ext[i].count); HFS_I(inode)->first_blocks = count; + HFS_I(inode)->cached_start = 0; + HFS_I(inode)->cached_blocks = 0; inode->i_size = HFS_I(inode)->phys_size = log_size; HFS_I(inode)->fs_blocks = (log_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits; --