Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp436326lqo; Fri, 10 May 2024 04:46:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLhSF4BRQcuBy7sn3DLVXxFB/bxjOWqEEddI7AmW5UkXpuhfBGq8CztWQDpw0oRVa7Hh+iTGZcWYqbs8GVRrsew18ZdsR4W8IUoPll6w== X-Google-Smtp-Source: AGHT+IFgvKHAYMSnm8Bxs22+iiArjUso/a96BTbP9gSxIH5bkQurqyPDPgMMHDNF2yOFd4hUixTN X-Received: by 2002:a17:906:ee81:b0:a59:b1cf:fea0 with SMTP id a640c23a62f3a-a5a2d55eef4mr272026266b.19.1715341605883; Fri, 10 May 2024 04:46:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715341605; cv=pass; d=google.com; s=arc-20160816; b=iM7ubrivKM0NN5xEjPJsqUa5N/UvPtcS77k5bfmzxPKmW3uKFAwHwmTHreiVba2DYZ qQTMoSjF0irVLu4mUyBbivdFCGsHPDfmjEr7/0td2U9JdBUr/bes8504MYSmQpRCti7J f02+/EuL75cvx+YG84xbOxyc/kXey88QAX9mTJnkSyL/8o7uaBoy0GNTf5jD+xwaDHFo 4or0sTdMyZk/hRcDtzRYGBYOeI8+LbmOdYPNLnaSW1guf5IqBYH52ubVoJ52oH1nRXRz Q/qjY8c6d7tzGmJoQBKvErpqQcmALOQUwA90TB5+m91Mvg/J6hM8pdLVA/IcUCCegnoc u3Nw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:content-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:cc:references:in-reply-to :from:organization:dkim-signature; bh=IwU5Oore3SuCw8wZi4A6hCUo7BctEtdssnTwHpRObJs=; fh=wsb6lsXYhvRndH1zE6by9iL+9QS8z+BwoKgN8R0/gTw=; b=vqhqw2mkNo/R2LxCNH2uR81nSxym7KeTgf615ytDlzxjlJ12wCdQ1O20NcSXVWb3A9 yQi/RnYid6MJds9RLjSmP/rxlSZ3g2EBJYE+1KKuZ/8v4guUaNGopcfnDLt+x/mwXLmV QfPWFQEO+Qiyto82Wf4CLOhWVRVRRnXhGas0+lWLBk4ss9rcgOwlC9V+kP7wiAts9jSw TVkObTvcM0AaLzLyklNAiwnmawTW/STpFr3DtSraC/RUVPa8sMBTEPe+0m3Rg9jMGwa9 pDTpWv1KK1f5vg6xQo8KM3UQaImfHEmNWOMkxqIrbcWqo6DJti2ss+2tnBgll+3SwI5b Si2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SnPJbqan; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-175698-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175698-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17b21b40si180285066b.416.2024.05.10.04.46.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:46:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175698-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=@redhat.com header.s=mimecast20190719 header.b=SnPJbqan; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-175698-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175698-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9CE101F21194 for ; Fri, 10 May 2024 11:46:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CECCA16F822; Fri, 10 May 2024 11:46:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="SnPJbqan" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 AAAD116F296 for ; Fri, 10 May 2024 11:46:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715341582; cv=none; b=YfrgMr5IQhQ8cqGsJ+Pf/NMy01Kk1NcmEtEC+qaadOnXxF5pFbkXFDk9GE29CPxadVhszLaGTO95BeMGCcGSZVG8jEHAJXeiMDM+bDguUmYCHJX8wbmsOgTvx90+0z3xv8RkuAvD5EIpgKvatC2XJZgHXkDu8t4KFjx/PK5OZMc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715341582; c=relaxed/simple; bh=8fZVZZLwrYj7eBOG3h8Y9eFzWHWyYMn9hTu3xemaVHQ=; h=From:In-Reply-To:References:Cc:Subject:MIME-Version:Content-Type: Date:Message-ID; b=LBZQNzD5rxJzURxV3QdJeXVdA56KXhwJaTmFxcb7MSd3RtdFxER1xk19FuAQIB/sPEo+hL2KxB6KjRkFQI+s+D6D7T+7kYhvgYhLxvS1UjjhVlUiDtFCJhPpzzJJYD7qHkFgqfnCUXcagqZAu7X6iZSWb2E7vYwLsCOtwc/VgSg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=SnPJbqan; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715341579; h=from:from:reply-to:subject:subject:date:date:message-id:message-id:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IwU5Oore3SuCw8wZi4A6hCUo7BctEtdssnTwHpRObJs=; b=SnPJbqan4n2fqG6bhOv38VAYe3sK72muMOA5Cn7CVB6iRopF8pe5CtPbIBzraSFbrUxiPr IT9lJJDhybQZkoIu0v2SrHWMb/lgXdSElw3xYcDQvZ5GTtxNIF/NFir8lhj5C40t2gJ2dX SVpAUFjpzLZDK7BkcxVzVTtom2N5XOE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-643-wA18SPOdMBeTCD36AVxuKw-1; Fri, 10 May 2024 07:46:14 -0400 X-MC-Unique: wA18SPOdMBeTCD36AVxuKw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3FABB8030A6; Fri, 10 May 2024 11:46:14 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.34]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5AC7F2055894; Fri, 10 May 2024 11:46:13 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <1586576.1715341405@warthog.procyon.org.uk> References: <1586576.1715341405@warthog.procyon.org.uk> Cc: dhowells@redhat.com, Max Kellermann , Jan Kara , Miklos Szeredi , Christian Brauner , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] ext4: Don't reduce symlink i_mode by umask if no ACL support 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-ID: <1586840.1715341572.1@warthog.procyon.org.uk> Date: Fri, 10 May 2024 12:46:12 +0100 Message-ID: <1586841.1715341572@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 David Howells wrote: > - inode->i_mode &= ~current_umask(); > + if (!S_ISLNK(inode->i_mode)) > + inode->i_mode &= ~current_umask(); Meh. I forgot to commit the change. Will resend. David