Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1205684pxb; Fri, 18 Feb 2022 02:58:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJzL7wJ9M00Fgc8mNTWoza2BTsnZ8Vdd5lUemr2+LhgqUvk4e8A80erMC/6UBha1O33P1M5J X-Received: by 2002:a17:90a:3b4c:b0:1bb:d043:7df with SMTP id t12-20020a17090a3b4c00b001bbd04307dfmr4451321pjf.113.1645181896794; Fri, 18 Feb 2022 02:58:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645181896; cv=none; d=google.com; s=arc-20160816; b=v6u3nc+xl0kreNgUxdYZEO3JLtU4+iKrnGNik9xNXgZAVpH3UDVWU1K+lF1fa9XkBy Iq4q78mlTnfynAMpT4gx5sI5On7CMY8oxY/wodhJNven4+CL/fF4dVDFHlUQ3VeRlMyI p0CMhcCQ4rIjwEsDL0HJDo4kGYZgP0Ir7fF7D2UKhcg5NX1szloJSHIGbd2TC1ITUAzz w0L9nLA5J59BiKs4xCkJrLCZ2Gff//qLfiXUDQMzlxI0u5t7uuqrt9W7yKQuIXfJ5wDb mjBvttAVtoDw2gh9gKm9rUl8en73D5U5y1N70Lk/kqxuSgwxbg7eOOBeN6Ts6EavNwk4 qCFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=HcPdrdu0uLmsM4syVUKCZ/hgWJlOHX+ymPKaiYiYXYE=; b=DUdyLsIEkqRNlg1blcnBqoGxjR7WNy4CB5JA+cNJ/Fs0zv1i5wItB/czJXaDtNXqYS XSiUlzL0f18YS2H5qUSdtnqtdVt3DiLApqpVoBpMqYXoZnkaj0djHiIomnsewrHkJQgb 7Iiv1VZ1jBToI4KzE+Dsu3wPAo1z+XI0OFuh6cvbM0LxMK03ln5e3n9MR8Jamo7TFIFI 7yuqwMgzZ9JOG8TEGNDRlXAy1E/vpprIQZ8BEdim8FEUKlgN16SASOtHrCVkVPx/DjmB ac8O7X8AEbZQmf0YbsgoI1uxbCwMJxiqwvLsCBHPse0S5WIqrhd2qukF+exjoC5zWibr U1VA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u17si25406383plh.327.2022.02.18.02.58.02; Fri, 18 Feb 2022 02:58:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233574AbiBRJa4 (ORCPT + 99 others); Fri, 18 Feb 2022 04:30:56 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:36570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233548AbiBRJay (ORCPT ); Fri, 18 Feb 2022 04:30:54 -0500 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CD2F0246358 for ; Fri, 18 Feb 2022 01:30:37 -0800 (PST) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-129-Mn8CKvyFPNSuM9Bkc4i3uw-1; Fri, 18 Feb 2022 09:30:35 +0000 X-MC-Unique: Mn8CKvyFPNSuM9Bkc4i3uw-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.28; Fri, 18 Feb 2022 09:30:32 +0000 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.028; Fri, 18 Feb 2022 09:30:32 +0000 From: David Laight To: 'Andy Lutomirski' , Arnd Bergmann CC: Linus Torvalds , Christoph Hellwig , "linux-arch@vger.kernel.org" , "linux-mm@kvack.org" , "linux-api@vger.kernel.org" , "arnd@arndb.de" , "linux-kernel@vger.kernel.org" , "viro@zeniv.linux.org.uk" , "linux@armlinux.org.uk" , "will@kernel.org" , "guoren@kernel.org" , "bcain@codeaurora.org" , "geert@linux-m68k.org" , "monstr@monstr.eu" , "tsbogend@alpha.franken.de" , "nickhu@andestech.com" , "green.hu@gmail.com" , "dinguyen@kernel.org" , "shorne@gmail.com" , "deller@gmx.de" , "mpe@ellerman.id.au" , "peterz@infradead.org" , "mingo@redhat.com" , "mark.rutland@arm.com" , "hca@linux.ibm.com" , "dalias@libc.org" , "davem@davemloft.net" , "richard@nod.at" , "x86@kernel.org" , "jcmvbkbc@gmail.com" , "ebiederm@xmission.com" , "akpm@linux-foundation.org" , "ardb@kernel.org" , "linux-alpha@vger.kernel.org" , "linux-snps-arc@lists.infradead.org" , "linux-csky@vger.kernel.org" , "linux-hexagon@vger.kernel.org" , "linux-ia64@vger.kernel.org" , "linux-m68k@lists.linux-m68k.org" , "linux-mips@vger.kernel.org" , "openrisc@lists.librecores.org" , "linux-parisc@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-riscv@lists.infradead.org" , "linux-s390@vger.kernel.org" , "linux-sh@vger.kernel.org" , "sparclinux@vger.kernel.org" , "linux-um@lists.infradead.org" , "linux-xtensa@linux-xtensa.org" Subject: RE: [PATCH v2 13/18] uaccess: generalize access_ok() Thread-Topic: [PATCH v2 13/18] uaccess: generalize access_ok() Thread-Index: AQHYJDLDvIZKe0fPGEirizFtCzB+zayZCg2g Date: Fri, 18 Feb 2022 09:30:32 +0000 Message-ID: <93a1ee797e9d4f789dff85a3c0f0c232@AcuMS.aculab.com> References: <20220216131332.1489939-1-arnd@kernel.org> <20220216131332.1489939-14-arnd@kernel.org> 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 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com 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 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogQW5keSBMdXRvbWlyc2tpDQo+IFNlbnQ6IDE3IEZlYnJ1YXJ5IDIwMjIgMTk6MTUNCi4u Lg0KPiBUaGlzIGlzbid0IGFjdHVhbGx5IG9wdGltYWwuICBPbiB4ODYsIFRBU0tfU0laRV9NQVgg aXMgYSBiaXphcnJlDQo+IGNvbnN0YW50IHRoYXQgaGFzIGEgdmVyeSBzcGVjaWZpYyB2YWx1ZSB0 byB3b3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