Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1446799pxu; Sat, 24 Oct 2020 10:57:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykLNbLsmupSyN4q34lW3BKS0Ogf5k47KXdHzQWNinATTIothOGW8RbzJsKEuYMJjEPF/0c X-Received: by 2002:a50:fe98:: with SMTP id d24mr8069446edt.223.1603562272306; Sat, 24 Oct 2020 10:57:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603562272; cv=none; d=google.com; s=arc-20160816; b=T8I1INBxebc/qI2WvowoMy/3/JgkCH9dNX65ShYcPnp/BhLaYBvwu6gRxCgmRTfeWG vwMVpLioQIIZ4nQSLwMMNCMdkN0jHhJv8Pfty+GTzhlwth8dCN6SwFEwLZ6rAfUwve4c kUkEWzfaz8v4YL7mw4oM2UHFdXqHN13eh/XnCmm6vXqzNUIAIxqIwVzZ9+TaI27Kx7Px mEUuoSyGBeqJp1ZgZPrFiGWCfBClUIguMZVM5KSZTtBeVAZn/rq4IA7j997rcGPDK+Yw FC2sgPGasPgoJndUv/Qo0hk6rYhrKEO1ZlhKQe2FC5ifGElcWp1nN9DSo7K1L/xeL9dc 4IsA== 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=KGTmdK8ecr8ZK1KNnVeZchlUNZg5EPeeId0f9Zs3IlU=; b=GgOcLIUodQyphQffu0DGLvMBRlgBPELOTbmDPOycuJI55Kxmu0dFhDUPtXrYmDe0kS Q3Wy2ybOJWILssi/xBzwlBzRFkkwQdc7kUhlkKjet1Sf1LTyuU99gw4tt6+cSvCMis7E 1t4XT8fdEFJXFvD3JSpSuW4OsT+yl/rf/tLnJKcZRg19oK8C44WKhiQa9lUv5gziSUV0 VRaWR3b4QzyH2kc4j4y5/zZwWYGYgezd8EEH1Lx39bH5J0vBhcHle1wUth7o0r300rE9 81haEIU+7H0QI7JiNiqDAiMCJ7ByS43lpMIxaIqNMBO9s20gWOCByvEQEvAx7KN+F3PY /naQ== 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 w17si3613042ejk.629.2020.10.24.10.57.30; Sat, 24 Oct 2020 10:57:52 -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 S1762468AbgJXQ6b (ORCPT + 99 others); Sat, 24 Oct 2020 12:58:31 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([207.82.80.151]:22944 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762464AbgJXQ6a (ORCPT ); Sat, 24 Oct 2020 12:58:30 -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-22-YOgp6WC1NdimiQHmmRzXug-1; Sat, 24 Oct 2020 17:58:26 +0100 X-MC-Unique: YOgp6WC1NdimiQHmmRzXug-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; Sat, 24 Oct 2020 17:58:25 +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; Sat, 24 Oct 2020 17:58:25 +0100 From: David Laight To: 'Linus Torvalds' , 'Peter Anvin' CC: 'Rasmus Villemoes' , 'Thomas Gleixner' , 'Ingo Molnar' , 'Borislav Petkov' , 'the arch/x86 maintainers' , "'Sean Christopherson'" , 'Naresh Kamboju' , 'Linux Kernel Mailing List' Subject: RE: [PATCH] x86/uaccess: fix code generation in put_user() Thread-Topic: [PATCH] x86/uaccess: fix code generation in put_user() Thread-Index: AQHWqYEb2jCDJax3wEWt3nUPTzGU4qmluWiggAE71BA= Date: Sat, 24 Oct 2020 16:58:25 +0000 Message-ID: <1eaa025ba7104edd815c9ac66d5790e4@AcuMS.aculab.com> References: <20201023203154.27335-1-linux@rasmusvillemoes.dk> <8820745F-E761-42E6-8A70-7B04EE70692C@zytor.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 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogRGF2aWQgTGFpZ2h0DQo+IFNlbnQ6IDIzIE9jdG9iZXIgMjAyMCAyMjo1Mg0KLi4uDQo+ IENvdWxkIGRvX3B1dF91c2VyKCkgZG8gYW4gaW5pdGlhbCBjaGVjayBmb3IgNjQgYml0DQo+IHRo ZW4gZXhwYW5kIGEgZGlmZmVyZW50ICNkZWZpbmUgdGhhdCBjb250YWlucyB0aGUgYWN0dWFsDQo+ IGNvZGUgcGFzc2luZyBlaXRoZXIgImEiIG9yICJBIiBmb3IgdGhlIGNvbnN0cmlhbnQuDQo+IA0K PiBBcGFydCBmcm9tIGFub3RoZXIgbGV2ZWwgb2YgaW5kaXJlY3Rpb24gbm90aGluZyBpcyBkdXBs aWNhdGVkLg0KDQpUaGlzIGNvZGUgc2VlbXMgdG8gY29tcGlsZSB0byBzb21ldGhpbmcgc2Vuc2li bGUuDQpJdCBkb2VzIG5lZWQgY2hhbmdlIHRoZSByZWdpc3RlcnMgdGhhdCBnZXRfdXNlcl9uKCkg bXVzdA0KdXNlIC0gdGhlIG5vcm1hbCByZXR1cm4gdmFsdWUgaXMgbm93IGluICVheCAoYW5kICVk eCBmb3INCjY0Yml0IHZhbHVlcyBvbiAzMmJpdCBzeXN0ZW1zLCB3aXRoIHRoZSBlcnJvciBpbiAl Y3guDQooSSd2ZSBub3QgYWN0dWFsbHkgdGVzdGVkIGl0LikNCg0KI2RlZmluZSBfX2ludHR5cGVf bWF4KHgsIF9tYXgpIF9fdHlwZW9mX18oICAgICAgXA0KICAgICAgICBfX3R5cGVmaXRzKHgsY2hh ciwgICAgICAgICAgICAgICAgICAgICAgXA0KICAgICAgICAgIF9fdHlwZWZpdHMoeCxzaG9ydCwg ICAgICAgICAgICAgICAgICAgXA0KICAgICAgICAgICAgX190eXBlZml0cyh4LGludCwgICAgICAg ICAgICAgICAgICAgXA0KICAgICAgICAgICAgICBfX3R5cGVmaXRzKHgsbG9uZyxfbWF4KSkpKSkN Cg0KI2RlZmluZSBfX2ludHR5cGUoeCkgX19pbnR0eXBlX21heCh4LCAwVUxMKQ0KDQojZGVmaW5l IGdldF91c2VyXzEoeCwgcHRyLCB0eXBlLCBjb25zdHJhaW50KSAgICAgICAgICAgICAgICAgICAg ICAgICAgICBcDQooeyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICBcDQogICAgICAgIGludCBfX3JldF9ndTsgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcDQogICAgICAgIHR5 cGUgX192YWxfZ3U7ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICBcDQogICAgICAgIGFzbSB2b2xhdGlsZSgiY2FsbCBfX2dldF91c2VyXyVQNCIgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICBcDQogICAgICAgICAgICAgICAgICAgICA6ICI9YyIgKF9f cmV0X2d1KSwgY29uc3RyYWludCAoX192YWxfZ3UpLCAgICAgICAgICBcDQogICAgICAgICAgICAg ICAgICAgICAgICBBU01fQ0FMTF9DT05TVFJBSU5UICAgICAgICAgICAgICAgICAgICAgICAgICAg ICBcDQogICAgICAgICAgICAgICAgICAgICA6ICJhIiAocHRyKSwgImkiIChzaXplb2YoKihwdHIp KSkpOyAgICAgICAgICAgICAgICBcDQogICAgICAgICh4KSA9IChfX2ZvcmNlIF9fdHlwZW9mX18o KihwdHIpKSkgX192YWxfZ3U7ICAgICAgICAgICAgICAgICAgICBcDQogICAgICAgIF9fYnVpbHRp bl9leHBlY3QoX19yZXRfZ3UsIDApOyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBc DQp9KQ0KDQojZGVmaW5lIGdldF91c2VyKHgsIHB0cikgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICBcDQooeyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcDQogICAgICAgIF9fY2hr X3VzZXJfcHRyKHB0cik7ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICBcDQogICAgICAgIG1pZ2h0X2ZhdWx0KCk7ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICBcDQogICAgICAgIChzaXplb2YgKihwdHIpID4gc2l6ZW9mKGxv bmcpKSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC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