Message ID | 20240215042654.359210-7-eugen.hristev@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-66290-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp164899dyb; Wed, 14 Feb 2024 20:29:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV/vWc8KapqPvqhA/ayD+IJ7fV7yCwGW2b226Htq4rjBVOuulCDXf/iCrrUr0sguvKLKPyAN3jhxwQYuyP4+YyRHFYlug== X-Google-Smtp-Source: AGHT+IHaL7/RAPo1spFmK35HsvG2z9VlhOPEFKkGNl9hWxtIzLD97j3rFFvhLhTXWU8pqrF3n5nk X-Received: by 2002:ac8:5a0e:0:b0:42c:3ebc:bda9 with SMTP id n14-20020ac85a0e000000b0042c3ebcbda9mr1007936qta.29.1707971385083; Wed, 14 Feb 2024 20:29:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707971385; cv=pass; d=google.com; s=arc-20160816; b=NIyaxBaiKfmPGnKiSc7qt5l+SSFcZssNVtTFuG6TedFy4lgS6kQf8N5eHPn+1JMTAi LKeOof83H7B94vFvfk5lXHWQUh467JJBeA0IBdmgLOUwpdYFT43TG0a1DBFNFk+do6+M cHRPwnqxkz0PzeLlprLYpU/frKg2pOITaKsnNnlPbWfSzJsUQct2YuCM35lrSJSC/fpB DTxnqCVXrmMtBw/VJcXrGbUS4JYZsZLiYqajopQ9Wcvrm18F/OnXFBR2DHYUFHMHBPxd ep2eVu4HnqHVA9CdOmwSZBXf6NuegIcy2oRjCWXprXvt+iW/n1KgZUqt5Mjrxm8ycivV BYxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=a10dU96oUgbeeU2HILozQQtbAHEtwkt6EHOQl3WO/6M=; fh=YX4HbHS7wMJfdu6Xp+2MgHIyDiEardnLcvtWgzaTy/w=; b=hRzSaMQ8xijF3vvKSX+pQDbjhm6O7mKXAhwcGyrdJ74C7ESiY6EQiCWxYniTGoau3f ua5XnooLz6hCGt7muESXE2GuCsFUsjCVPoYjFH4PKtPf6+vVWrNjchWN5F0dwz+yvBFn BGthEIW6/66V/ZpjxEJkzUqcgYam6Dwt+9IWuFzbQ6zh9LPkk/K29J4gEwXAwV5FDhlH xTy/7sc7H49TWyK5Nwjz69pfTvj5yr8Ja+/Fc9wQTO93l9qbOtM2R5dn75DACSjITtao qNHjewLm09FV/pPEvyH5Be1aHLbg7zGks4m4zd2RvoIk6Hxl0tAq1Zh8c26LYcr3o2A5 ae5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=iZwnhjtD; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-66290-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66290-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e5-20020a05622a110500b0042c3d2081d9si597289qty.9.2024.02.14.20.29.44 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 20:29:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66290-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=iZwnhjtD; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-66290-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66290-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 DA7841C230EB for <ouuuleilei@gmail.com>; Thu, 15 Feb 2024 04:29:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5614F17732; Thu, 15 Feb 2024 04:27:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="iZwnhjtD" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 705EA17586; Thu, 15 Feb 2024 04:27:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707971267; cv=none; b=Vj2mEZpoVfKUUTNTgfHB0CxjwhsrdESRgNhWX32Xmay+vHIUGusbizrKhrTOSRs0S2r4pO2LArvZw7I5Safu/0H86lf7Tli+o+BJdevBatoep/+cGGjP87yxS9NqJrrCNHq0oZw+SSGUBZnv8a1T174fXDg9JQSbvY4cDnoptKQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707971267; c=relaxed/simple; bh=cVITJNZ35p97HDzRx3PUv0ugSW5S2fLqOWH88XqFex0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=iz0kkrpGv4hvo30a7pGtcip0e6hCQCJIgvCxiGZwX7Vsk9d0yQ0RfX3UQ0rsn8JJoqGmFNTwS3WXimFmbJkENY0bX7rBpsohoxeVVeuYzZD6BHAU/caoNel+r3HfkA4SxYFKg8uYy3sLrC236zfsukv2rG2ZX1o3pHCpX8f2vsg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=iZwnhjtD; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1707971265; bh=cVITJNZ35p97HDzRx3PUv0ugSW5S2fLqOWH88XqFex0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iZwnhjtD3ErUfbmTLbOTNncaq2pEk2ej3TWecor+LbfGW1B2bkNxfbvmuP019bVjm e5rbzMu5QzfkWi20kcRUYQX2kXf20g7uQP2UlXCERQMWfBioYff1+7VJ6EX8MAL+vr LeDf9LirL+vm/RalrRGZSO14devm7KAfjLs1Ed8+EYgi9tBT0RdoEXWRPIHzA6WYf/ RjZdAK8x986WAPjgqKjGdxHEV9f3FaLHW5EQ9iku/tGTXcMGzHbjN7Ck+zlxXsjPBi l/19w5zatSLYpz2HFnQtDaLzOeXvtvoRez7vqyyK/nfSrfNnpjGYvfVdOM14znu/4H y4nVjvaqcsTpw== Received: from eugen-station.. (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: ehristev) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 3D14A3782098; Thu, 15 Feb 2024 04:27:39 +0000 (UTC) From: Eugen Hristev <eugen.hristev@collabora.com> To: tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, jaegeuk@kernel.org, chao@kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel@collabora.com, eugen.hristev@collabora.com, viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz, krisman@suse.de, Gabriel Krisman Bertazi <krisman@collabora.com>, Eric Biggers <ebiggers@google.com> Subject: [PATCH v10 6/8] ext4: Log error when lookup of encoded dentry fails Date: Thu, 15 Feb 2024 06:26:52 +0200 Message-Id: <20240215042654.359210-7-eugen.hristev@collabora.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240215042654.359210-1-eugen.hristev@collabora.com> References: <20240215042654.359210-1-eugen.hristev@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790937803145843354 X-GMAIL-MSGID: 1790937803145843354 |
Series |
[v10,1/8] ext4: Simplify the handling of cached insensitive names
|
|
Commit Message
Eugen Hristev
Feb. 15, 2024, 4:26 a.m. UTC
From: Gabriel Krisman Bertazi <krisman@collabora.com> If the volume is in strict mode, ext4_ci_compare can report a broken encoding name. This will not trigger on a bad lookup, which is caught earlier, only if the actual disk name is bad. Reviewed-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com> Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com> --- fs/ext4/namei.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index 6e7af8dc4dde..7d357c417475 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -1477,6 +1477,9 @@ static bool ext4_match(struct inode *parent, * only case where it happens is on a disk * corruption or ENOMEM. */ + if (ret == -EINVAL) + EXT4_ERROR_INODE(parent, + "Directory contains filename that is invalid UTF-8"); return false; } return ret;