From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=195.121.94.186 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796220002; b=LyIjFOYvgcufQixZVdvhu+l20w9443urF4NPVMSxbUVSpFhXBTk21+UGzrppQkYyR0if jOEilLD+Wp4PIGaDI1QeKxi98qiESPsFBdmx5hNCpxYOCt8pokR4xfpjteV9VN6MKPtEI OsM6lVzBGa4gCO/tCBM7CtYKFPtd2MjB5YRDManSWSz76aR74z8LOquUSZT580zcwNOvR qOSPRlpqaW5gYjU7pMbxUTcizABx7LCjWXhStTEKZmoiXKUDnJfnSOAPa94k5PSjVfi40 /gHZVdXjcY4Z86M4DwAkfMBPM4FBZb+AT5xkifdXbslQTVklIdlV3SfwdlnhB0kxlzQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796220002; h=DMARC-Filter:X-KPN-MessageId:Received:Received:DKIM-Signature: X-KPN-MID:X-CMASSUN:X-KPN-VerifiedSender:Received:Date:From:To:Cc: Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:X-Priority:Importance:X-Originating-IP; bh=aSzBjZuwkzcqHjAlOWasFKa8+JO8Pwxb7DWz3D+ngvA=; b=i5cVUP/UBnIhEF1f9HtJlenVOtuM9r5TXc8hODQDTrY2y11ClnyhgmovYDfjzTEpCrV+ K+3EhP39mVnqfMroejTn0QF8DLK3L8CYlkaaNllXsvZW6uglyj4h0obcvd19VGXTHTHeU 3MESY25S08NF6jtPiFK+hvg9br3HbceQvWngi+6wCkXFYsGAvJ6ESzl7UAhh51wDDH5Qt 1QDXYoxHSn4KZ3fIHCW574pMDcF9LRkLVhnp/oKjBNcMV83cIN3QYQORsUDFzAMKVIPez 34Fdb/edDeVAxRvSaxeoGiCB04p6Un9B9RNl4Rh7P9pdGBlFBP6fej+xME9GWHAz5/g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=xs4all.nl; spf=pass smtp.mailfrom=xs4all.nl; dkim=pass header.d=xs4all.nl header.i=@xs4all.nl header.a=rsa-sha256 header.s=xs4all01 header.b=uFAV01Xo; arc=none smtp.remote-ip=195.121.94.186 Received: from ewsoutbound.kpnmail.nl (unknown [195.121.94.186]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01207606A327 for ; Wed, 2 Dec 2026 14:00:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 01207606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xs4all.nl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xs4all.nl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=xs4all.nl header.i=@xs4all.nl header.a=rsa-sha256 header.s=xs4all01 header.b=uFAV01Xo X-KPN-MessageId: a67b823c-ee58-11f1-b88c-00505699b430 Received: from mta.kpnmail.nl (unknown [10.31.161.190]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id a67b823c-ee58-11f1-b88c-00505699b430; Wed, 02 Dec 2026 14:59:54 +0100 (CET) Received: from mtaoutbound.kpnmail.nl (unknown [10.128.135.190]) by mta.kpnmail.nl (Halon) with ESMTP id a67a9c4f-ee58-11f1-92bb-0050569977a2; Wed, 02 Dec 2026 14:59:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=content-type:mime-version:subject:message-id:to:from:date; bh=aSzBjZuwkzcqHjAlOWasFKa8+JO8Pwxb7DWz3D+ngvA=; b=uFAV01XoIsqZaSoeN4S2FA4PAeVc7UaQYId3pHFF107S5MfuctQmDYfRrzaTSRNx/RzvsVsYYIoqk 3bwlzgtV5dtRl+UeVZrceTyU26jQHiqi8WBLmaTWGBHZ303DRHsCW6tpZccghVDKGCJG24fs18547N FMOh+55v7ieOpd5ddzawUBFtu9bR0+SHC5c99A7YIUbAKCNynNmK0OimX2/6L04+aYKhfEb5RSNes/ jxBCJQCrBfwOYTuezsewR3WPQsPO3I764np1oiTLHxDVsvkM1OUKeNS5qprVYnxo3Soe/YWQyUns/d SgMeiCLSHe6cyUD2hTfjjpnHUFNZhgw== X-KPN-MID: 33|D/TAjJPToTseAeV+YA9EhcbhS35TQEf6dY25mNnUTCRau+y7nop6uwMp/N8GCwz /Fzi/jNKFgn1p99FtwVXNIVwdwqcr5q5IPy+XUlT9Nmk= X-CMASSUN: 33|rBafmJvMqt9Y55lfpe7VQMAINgJIgAN6cA0j6vXWH1oWNIVbIffmJ6A1HsmNTr2 Cl9mV4T7JaY7u049wIBFSjw== X-KPN-VerifiedSender: Yes Received: from cpxoxapps-mh01 (cpxoxapps-mh01.personalcloud.so.kpn.org [10.128.135.207]) by mtaoutbound.kpnmail.nl (Halon) with ESMTPSA id a670e022-ee58-11f1-94bb-005056995d6c; Wed, 02 Dec 2026 14:59:54 +0100 (CET) Date: Wed, 2 Dec 2026 14:59:54 +0100 (CET) From: Jori Koolstra To: Christian Brauner , NeilBrown , NeilBrown Cc: Askar Safin , amir73il@gmail.com, cyphar@cyphar.com, gregkh@linuxfoundation.org, jack@suse.cz, jlayton@kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, shakeel.butt@linux.dev, tj@kernel.org, viro@zeniv.linux.org.uk Message-ID: <1382016122.3487628.1796219994211@kpc.webmail.kpnmail.nl> In-Reply-To: <20261130-sehnsucht-telefon-packpapier-47666eef34e7@brauner> References: <20261024213539.1307600-8-jkoolstra@xs4all.nl> <20261125062146.940336-1-safinaskar@gmail.com> <1709003566.2632299.1795599064030@kpc.webmail.kpnmail.nl> <179559977412.1728055.14071803405199089608@noble.neil.brown.name> <1119017860.2578021.1795602566314@kpc.webmail.kpnmail.nl> <20261130-sehnsucht-telefon-packpapier-47666eef34e7@brauner> Subject: Re: [PATCH v8 07/12] vfs: short-circuit MAY_WRITE access for O_DIRECTORY opens X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal > Op 30-11-2026 16:10 CET schreef Christian Brauner : > > > On Wed, Nov 25, 2026 at 11:29:26AM +0100, Jori Koolstra wrote: > > This is best probably. The counter is that I wanted to change errnos as little > > as possible. Now you get at least something that could already happen when > > you did a normal open(O_DIRECTORY). Were this designed from the start -EINVAL > > is obviously what is needed here. > > > > I dunno, not sure what other people think. > > EINVAL is fine with me. It's an invalid flag combination after allafter > all. I'll fold that in and update the selftest. OK, perfect. Thanks, Christian.