Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1350725rdb; Tue, 30 Jan 2024 16:23:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IEo97KpEQseRt2NgUSEmjmEbGOX7hqYxIWmEoq7EyQteW+3k5XahdMIH1TayojSJ0TKgVG9 X-Received: by 2002:a17:902:ea8d:b0:1d7:8531:6978 with SMTP id x13-20020a170902ea8d00b001d785316978mr2720931plb.68.1706660628965; Tue, 30 Jan 2024 16:23:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706660628; cv=pass; d=google.com; s=arc-20160816; b=I86xE8xmDQZTokFjCyQZxaw68ZCkzdMmoiUXP422MDB3vZ9Ki6PhOKujd1r5HjqXoQ oySgl5hOZbJdgZD6QrCreiTWysd0vB6lDkNMZ7m2lKo/pS5+yTn6pp9eDI8C/o0wAR+0 +OkQoKie3XhJbXJtxIhHQCrGKo4O3v3dpLfiQxpWHLSIgM0kCc5AML97pPxRWRZkSdEz zTE+p1xXSLdIKNyCxl8N2GPxiBiysNdepWzK73tyauLQaLvW/VsiuWbxzJgBrONsI7gM fLiENQeLXHU7AZHQhUnJJJr5N3kaR436y19FmN6wJFEHsf9J1YGSmW3ancJdHaK02TYA gAdw== 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=ED+roD9mzDndzR24BJXX1xkTwyet9MXt9L11gGKkyaI=; fh=z2mZPWeFOjZDhxFlQuLsJZCae7+IL7PJsF4xAreuVs4=; b=KDhuMSOHEs0qH5tE8JMfp/qNJA3YSHgS2RUcLP2CCqogovYpJ3Vv107dt3lP1twCMC 8ra0LnHLQTqczOLvidO3fKVV70JbJCJEKg6vPfUEdfcrjHaDD82EzKredRhOSBcd/Ib4 aGrPFvyqniCB++RVCqffCybbL34KUV7ffrKJCI2dfudYx7q3RhKprlPMUDjJFYzw7LBe M2cYFZyVSvSi75ZnLL5GZegC/0rrcktDINnG102Lhfp5Iz54dYKtNB4d/lzwQO+OqndB ws0AtINWC6f+/WCocNWbvmuQTCkzPM44+/c9cp6YcGen83E4DmXgX7fpPudjNetg2VnE 1s8w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PDTNjGjy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-1030-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1030-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 19-20020a170902ee5300b001d745150080si247294plo.233.2024.01.30.16.23.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 16:23:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1030-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=PDTNjGjy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-1030-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1030-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 F1B1CB24B55 for ; Wed, 31 Jan 2024 00:23:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA6BF4C8E; Wed, 31 Jan 2024 00:23:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PDTNjGjy" X-Original-To: linux-ext4@vger.kernel.org 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 605934C6F; Wed, 31 Jan 2024 00:23:00 +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=1706660581; cv=none; b=hewC3G0sssuubHhHYQUYn2eniKIBVwoRBl2L1kH4zCZIrjdXET2GvM2SoPtfhsznzMM9ajCPIqkNW+xAc+yMMVzyC0BF2E1m8vW7ena5iYDWC+w1zzABzunl7UEJXczE3OAQ+Ub4HsF/TtT0RKElvdgZwxveHKpc40TIlx0V+5k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706660581; c=relaxed/simple; bh=ZHcmK97bEwj2r3qzU94neICtQokjkJ+hHC+srZkKdz8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=J/OuBG6bai6tae1YoFzYZiTsywrdNluxxnCiwCdOknUpaYBp/pNYzAsYvD2Hv14xytNA04tM3VwNOnWA3n9aW4SPl8kIbVV1QM5FD6awRDDV1n4/c3VI2ExHHuduMIf/+KWgqpk1YPFYJDQmPDjVlbCsVkSRy4qqB2cnvC5xcnw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PDTNjGjy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74D3CC433F1; Wed, 31 Jan 2024 00:23:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706660580; bh=ZHcmK97bEwj2r3qzU94neICtQokjkJ+hHC+srZkKdz8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PDTNjGjypkWJm6CTVfPNj3ZBHYWA9TADsGf+ary7R9O5cPhHWun/I+BStulvVfXtW 2U8o2IOFEkvbyEKBSV4rcnqvG3DXCGrWzPeutmmYgQQGW0oHtqwoNUgmLWAAwtyz88 sWtr7nggk9zY/yDLPe9NBRALy2O6cc9OJW2Q+wm58C6shrPDs1aCrEIX3K33tpeT2W f2A6U8T8XU7Mz/I9D/P9CC6UA51duIvSCNHg94zj6xwo7pDlw9UzWRlgsdybfp7vd7 laIj59dS6GVYbPxaGgZmkNGRYXUwaAzpJ6zElEPG9N52waM7TN/UFOs4ibFjUq4Erd uDgCv/MmLnbaQ== Date: Tue, 30 Jan 2024 16:22:58 -0800 From: Eric Biggers To: Gabriel Krisman Bertazi Cc: viro@zeniv.linux.org.uk, jaegeuk@kernel.org, tytso@mit.edu, amir73il@gmail.com, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v5 01/12] ovl: Reject mounting over case-insensitive directories Message-ID: <20240131002258.GA2020@sol.localdomain> References: <20240129204330.32346-1-krisman@suse.de> <20240129204330.32346-2-krisman@suse.de> Precedence: bulk X-Mailing-List: linux-ext4@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: <20240129204330.32346-2-krisman@suse.de> On Mon, Jan 29, 2024 at 05:43:19PM -0300, Gabriel Krisman Bertazi wrote: > ovl: Reject mounting over case-insensitive directories Maybe: ovl: Reject mounting over rootdir of case-insensitive capable FS or: ovl: Always reject mounting over case-insensitive directories ... since as your commit message explains, overlayfs already does reject mounting over case-insensitive directories, just not in all cases. > Since commit bb9cd9106b22 ("fscrypt: Have filesystems handle their > d_ops"), we set ->d_op through a hook in ->d_lookup, which > means the root dentry won't have them, causing the mount to accidentally > succeed. But this series changes that. Doesn't that make this overlayfs fix redundant? It does improve the error message, which is helpful, but your commit message makes it sound like it's an actual fix, not just an error message improvement. - Eric