Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp649242lqh; Fri, 31 May 2024 11:55:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXWXxLT+eA7d/3EYNSRtlR7fvGcWyV5H0Iih21wBrAqaO72LWCNb4GFaarGLUvhV1u3RvG806yc/Wqy6WP1taDgi4AFUWVaID2XOx8rEg== X-Google-Smtp-Source: AGHT+IHr1KRGwY7la23HbI8kNFDJWQBVLiwQrtQKhdzAeslcGNKc3YzaE+q6h2ovgRDpjrkgvqLq X-Received: by 2002:a17:903:24c:b0:1f4:7f18:6d7c with SMTP id d9443c01a7336-1f6370a7614mr32716095ad.61.1717181739586; Fri, 31 May 2024 11:55:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717181739; cv=pass; d=google.com; s=arc-20160816; b=DtKhBiP2TvsKsJORl62fwqrLevxClM/qK9QaeXBtZ20JxY4/vp2wK6wStJTOPnGEHi UKK03PUCpWVBoAvz5SgTSnFRgYBpBEzqmkBqTRr+vhX91T57GJBxMAcoL7tMG+fkwl/L VSIPqk9BaVs46JNeBpEb6dVXJhlVoq64qAj6sADjyKcMrziwQjn0TCsv3CgPl27VXsNq yOTG+3EFE90niUyiNY5l2DRLfL7hM872fDiaSy6DzB8kKpAux9qjGb8G36Fqqp+5mFLK gwO9IHmj+9Q85CBRLpMihGNh03WpwOu5KaM+8Azc2bcvMmN9UxOO6wrqiFqVJfDmur0c K1Og== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lbfXO/uW2o/XDwugldj2ri6H2rwAe+Qt8ou5V8PqqoM=; fh=iNH8wyiPh5dlN08PlyAKwL1FkyFPLUSTY0GvKteV9cs=; b=BG2OSO9GkUuyq4cz5bdkVaUcr5sF97byeZFfAY+MBQe3kN0GdQvhfVZtf3jy6df9k5 7u6Bw6byuEFf5NixW1mVwrP3d+dUoEfO2Os33ChmYw5v8WUOcFzI/WqZzgbnMcgGUtO7 3Q9OC83eac1AeCFq4NQ0Mm3ttLniikcr1j92A1HlLdP/7qBLrPetxjXYDgk/0+SIhXYP zfUR1JxCKnue6ycXrX61pHUBwlNrhYiPE2YWvkPIhW4ZZ4yOKRoIUzajcv2rp1R/wpaV XLxZ8+lMQMZmUBM1leAgUVa2wRLmxcFKawJf18t8vLyIYBpMAD0RD/sa3URvuczoSduL rV4g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pdFtuEiW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197319-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197319-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f6324094cfsi16183625ad.529.2024.05.31.11.55.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 11:55:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197319-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pdFtuEiW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197319-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197319-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 8136DB22C8F for ; Fri, 31 May 2024 18:55:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 256367FBBA; Fri, 31 May 2024 18:55:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pdFtuEiW" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 385E57E563; Fri, 31 May 2024 18:55:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717181722; cv=none; b=MLbKcALVr+E961c9UexKbAVYW/Bo5LoFjaZTXsrZ7DF6diJCs2UAlqdWYBiYoFpRUsR68MCWhfh+iaSSs86Lfa0OQAggGk1e/NOBICoo6gR+T6EPiwvgg/m2aVrBpl0TfsQUNf3Tqi+uvtEBsuAxVQMNQ1LqNr3Dlz5EpO3fTxo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717181722; c=relaxed/simple; bh=WuHvG2oalIqTM1m9wO4kdurTHHM8QmXjw2z7bpGaImo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ojhUmt/DmMfJgn0pgIWhKXHAVONnAcMt3yT8Np7nlpeMxDPBx29PdUO6UEMcbrOeQ0fE/XChLiBZbCZ4VxURGTWZb75bJjWfByW5kLcCJ6nT+vX6P/aLpUyqUiXO6rF9w0mEZNppOwXe7UP8gGtdX6xUFE5nIhYv3bustnUyGIc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pdFtuEiW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35C0CC116B1; Fri, 31 May 2024 18:55:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717181721; bh=WuHvG2oalIqTM1m9wO4kdurTHHM8QmXjw2z7bpGaImo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pdFtuEiWRBKlfEt/Jm+TBEnM6gGoF36pGUFRi4tb9EVzO6olRyIFpl0O69mkQTL3f 0+hZ8ujtQuNzH60tS+YF63MfwgBlzTzHKhSnx8BW3d9zP8ZSbe/itTaaFRN17sPTJa nmvPQhPnVJ5DPQw/+VU2Cy4a2nisulJAuX2/odWcPUCmAhQuXvz4sm+eGhJS11l4Dm AYonGo0podM6AOrSbned+4JgEE8qDwUByNsSr2sumJT+9yB8tXTFmjd/9VLcy9+cbC B++2BZCQm8he9i6zMtEcC+rzqdnwpiaFxdmyNikGzBoC2HRVszGzD7l/T93snXwgon dNQu5mmzQ1izQ== Date: Fri, 31 May 2024 11:55:19 -0700 From: Eric Biggers To: Lizhi Xu Cc: lkp@intel.com, coreteam@netfilter.org, davem@davemloft.net, fw@strlen.de, jaegeuk@kernel.org, kadlec@netfilter.org, kuba@kernel.org, linux-fscrypt@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, oe-kbuild-all@lists.linux.dev, pablo@netfilter.org, syzbot+340581ba9dceb7e06fb3@syzkaller.appspotmail.com, syzkaller-bugs@googlegroups.com, tytso@mit.edu Subject: Re: [PATCH V4] ext4: check hash version and filesystem casefolded consistent Message-ID: <20240531185519.GB1153@sol.localdomain> References: <202405311607.yQR7dozp-lkp@intel.com> <20240531090611.2972737-1-lizhi.xu@windriver.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240531090611.2972737-1-lizhi.xu@windriver.com> On Fri, May 31, 2024 at 05:06:11PM +0800, 'Lizhi Xu' via syzkaller-bugs wrote: > When mounting the ext4 filesystem, if the hash version and casefolded are not > consistent, exit the mounting. > > Reported-by: syzbot+340581ba9dceb7e06fb3@syzkaller.appspotmail.com > Signed-off-by: Lizhi Xu > --- > fs/ext4/super.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/fs/ext4/super.c b/fs/ext4/super.c > index c682fb927b64..0ad326504c50 100644 > --- a/fs/ext4/super.c > +++ b/fs/ext4/super.c > @@ -5262,6 +5262,11 @@ static int __ext4_fill_super(struct fs_context *fc, struct super_block *sb) > goto failed_mount; > > ext4_hash_info_init(sb); > + if (es->s_def_hash_version == DX_HASH_SIPHASH && > + !ext4_has_feature_casefold(sb)) { > + err = -EINVAL; > + goto failed_mount; > + } For the third time: you need to use the correct mailing lists. Please follow Documentation/process/submitting-patches.rst. - Eric