Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2469829pxk; Mon, 14 Sep 2020 14:25:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuQYYXvxR8K7FW+mrx6my0HYTBFKtKm7egtlHYWtrxN0NrdiHOIGxS2Fh89s3jx8GUoEJF X-Received: by 2002:a50:e685:: with SMTP id z5mr9959508edm.259.1600118721433; Mon, 14 Sep 2020 14:25:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600118721; cv=none; d=google.com; s=arc-20160816; b=lkj1lmApiLt7EJMn6OLeJyohcyHQnBdgS+k4SLePGTf7rOyDM7TNXHEUfmq0Kt7hAE MGfujxEokBU6G7U3KKOkATyt3Q7A0Xp+zUhJf0qmU5e3l/gCnh4HiWJDRo9qpsmfueUK VsAhAmat4HAnjxlq8ouuRJVDARSa2cI8QAeYLeqNaviJ/vwezJdyMCLcW0/Lamm2KXg6 0oI6LmHReypmZJm/VBG7JNrBpffuZ2t+Hq+CFma62nqsV+gTxQxiEUCpZa6W70LS0FmF dC3jLDWTJXlKggwTbSWDEyN0Wiob1qp6dJeSckibejID3CcHeQ0ztcl0Doro4214KIH4 NgKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:mime-version:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from; bh=lIQNyfy/995/1ilImHBRaBOgU19+P75d6U9/gGanQME=; b=Yugwt7lwArHh57J3roLBPOag6DZ+3aiSFUc5fkdaLbPGGTjnY1E+BVA3EcNahMRiIE 4RpnoAVs6RSp5yJFcRCiOygHYQzP4uXRHK18YpRuvisnOLqjhEhddJ8jBlc5PMGNF5Xi Pg/I6s5CWC0YSqq+sfA0CyMpTbCJW/VQVOp7HDxly8wQKmjCGmScsZ3R0Agd/oTt/Cbw KK2wQnwg1KocJFvWi7RVwoENuNHJcjaDXbh5iFVFUPf0RhDCkT+SZWCSe2+VMYVjQZ+v VkM33P3UwbnyvKd7LujDQiGKXrWPUAtSEI8xfQPibdueHz2c84zvLI+9iHhJ7NqxbKOd ywUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a21si8089423edr.363.2020.09.14.14.24.59; Mon, 14 Sep 2020 14:25:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726024AbgINVYE (ORCPT + 99 others); Mon, 14 Sep 2020 17:24:04 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([207.82.80.151]:39996 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725926AbgINVYE (ORCPT ); Mon, 14 Sep 2020 17:24:04 -0400 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-8-UaEi5kBnO_e_VhHpOiWrkQ-1; Mon, 14 Sep 2020 22:24:00 +0100 X-MC-Unique: UaEi5kBnO_e_VhHpOiWrkQ-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 14 Sep 2020 22:23:59 +0100 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Mon, 14 Sep 2020 22:23:59 +0100 From: David Laight To: 'Borislav Petkov' , Josh Poimboeuf CC: "x86@kernel.org" , Al Viro , "linux-kernel@vger.kernel.org" , Linus Torvalds , Will Deacon , Dan Williams , Andrea Arcangeli , "Waiman Long" , Peter Zijlstra , "Thomas Gleixner" , Andrew Cooper , Andy Lutomirski , Christoph Hellwig , "Mark Rutland" Subject: RE: [PATCH v3] x86/uaccess: Use pointer masking to limit uaccess speculation Thread-Topic: [PATCH v3] x86/uaccess: Use pointer masking to limit uaccess speculation Thread-Index: AQHWisBV61WRef5OMEyULIupnNS1CKloouig Date: Mon, 14 Sep 2020 21:23:59 +0000 Message-ID: <2e6a4d75b38248f1b8b3b874d36065f1@AcuMS.aculab.com> References: <1d06ed6485b66b9f674900368b63d7ef79f666ca.1599756789.git.jpoimboe@redhat.com> <20200914175604.GF680@zn.tnic> In-Reply-To: <20200914175604.GF680@zn.tnic> 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.001 X-Mimecast-Originator: aculab.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogQm9yaXNsYXYgUGV0a292DQo+IFNlbnQ6IDE0IFNlcHRlbWJlciAyMDIwIDE4OjU2DQo+ IA0KPiBPbiBUaHUsIFNlcCAxMCwgMjAyMCBhdCAxMjoyMjo1M1BNIC0wNTAwLCBKb3NoIFBvaW1i b2V1ZiB3cm90ZToNCj4gPi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