Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5887386yba; Wed, 1 May 2019 01:43:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/1RKbFw9DfYlIuS8KBgT5EHhGv7oPM8dP9px+8P+TWTNhbKQEBaucJSHXBcYTsRqBR2/c X-Received: by 2002:a63:1d4f:: with SMTP id d15mr70274567pgm.347.1556700197297; Wed, 01 May 2019 01:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556700197; cv=none; d=google.com; s=arc-20160816; b=ZLUzHN1e67qQMAKowqkpIFPgDeVbz4L08BmIbESPXQf/2noobcC/F2ZrXncqi7rr8d IY38rBvdinGyGVDEK+29X8H2wikgimAKbJlKWrEn92mF0sO6q0XQMHiuoXf6RPIw9knU Ljm4jhShW3ZQUhxne4oJv4ZQKtaW5FVX3IhJUkXZRJ7ECTgOudrFwWgNSURJQjI1fBKB Kb8WR8Q6xjgwURPjMpYoNag6HLyBzmFG+WF1xxEPuZJv2VzpJx0JReaRGBZjcinDKVea ocflqeIGIyVOFr+31aIO+vGjajyl36hBLw/jfiCjVRiNtGcBM565RqPlKVCFrkVtD59c HN1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=25ED6g/NLcFeQr9RMt9DTcFA8vuYh6asHLuBzRap3m8=; b=fBMi5w5XuBSXIeZq4cck3gLs4IQ5603w6AEpGtDQea+obuWnuc4+XU9981WbsoGNjj MRSdfaopADhj8lhkifdMX6aL4MdI0Ewwo4JpJWZ0A/bLouRW6FTAWiR5IQ3WWhcODi8j Y6ETsIYpGW1b3p0i4oQYmjk0ZCSjVjSVcH8HbZ/dU4zlX3u26v9/8FCz7ZiW4iFEWBC3 djVs07W5eC5BdjykW9cY9PoGYN4euQNfzkQxh7UGL3eUr1rq2y5jtH4qqqAOXWXG5jv/ CoCkxpbkadBsK9MYU91UgKrO6Lfrcmp8XrBBY1DVkDK3cNwdyqfeQhK2w85GhAGPuJmE B3og== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x21si32357323pgj.351.2019.05.01.01.43.01; Wed, 01 May 2019 01:43:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726197AbfEAImN (ORCPT + 99 others); Wed, 1 May 2019 04:42:13 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([207.82.80.151]:28714 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725776AbfEAImN (ORCPT ); Wed, 1 May 2019 04:42:13 -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-144-CW7NFOPjM2SPadXKTPuDJQ-1; Wed, 01 May 2019 09:41:58 +0100 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b::d117) by AcuMS.aculab.com (fd9f:af1c:a25b::d117) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 1 May 2019 09:41:57 +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; Wed, 1 May 2019 09:41:57 +0100 From: David Laight To: "'Reshetova, Elena'" , Andy Lutomirski CC: Theodore Ts'o , Eric Biggers , "ebiggers@google.com" , "herbert@gondor.apana.org.au" , Ingo Molnar , Peter Zijlstra , "keescook@chromium.org" , Daniel Borkmann , "luto@kernel.org" , "linux-kernel@vger.kernel.org" , "jpoimboe@redhat.com" , "jannh@google.com" , "Perla, Enrico" , "mingo@redhat.com" , "bp@alien8.de" , "tglx@linutronix.de" , "gregkh@linuxfoundation.org" , "Edgecombe, Rick P" Subject: RE: [PATCH] x86/entry/64: randomize kernel stack offset upon syscall Thread-Topic: [PATCH] x86/entry/64: randomize kernel stack offset upon syscall Thread-Index: AQHU9E1UquBTkhVACE2y3BuRFoekIqY8wW2AgAAdM1CAAXexAIAANZ3ggAAW1gCAAApRgIAAMeKAgAAd+PCAAQuGgIAAYQuAgAAKhwCACsPi4IADJTwAgAAcagCAAExngIAEBbGAgACIbACAAbyQ8IAA9yhg Date: Wed, 1 May 2019 08:41:57 +0000 Message-ID: <303fc4ee5ac04e4fac104df1188952e8@AcuMS.aculab.com> References: <2236FBA76BA1254E88B949DDB74E612BA4C51962@IRSMSX102.ger.corp.intel.com> <20190416120822.GV11158@hirez.programming.kicks-ass.net> <01914abbfc1a4053897d8d87a63e3411@AcuMS.aculab.com> <20190416154348.GB3004@mit.edu> <2236FBA76BA1254E88B949DDB74E612BA4C52338@IRSMSX102.ger.corp.intel.com> <9cf586757eb44f2c8f167abf078da921@AcuMS.aculab.com> <20190417151555.GG4686@mit.edu> <99e045427125403ba2b90c2707d74e02@AcuMS.aculab.com> <2236FBA76BA1254E88B949DDB74E612BA4C5E473@IRSMSX102.ger.corp.intel.com> <2236FBA76BA1254E88B949DDB74E612BA4C63E24@IRSMSX102.ger.corp.intel.com> <20190426140102.GA4922@mit.edu> <57357E35-3D9B-4CA7-BAB9-0BE89E0094D2@amacapital.net> <2236FBA76BA1254E88B949DDB74E612BA4C66A8A@IRSMSX102.ger.corp.intel.com> <6860856C-6A92-4569-9CD8-FF6C5C441F30@amacapital.net> <2236FBA76BA1254E88B949DDB74E612BA4C6A4D7@IRSMSX102.ger.corp.intel.com> In-Reply-To: <2236FBA76BA1254E88B949DDB74E612BA4C6A4D7@IRSMSX102.ger.corp.intel.com> Accept-Language: en-GB, en-US Content-Language: 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-MC-Unique: CW7NFOPjM2SPadXKTPuDJQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogUmVzaGV0b3ZhLCBFbGVuYQ0KPiBTZW50OiAzMCBBcHJpbCAyMDE5IDE4OjUxDQouLi4N Cj4gK3Vuc2lnbmVkIGNoYXIgcmFuZG9tX2dldF9ieXRlKHZvaWQpDQo+ICt7DQo+ICsgICAgc3Ry dWN0IHJuZF9idWZmZXIgKmJ1ZmZlciA9ICZnZXRfY3B1X3ZhcihzdGFja19yYW5kX29mZnNldCk7 DQo+ICsgICAgdW5zaWduZWQgY2hhciByZXM7DQo+ICsNCj4gKyAgICBpZiAoYnVmZmVyLT5ieXRl X2NvdW50ZXIgPj0gUkFORE9NX0JVRkZFUl9TSVpFKSB7DQo+ICsgICAgICAgIGdldF9yYW5kb21f Ynl0ZXMoJihidWZmZXItPmJ1ZmZlciksIHNpemVvZihidWZmZXItPmJ1ZmZlcikpOw0KPiArICAg ICAgICBidWZmZXItPmJ5dGVfY291bnRlciA9IDA7DQo+ICsgICAgfQ0KPiArDQo+ICsgICAgcmVz ID0gYnVmZmVyLT5idWZmZXJbYnVmZmVyLT5ieXRlX2NvdW50ZXJdOw0KPiArICAgIGJ1ZmZlci0+ YnVmZmVyW2J1ZmZlci0+Ynl0ZV9jb3VudGVyXSA9IDA7DQoNCklmIGlzIHJlYWxseSB3b3J0aCBk aXJ0eWluZyBhIGNhY2h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