Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11585721rwl; Tue, 3 Jan 2023 01:19:47 -0800 (PST) X-Google-Smtp-Source: AMrXdXuktyQtDHtxQqYg+LAgUeH7URZOPZx/9QiS+rDheEQyeMCcwz0w5j2fDm2afLLSU2+vvqX6 X-Received: by 2002:a05:6a20:2d1f:b0:ac:9d6b:c1f0 with SMTP id g31-20020a056a202d1f00b000ac9d6bc1f0mr58073004pzl.40.1672737587252; Tue, 03 Jan 2023 01:19:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672737587; cv=none; d=google.com; s=arc-20160816; b=oLCbEDEOY7amtjOs2uZyICdeLlZAMrNRQx+BSY+OYK0nidTHQJSQi5hM1FPNm62/0E NvMPYKLAgxGBw/5t1nVGKp65iXcBNExE4cnqu8qCmQUPEiMVORPVlbJLoix9tIqQ2udf HxZK56W1G+me9g0+gI2g6kh+WMeZktM27rvw/bxWHBHtlU0MXg7cybJ7gbUu5XpZSMdK cQoMjtncHu9v0AaFX93nOiBt9BtW0Zz5ttmvRJWn19708Mq2dB8uiwy+8NFa/AKAnmxz 91p6NMmgVZtjaF3w2b9E9sjMrDIoNEcb8jWHEpbhvsv9edU1fG3cU6bls5bYr7EDKf24 u/nw== 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=1BGTT52+h+UsATyzjM6i+KsQmvRsVOVvE2ltBujcw9A=; b=YDx/VFAjsBi+lNBB2/YYsUDWjuvckEDLlBEHXQgx+ZcYLoCDp2RAi6RrMif6apC3hF CHef/kTO92mUOoDd6Cl3LhcHUeIv26XU5todeVZRpx5gG2Kv4a7LKB5P5O+t5pQyX+bt 79CfbfzB8Xs7wPXY04g04Sc5beBZLPygVcLiw1MEPwTBX4im9xV87xIrqniwb4pGYasi M3z4QNwNHozbAJExwCFdwytMWAr0VlPH76aihCAo/4h67gv1OlL2Hrc+TCXr8Ug9MLOy un5hASLKOnCqhnu6/lwOIoIWwOeya3WpzaoktC4oq815+TIAQuyYNJSywjGWbHEC3kIq kAJA== 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 d4-20020a63a704000000b00476bba7cc00si32624116pgf.85.2023.01.03.01.19.39; Tue, 03 Jan 2023 01:19:47 -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 S233103AbjACIhx (ORCPT + 61 others); Tue, 3 Jan 2023 03:37:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232898AbjACIhv (ORCPT ); Tue, 3 Jan 2023 03:37:51 -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 ESMTPS id 3FBC7D92 for ; Tue, 3 Jan 2023 00:37:50 -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-91-9nkBtqfRMfet6_rK_0JW4A-2; Tue, 03 Jan 2023 08:37:47 +0000 X-MC-Unique: 9nkBtqfRMfet6_rK_0JW4A-2 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.42; Tue, 3 Jan 2023 08:37:46 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.044; Tue, 3 Jan 2023 08:37:46 +0000 From: David Laight To: 'Linus Torvalds' CC: "Kirill A. Shutemov" , "Kirill A. Shutemov" , Dave Hansen , Andy Lutomirski , Peter Zijlstra , "x86@kernel.org" , Kostya Serebryany , "Andrey Ryabinin" , Andrey Konovalov , Alexander Potapenko , Taras Madan , Dmitry Vyukov , "H . J . Lu" , "Andi Kleen" , Rick Edgecombe , Bharata B Rao , Jacob Pan , Ashok Raj , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCHv13 05/16] x86/uaccess: Provide untagged_addr() and remove tags before address check Thread-Topic: [PATCHv13 05/16] x86/uaccess: Provide untagged_addr() and remove tags before address check Thread-Index: AQHZHLDUcIP+F/h/PEiAwEZ6SoBjkq6LJK3ggABcQgCAAN3HwA== Date: Tue, 3 Jan 2023 08:37:46 +0000 Message-ID: <35b24dab4dc5451a86ef87f93088e0b7@AcuMS.aculab.com> References: <20221227030829.12508-1-kirill.shutemov@linux.intel.com> <20221227030829.12508-6-kirill.shutemov@linux.intel.com> <20221231001029.5nckrhtmwahb65jo@box> <4cf29f7a1a0041da818ac7ef598d142e@AcuMS.aculab.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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 RnJvbTogTGludXMgVG9ydmFsZHMNCj4gU2VudDogMDIgSmFudWFyeSAyMDIzIDE5OjA1DQouLi4N Cj4gPiBBcmUgYnl0ZSBsb2FkcyBndWFyYW50ZWVkIHRvIGZhdWx0Pw0KPiANCj4gWWVhaCwgd2Ug ZG9uJ3QgbWFwIHRoZSBoaWdoZXN0IGFkZHJlc3Mgb24geDg2LTY0LiBBbmQgd2UgZG9uJ3Qgd2Fu dCB0bw0KPiBpbiB0aGUgZnV0dXJlIGVpdGhlciwgYmVjYXVzZSBvZiBob3cgb3VyIGVycm9yIHBv aW50ZXJzIHdvcmsgKGllIGlmDQo+IHNvbWVib2R5IG1pc3NlcyBhbiAiSVNfRVJSKCkiIGNoZWNr IGFuZCB1c2VzIGFuIGVycm9yIHBvaW50ZXIgYXMgYQ0KPiBwb2ludGVyLCB3ZSB3YW50IHRoYXQg dG8gZmF1bHQsIHJhdGhlciB0aGFuIGRvIHJhbmRvbSB0aGluZ3MpLg0KPiANCj4gSXQncyBub3Qg YSBoYXJkIHJlcXVpcmVtZW50IGFyY2hpdGVjdHVyYWxseSAoZWl0aGVyIGhhcmR3YXJlIG9yDQo+ IHNvZnR3YXJlKSwgYW5kIGlpcmMgb24gMzItYml0IHdlIHVzZWQgdG8gdXNlIHRoZSBsYXN0IHZp cnR1YWwgcGFnZSBmb3INCj4gc29tZXRoaW5nLCBzbyBtYXliZSBJJ20gbWlzc2luZyBzb21lIG9k ZCB1c2Ugb24gNjQtYml0IHRvbywgYnV0DQo+IGFjY2Vzc2luZyB0aGUgdG9wLW9mLXZpcnR1YWwg YWRkcmVzcyBzcGFjZSBvbiB4ODYt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