Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10683932rwl; Mon, 2 Jan 2023 06:38:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXtsNL7dJOvvbE2plavoQHLSOjcMomQtjEc+UABUXCpCIyMnkp1WBbwMy7N/RF1l/ZW5efXX X-Received: by 2002:a17:907:2155:b0:7c0:c1cf:f9e8 with SMTP id rk21-20020a170907215500b007c0c1cff9e8mr40520477ejb.30.1672670335984; Mon, 02 Jan 2023 06:38:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672670335; cv=none; d=google.com; s=arc-20160816; b=s3uwgZ3wRPlJSCLK0HBvFCWKnQI0PdM32ZtEMEhixB6QJUX8LOC2HTgfTRrk6/8eIY /XohlgBCm7mxht1l31HYSXNCidowySPaI0Sxim//iiNne9a4xF/FQIMk6doDSNfRdrVK EAE/ZIyjyde/0rPnXzm6Gg6VgCQsLQfvCnfuuu+MV49hvITjXyIFWM7gHxegYHwR7U0L lxOa1TzSM4cyESFx30K0+6ZPsWHC2MVsb63nF9WM301Zckce7+h7IU4RekxHHDXitMAx z2sCcfaxJqPt/lpvSdIvNpetuoHjQrmQp+wlJSxi51/Xt5m1jqJJXsgtX+i5r+yPvN16 sxiQ== 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=PK7G5dOhHTGQ4gWUJRo3yenx3WJdJrHsyvAvAUi4QpE=; b=WiGHkOfKnELX3E45AJ3k+GnrGBYHogrZKU8ipyJVXbOjUPz77PRDgMaLh0Z7QCaTLR miEKYfc3pjbiU/zDgRMPbsYDopqjXwkMoYFtUs0c1xDFkswgp4fyqzsAzuFv6fgk84Wy M3GF1YJZ2MbMZV576ELWlG5gxv/Aufhk7p4uBwGNRYZKLU0s1dhJPFjF2JOVDaonRhbI YaqOWtbDuv5ovvfiJZqDXlmyrrlRN15bK2I2tt52wcP8qlyDZCJAbvl4wwA1sh4HO23w ngrQTRTxifcQa9vlFITwZGZ4DtB8dTB3vLa4bzPeeRZN1pj7kJDY6Xdw6TYYJjLdW3rp uY4g== 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 du14-20020a17090772ce00b00802855d77a8si28115262ejc.220.2023.01.02.06.38.39; Mon, 02 Jan 2023 06:38:55 -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 S236039AbjABNzZ (ORCPT + 61 others); Mon, 2 Jan 2023 08:55:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236026AbjABNzM (ORCPT ); Mon, 2 Jan 2023 08:55:12 -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 314CA6545 for ; Mon, 2 Jan 2023 05:55:11 -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-239-Pc-0eKEyPu6bdtk5ZckanA-1; Mon, 02 Jan 2023 13:55:08 +0000 X-MC-Unique: Pc-0eKEyPu6bdtk5ZckanA-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 2 Jan 2023 13:55:05 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.044; Mon, 2 Jan 2023 13:55:05 +0000 From: David Laight To: 'Linus Torvalds' , "Kirill A. Shutemov" CC: "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/PEiAwEZ6SoBjkq6LJK3g Date: Mon, 2 Jan 2023 13:55:05 +0000 Message-ID: <4cf29f7a1a0041da818ac7ef598d142e@AcuMS.aculab.com> References: <20221227030829.12508-1-kirill.shutemov@linux.intel.com> <20221227030829.12508-6-kirill.shutemov@linux.intel.com> <20221231001029.5nckrhtmwahb65jo@box> 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 RnJvbTogTGludXMgVG9ydmFsZHMNCj4gU2VudDogMzEgRGVjZW1iZXIgMjAyMiAwMDo0Mg0KPiAN Ci4uLg0KPiBBbmQgb24gNjQtYml0LCB3ZSByZWFsbHkgb25seSBuZWVkIHRvIGNoZWNrIHRoZSBo aWdoIGJpdC4NCj4gDQo+IEluIGZhY3QsIHdlIGRvbid0IGV2ZW4gd2FudCB0byAqY2hlY2sqIGl0 LCBiZWNhdXNlIHRoZW4gd2UgbmVlZCB0byBkbw0KPiB0aGF0IGRpc2d1c3RpbmcgYXJyYXlfaW5k ZXhfbWFza19ub3NwZWMgdGhpbmcgdG8gbWFzayB0aGUgYml0cyBmb3IgaXQsDQo+IHNvIGl0IHdv dWxkIGJlIGV2ZW4gYmV0dGVyIHRvIHVzZSBwdXJlbHkgYXJpdGhtZXRpYyB3aXRoIG5vDQo+IGNv bmRpdGlvbmFscyBhbnl3aGVyZS4NCj4gDQo+IEFuZCB0aGF0J3MgZXhhY3RseSB3aGF0IHdlIGNv dWxkIGRvIG9uIHg4Ni02NDoNCj4gDQo+ICAgICAgICAgbW92cSAlcmR4LCVyYXgNCj4gICAgICAg ICBzaHJxICQ2MywlcmF4DQo+ICAgICAgICAgb3JxICVyYXgsJXJkeA0KPiANCj4gd291bGQgYWN0 dWFsbHkgYmUgbm90aWNlYWJseSBiZXR0ZXIgdGhhbiB3aGF0IHdlIGRvIG5vdyBmb3IgZm9yDQo+ IFRBU0tfU0laRSBjaGVja2luZyBfYW5kXyBmb3IgdGhlIGFycmF5IGluZGV4IG1hc2tpbmcgKGZv ciBwdXR1c2VyLlMsDQo+IHdlJ2QgdXNlICVyYnggaW5zdGVhZCBvZiAlcmF4IGluIHRoYXQgc2Vx dW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