Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 265C1C6FA8E for ; Sun, 5 Mar 2023 17:23:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229607AbjCERXk (ORCPT ); Sun, 5 Mar 2023 12:23:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbjCERXh (ORCPT ); Sun, 5 Mar 2023 12:23:37 -0500 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 617BFEF86 for ; Sun, 5 Mar 2023 09:23:35 -0800 (PST) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-250-LOSwqRzdPumsQ90Himc9cg-1; Sun, 05 Mar 2023 17:23:31 +0000 X-MC-Unique: LOSwqRzdPumsQ90Himc9cg-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.47; Sun, 5 Mar 2023 17:23:29 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.047; Sun, 5 Mar 2023 17:23:29 +0000 From: David Laight To: 'Linus Torvalds' , Mateusz Guzik , Borislav Petkov CC: Alexander Potapenko , Al Viro , Kees Cook , Eric Biggers , Christian Brauner , "serge@hallyn.com" , "paul@paul-moore.com" , "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-security-module@vger.kernel.org" Subject: RE: [PATCH v3 2/2] vfs: avoid duplicating creds in faccessat if possible Thread-Topic: [PATCH v3 2/2] vfs: avoid duplicating creds in faccessat if possible Thread-Index: AQHZTtzWe5NzBLiIgUWjC9/KNPby/q7sbr9A Date: Sun, 5 Mar 2023 17:23:29 +0000 Message-ID: References: <20230302083025.khqdizrnjkzs2lt6@wittgenstein> <6400fedb.170a0220.ece29.04b8@mx.google.com> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogTGludXMgVG9ydmFsZHMNCj4gU2VudDogMDQgTWFyY2ggMjAyMyAyMDo0OA0KPiANCj4g T24gU2F0LCBNYXIgNCwgMjAyMyBhdCAxMjozMeKAr1BNIE1hdGV1c3ogR3V6aWsgPG1qZ3V6aWtA Z21haWwuY29tPiB3cm90ZToNCj4gPg0KPiA+IEdvb2QgbmV3czogZ2NjIHByb3ZpZGVzIGEgbG90 IG9mIGNvbnRyb2wgYXMgdG8gaG93IGl0IGlubGluZXMgc3RyaW5nDQo+ID4gb3BzLCBtb3N0IG5v dGFibHk6DQo+ID4gICAgICAgIC1tc3RyaW5nb3Atc3RyYXRlZ3k9YWxnDQo+IA0KPiBOb3RlIHRo YXQgYW55IHN0YXRpYyBkZWNpc2lvbiBpcyBhbHdheXMgZ29pbmcgdG8gYmUgY3JhcCBzb21ld2hl cmUuDQo+IFlvdSBjYW4gbWFrZSBpdCBkbyB0aGUgIm9wdGltYWwiIHRoaW5nIGZvciBhbnkgcGFy dGljdWxhciBtYWNoaW5lLCBidXQNCj4gSSBjb25zaWRlciB0aGF0IHRvIGJlIGp1c3QgZ2FyYmFn ZS4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