Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp433309lqo; Fri, 10 May 2024 04:39:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUyu5+8VXOc57au2GzkITFTgseFGNRDDdZorCSnc7VIfZz7pkXGL/99bdE95B4Htky+eYNn4KkofFFNyg2zkPYr6hKKgX2wkOnA/lOVnA== X-Google-Smtp-Source: AGHT+IGKIIeP5Ga5033ZghdiqOot5BK6LU+vDa+pBRnucYDJSTgkwYotGiNDfCSsaX6RSDwSI7Pn X-Received: by 2002:a05:6214:5404:b0:6a0:56ad:7d08 with SMTP id 6a1803df08f44-6a1682323bdmr25011346d6.43.1715341190083; Fri, 10 May 2024 04:39:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715341190; cv=pass; d=google.com; s=arc-20160816; b=Eob20fdhNeJwRGDBy5Mq1/9uQ9kCbjEETuLdCTVO3WfuCc2vaQiqTgc1k1pmN169+z 8gw49asRbOccwvwVTrsU4PmKX0T4er+yHES+zhTqXFtkYYY/S7EXKaszDXpD/G3/g90E riuZhZbg46SGpKvcC2lPG6s2gv2at6PKnyx/9jDYqm8IHbTXymuePzp8o4T+EPHMPQsk o0VkzhB84TguuL3n+ZkPaXx9y8wOsKRK6ZarlhSehdX/DRGpX+VAISamy9NmU46UY4EB hDZ667A3iJFD+lA0OP3obKdGhjyEVogEpZ7yqUbasjo0twKW1v2WpJGa9N9PhbDsICbj 15hA== 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=zo0a53yF766BPjBHcfZU1tYvdt+XlMOFWxwqYz0KFUk=; fh=SVavwcaVICvBzVXrHrVqt9IT8aef29VDCrIzDskLpZQ=; b=q3mgTr/Wk/slwJEu+e9vjPhGyk8e+z0sN8MgXCNSCvSynZ6xTtJpasC9OSU6xG1JL0 mSNdhnJxElOUwjiI4q0V+uC9WESOU6GxTXscqgGsOTJFAg2FmAzftibZoC5GJdpfQwGc Mr1UnkRqi/zsl+4alHHmLkN9gmVcRm7/gpcyoinc80ZK/NIpRJCIP8Fn6rHBM9yqH6kw k9SFq2IfqXsDdGWpPetgnH0HJyQ2IT0SBofjCmqMhMU8oDl3d+Nl4yP2wwalC8zcgAsk Fvs8A0JuaXODp1iYkPc1cn9l1cRc9mlgMUr1leHNUzSEtQYHcn/7dU3rR74xZcUSXoNO ti9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CpkkZ62Y; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-175691-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175691-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f2b5bfdsi34665816d6.335.2024.05.10.04.39.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:39:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175691-linux.lists.archive=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=@kernel.org header.s=k20201202 header.b=CpkkZ62Y; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-175691-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175691-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E35E71C2489D for ; Fri, 10 May 2024 11:38:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0F5416EC0A; Fri, 10 May 2024 11:38:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CpkkZ62Y" 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 BB21D21340; Fri, 10 May 2024 11:38:24 +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=1715341105; cv=none; b=F7zNiV9egLgiR2gR0HxcTNhJuQFeswdNMLMQzjC+vOE8la7he0VjbaDzkaF7jfAzO9IqNKPnGHeWO3Sq0L4te4+CMZ8GmdBCSFRn0sL/KkTRc3HHq3JyKIO4xrgoF4Wb2jE8Y+EaG5gN5kdmmiPqaS7gVAeEbh6TuFnfNfcSdv4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715341105; c=relaxed/simple; bh=w3BI4D5JBPl2WXO21E0L6qbAIpFhZSt6nwXLcFPR5QI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IzobMuZRNka8JG/QG8UVkz+jhsFKh1r7BhW6RMzKSUV88u9seUZ+0xGyAgOZ5PA8qlRHlUlzPatRgdhI89EGVjibbES8mC3KEmXf1gWPn3wVb7jIBETe+nc91DSRfDKOWA7NbgwP6dchmaPogsz6so5WGPYJ/0yFz9YsSS+vhBc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CpkkZ62Y; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40505C113CC; Fri, 10 May 2024 11:38:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715341104; bh=w3BI4D5JBPl2WXO21E0L6qbAIpFhZSt6nwXLcFPR5QI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CpkkZ62YAEEoEIAyF5eXcSUuk/m62T9XYGeBgMong1LMUDOuEOWgDuThCSVJaTEZk RAXjF9wpNp6SwmIXKtCfcZgEXZtrZMnLy5i5NSbLziB2oQlzxvJtOL6LtKI2C0bKl6 SnwjXy99V53wWbaTtXWvU5ZFcQjtgfF82PEhHjAle7jUebtmV0SykQxsHX04xG6CHn hQbUkr5C61PkSqKlLMSTfUgsLS2L7lTr7caAYB1nFDYE9GV2sCrBkqaXdtXVJddgky wmgUYIOmZ7/LojmFQM413k1SE96WG0z+ZCC0F3o4WHmTgCAzgNMtV/uEBYaV9o2baF qqUwKvYSNQHeQ== Date: Fri, 10 May 2024 13:38:19 +0200 From: Christian Brauner To: David Howells Cc: Miklos Szeredi , Max Kellermann , Jan Kara , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ext4: Don't reduce symlink i_mode by umask if no ACL support Message-ID: <20240510-golfball-tastsinn-d148a67476ea@brauner> References: <1553599.1715262072@warthog.procyon.org.uk> <1554509.1715263637@warthog.procyon.org.uk> 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=utf-8 Content-Disposition: inline In-Reply-To: <1554509.1715263637@warthog.procyon.org.uk> On Thu, May 09, 2024 at 03:07:17PM +0100, David Howells wrote: > Miklos Szeredi wrote: > > > I think this should just be removed unconditionally, since the VFS now > > takes care of mode masking in vfs_prepare_mode(). > > That works for symlinks because the symlink path doesn't call it? All of the mode handling should now be done correctly in the VFS (see Miklos reply as well). In general the less fs specific mode handling we have, the better because we've been bitten by this before.