Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2762642pxk; Tue, 15 Sep 2020 01:24:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdWnYvVgnh2W5bD7a49kHKnOXmwOJMMQSNdmVZAbx9JSvoEjD8abk9ZU+NGtJjuInnlc3b X-Received: by 2002:a17:906:2c01:: with SMTP id e1mr19195779ejh.128.1600158293878; Tue, 15 Sep 2020 01:24:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600158293; cv=none; d=google.com; s=arc-20160816; b=ODJwlIQKVID5HRuozWo6UEZlBp+wOSRDsHQLyNdvMDf+1ucor4pBkZvMUyQLFSj5l1 lIX77T+N4Owxirc6hEpz3Hyt9kpdCotvwFhNKP73+y0bxwxa39gKYd84cm8wqFOGVe6c 9o13PGrAyw5v0Z3777jhbJQ4tzOX22eJCpDHhu5p3y7R7XVHik8QErHqvJfEc9Rbmxaq lXuBK/PmoZ2FD4zLGFQR2dsmKRl/BSYqiydkPH2+r1Fak1uRwDe3u54DxWc65PHu75Mv tdpC+GDIeSeQ1sche6lWFPyMmO+ntmKZbIyzAaLbtSlKRf/9HL1CVzDY/5xQppzsgysD kYhg== 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=7Pt7+ikJYLWOY9Sr4ULL4LxuhJoomBnYXSxV1b4IWUY=; b=IcIf80CqTSwhHeHDxMA3t7lOqet+d/9egjDcTc2JYDp9BpT5M1BcMGgn783VbVGPIm ckLRWfkZLv9dzMcKTd7WuOF5xSuhZygV72ffglZJLdPmjTflpmtS+IkUXWgowlEhHniY dPbH3rxKtnLaKB13KxOIyjehl9wSK+SUcpys0YJJcajjgU7VvkgWrIxPEWQcQ0xA6Ycn 0En/v2hQlk47rpx94J6LnuTy/3ua3nGD9+7J2KQDc8U0LYwCf5QrjoHahdRYXEFwoh9x QSocYHRKnd4deihg1IDiW9O27Bljkc/eoyWrgHQX1syucQRms2cXAnYIDNYqc6OSaIZh M/KA== 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 v12si8938072ejb.434.2020.09.15.01.24.31; Tue, 15 Sep 2020 01:24:53 -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 S1726400AbgIOIXI (ORCPT + 99 others); Tue, 15 Sep 2020 04:23:08 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.86.151]:32355 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726178AbgIOIWz (ORCPT ); Tue, 15 Sep 2020 04:22:55 -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-71-5leh59vyMUmzAnr2F172FA-1; Tue, 15 Sep 2020 09:22:50 +0100 X-MC-Unique: 5leh59vyMUmzAnr2F172FA-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; Tue, 15 Sep 2020 09:22:49 +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; Tue, 15 Sep 2020 09:22:49 +0100 From: David Laight To: 'Josh Poimboeuf' CC: 'Borislav Petkov' , "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///5HACAAMAeUA== Date: Tue, 15 Sep 2020 08:22:49 +0000 Message-ID: <18cc6ae97e1f4bf5a81167e0c1313935@AcuMS.aculab.com> References: <1d06ed6485b66b9f674900368b63d7ef79f666ca.1599756789.git.jpoimboe@redhat.com> <20200914175604.GF680@zn.tnic> <2e6a4d75b38248f1b8b3b874d36065f1@AcuMS.aculab.com> <20200914215104.cjvycgie2wd3omtn@treble> In-Reply-To: <20200914215104.cjvycgie2wd3omtn@treble> 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 RnJvbTogSm9zaCBQb2ltYm9ldWYNCj4gU2VudDogMTQgU2VwdGVtYmVyIDIwMjAgMjI6NTENCj4g DQo+IE9uIE1vbiwgU2VwIDE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