Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2234690rbb; Tue, 27 Feb 2024 15:38:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUAnlDOWh1NdFDlRj4y+YM4wrqEO5yU+l18TfLF4ny+2CP0u1XcZYWcqesll1PDW/PE9ZHysjbG8HG7aUgPaKS25b2ovF/5j2lBA9mb3Q== X-Google-Smtp-Source: AGHT+IGV5uzs4koNEt/yvN3va21MFD0amF0ilqgIfVE8VfBB46yTx0WiOc7eA/kr0pWWVyQdst3p X-Received: by 2002:a17:906:f899:b0:a3f:804f:c1a4 with SMTP id lg25-20020a170906f89900b00a3f804fc1a4mr8097317ejb.74.1709077107275; Tue, 27 Feb 2024 15:38:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709077107; cv=pass; d=google.com; s=arc-20160816; b=zv4Gup7MfZhFistevrJLFXGj4ANBMvOC9f/Bf7m7D/yOsVELM9Grq0AlnnwpXr8bD2 Q0FBK3ENxZo/e8vIjoHU1S/Ij+LlmvoVh4PDNaWnCSzzMSmDbKhy0Zs+qrl4BI2KabzY H7z/Ho3oUrvU3PCqWyIEIYOpAQOg9VtxisdQHdm/NT9v9mJsIepbeqvT2qaWoF8cnkOZ j0kph45+v9u1fVnwz+z4ffgBGCmG3khxv+AmcOAuHjOH6xTLynpGBfv2yuFOUQQknFXe JyHgEXyFjkQ80oyfBswwzeARFEFE1i/cqFS2TcUJrCBNJ4SFi3P+DYG8Qs88jo7kMahd D24Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:date:references:organization:in-reply-to :subject:cc:to:from:dkim-signature:dkim-signature:dkim-signature :dkim-signature; bh=9HVWC3SuhyxQFuKW/pPwGjCJddJjno4JKmEKNYaAYI8=; fh=K6N9D1CK61GKyZaMsgrxPGyXpLERMDQ1f/zHtaxEeRM=; b=ZjYgsgNYpi+fZieO0Awd/RVrVxFDu7YMx9x/wDZexdZcDBROvR33cTaYhUbarkZB0K Pd3fli1BvG/5HAEvWHgmTWBevQnvPy6e9oYnc1GoVgIcpW5PznZ86SoDc43rw3SdpBLl DL792iGfKZpoczDw2XwTXwXPc2SjPHaDlS0M6WitRfB5KAHstOIN4RqcDJj6Xqk9CR8j gkIg2maNvnynCw2tnfsFsyQPTKyxIN4ouofo+GSZ2rIe+7alypS030Rrntz8FP9Be1TG iF1AdEqO7NmdZvwgifu/clQz84e3Gp2n5WhrP32lIQzLd8ZK/TVdHX37lHTJr69RvTbD L/Nw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=NlvI9rmn; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=NlvI9rmn; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-ext4+bounces-1411-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1411-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bs26-20020a170906d1da00b00a3ec28ac773si1122780ejb.363.2024.02.27.15.38.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 15:38:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1411-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=NlvI9rmn; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=NlvI9rmn; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-ext4+bounces-1411-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1411-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 03BBF1F22F20 for ; Tue, 27 Feb 2024 23:38:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF70D56742; Tue, 27 Feb 2024 23:38:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="NlvI9rmn"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="uhn8s53X"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="NlvI9rmn"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="uhn8s53X" X-Original-To: linux-ext4@vger.kernel.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 A960555E48; Tue, 27 Feb 2024 23:38:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709077099; cv=none; b=Im3ZiFOPgf294GwoScKPhLMSY5f7lfMm0THr56DwxUhoTnLrmnpYBJ22OVf29vdq5FhBfb7pTn6Ttkq2/PlHIHbHQPqRpMhMohTzouI6b8VWm9aNOgJRPQnDAmWrqriCd/ZhCiz4xhIkPEXJPDb+huc66PlJ4Jf8auf6VrcDq3I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709077099; c=relaxed/simple; bh=aLQZ8HS/XMEIR8wKVsfYExoeIYXeKU1TdW1WZqUS37g=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=etQtLe3fun/qgmbUxstRXW6s2b1EEI+YQAnLr44IGTuimPuGzFEnwo+HtJLjCeS84ZsCCNFiflkPK5dYYnQdJHBVciR3HNjjT7jddhmbLqRzsol57X8Mw9Pk4mWBmYLe4Fa57lv+OIGjof8soRilg6jSo3LIJqpZ+fl+Toshc50= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=NlvI9rmn; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=uhn8s53X; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=NlvI9rmn; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=uhn8s53X; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (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) by smtp-out2.suse.de (Postfix) with ESMTPS id 76B301FB95; Tue, 27 Feb 2024 23:38:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1709077095; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9HVWC3SuhyxQFuKW/pPwGjCJddJjno4JKmEKNYaAYI8=; b=NlvI9rmnD0GZ3zkgHwP4FRNU9qk4/ZIqjudTcHZxjIf0mk/2GMLNB9lj81elQ/DSk9HOO5 o+3w7/+R0E8dQCWokXUFbokQH/0c8hdlBUjTrT02S3wkeaUBZ6GxICz8yP/1orGD9o2KWw UOaXiUhzzvFbXYl329L/7FntOmoRdR4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1709077095; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9HVWC3SuhyxQFuKW/pPwGjCJddJjno4JKmEKNYaAYI8=; b=uhn8s53X6Vqu9Rr4G+pFz7RHTq4g1jw20uNJpV6PLm6YnDoceU4jLiHNyXUt6+DUFE0cPq ZeQ2GIZC0nF5QADQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1709077095; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9HVWC3SuhyxQFuKW/pPwGjCJddJjno4JKmEKNYaAYI8=; b=NlvI9rmnD0GZ3zkgHwP4FRNU9qk4/ZIqjudTcHZxjIf0mk/2GMLNB9lj81elQ/DSk9HOO5 o+3w7/+R0E8dQCWokXUFbokQH/0c8hdlBUjTrT02S3wkeaUBZ6GxICz8yP/1orGD9o2KWw UOaXiUhzzvFbXYl329L/7FntOmoRdR4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1709077095; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9HVWC3SuhyxQFuKW/pPwGjCJddJjno4JKmEKNYaAYI8=; b=uhn8s53X6Vqu9Rr4G+pFz7RHTq4g1jw20uNJpV6PLm6YnDoceU4jLiHNyXUt6+DUFE0cPq ZeQ2GIZC0nF5QADQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (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) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 2F63913ABA; Tue, 27 Feb 2024 23:38:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id UTxmBWdy3mUPNwAAD6G6ig (envelope-from ); Tue, 27 Feb 2024 23:38:15 +0000 From: Gabriel Krisman Bertazi To: Eugen Hristev Cc: 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, linux-kernel@vger.kernel.org, kernel@collabora.com, viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz, Gabriel Krisman Bertazi , Eric Biggers Subject: Re: [PATCH v12 6/8] ext4: Log error when lookup of encoded dentry fails In-Reply-To: <20240220085235.71132-7-eugen.hristev@collabora.com> (Eugen Hristev's message of "Tue, 20 Feb 2024 10:52:33 +0200") Organization: SUSE References: <20240220085235.71132-1-eugen.hristev@collabora.com> <20240220085235.71132-7-eugen.hristev@collabora.com> Date: Tue, 27 Feb 2024 18:38:13 -0500 Message-ID: <87y1b54gwq.fsf@mailhost.krisman.be> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Level: Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=NlvI9rmn; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=uhn8s53X X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-3.58 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+]; MX_GOOD(-0.01)[]; RCPT_COUNT_TWELVE(0.00)[15]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-2.07)[95.47%]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from] X-Spam-Score: -3.58 X-Rspamd-Queue-Id: 76B301FB95 X-Spam-Flag: NO Eugen Hristev writes: > From: Gabriel Krisman Bertazi > > 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 > Signed-off-by: Gabriel Krisman Bertazi > Signed-off-by: Eugen Hristev > --- > 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; Can you add a patch doing the same for f2fs? -- Gabriel Krisman Bertazi