Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp530614yba; Fri, 26 Apr 2019 04:34:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9WkUdctUQKVgIUNcrvZg55FLFpTXgw8xhxsY830NUUL3NJvAo0YxyOJxjDPw1htO+SLVK X-Received: by 2002:a65:6282:: with SMTP id f2mr21174562pgv.152.1556278486401; Fri, 26 Apr 2019 04:34:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556278486; cv=none; d=google.com; s=arc-20160816; b=rc+OtUu5EjK+50sRJ6zVf5s6bTql4hXjczrkClN8Sy7SK7nK2UQ4ICOvekewBH/tYA 2L5SsbkOWSS7WmPuxKhacej1nZBA2mwv6R+4xPTVCkd6WvrrGAli9GdM5hvBP6/x+6kS YRMX9nBK1b45u9ofu00UF4rE3FdNdo6J9cOfYgm6xiDeauFdp8shRcWKKt10RkdJq9ks vteAZnYUXZqwA3iaHcjWC8XMVkf0LiQUpwB8cB0VHflsJzZ6p0j28ue6p4F0UKcTEzqD 5o2LX2UWnUzLGqMt+xq+leCgbLedk8GnJteslBOhT6Qw/MS91IvsYkR7vdiyHYZMlEuh Gvig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=zsSYhEDCE6bfytmiYvCpighcxRRuDM0f+BFFrpdc9nw=; b=CoSWgPUQtret9A7WyUBIMS+ShgCmTMftaqVLdkgWydIYig3Y+BKahdmFnxKB/c6FPl GYS9DV9OgzzCesYCH3o99fpbJJjaWQUp41PxC8dZ3eiGsgmhiUOTJvU63IF/C/Im+S5W xxIkOjLUxOenZRcno1Z8o2bwa4ovTOW42P+EK1haLb4rsTyV4YA9hkBhqzbhQaSWlz1L KLt2/bd16AMdCviVNz1AbOoD1e9JCzDIgAr/iB4T+gDOoJEulynmjxlXo+UvpuoYlWDc 5NxokPIutkL4hOjdZRI8mP32hs+t3JdoIkSEJfIcsHDkgeZHf7M+oAHde5NjebUOUOq/ JZIg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2si23327028pgp.239.2019.04.26.04.34.30; Fri, 26 Apr 2019 04:34:46 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726126AbfDZLdQ (ORCPT + 99 others); Fri, 26 Apr 2019 07:33:16 -0400 Received: from mga18.intel.com ([134.134.136.126]:31178 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725923AbfDZLdQ (ORCPT ); Fri, 26 Apr 2019 07:33:16 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Apr 2019 04:33:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,397,1549958400"; d="scan'208";a="226920032" Received: from irsmsx105.ger.corp.intel.com ([163.33.3.28]) by orsmga001.jf.intel.com with ESMTP; 26 Apr 2019 04:33:11 -0700 Received: from irsmsx111.ger.corp.intel.com (10.108.20.4) by irsmsx105.ger.corp.intel.com (163.33.3.28) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 26 Apr 2019 12:33:11 +0100 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.21]) by irsmsx111.ger.corp.intel.com ([169.254.2.85]) with mapi id 14.03.0415.000; Fri, 26 Apr 2019 12:33:10 +0100 From: "Reshetova, Elena" To: Eric Biggers , "ebiggers@google.com" , "herbert@gondor.apana.org.au" , David Laight , 'Theodore Ts'o' , Ingo Molnar , "'Peter Zijlstra'" , "keescook@chromium.org" CC: Daniel Borkmann , "luto@kernel.org" , "luto@amacapital.net" , "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" , "Reshetova, Elena" , "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: AQHU81HQwzT9MH4dM0y/JZXnSwiYT6Y8wW2AgAAdM1CAAXexAIAANZ3ggAAW1gCAAApRgIAAMeKAgAAd+PCAAQuGgIAAYQuAgAAKhwCACsPi4IADJTwA Date: Fri, 26 Apr 2019 11:33:09 +0000 Message-ID: <2236FBA76BA1254E88B949DDB74E612BA4C63E24@IRSMSX102.ger.corp.intel.com> References: <20190415060918.3766-1-elena.reshetova@intel.com> <20190415072535.GA51449@gmail.com> <2236FBA76BA1254E88B949DDB74E612BA4C4F90F@IRSMSX102.ger.corp.intel.com> <20190416073444.GC127769@gmail.com> <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> In-Reply-To: <2236FBA76BA1254E88B949DDB74E612BA4C5E473@IRSMSX102.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjI4YmRmMjYtMmZhMS00NGRhLThkMTgtYzQwMTMxMTFmZjdlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiQnpld0VHbUJkWUJmd0M0OHNqMXVUc0RXbjBjeHJOK2kwZ2lrREtzakhFQ1BBc1FGMHNuSnBUKzNpVGpDeGFLdCJ9 x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBIaSwNCj4gDQo+IFNvcnJ5IGZvciB0aGUgZGVsYXkgLSBFYXN0ZXIgaG9saWRheXMgKyBJIHdh cyB0cnlpbmcgdG8gYXJyYW5nZSBteSBicmFpbiBhcm91bmQNCj4gcHJvcG9zZWQgb3B0aW9ucy4N Cj4gSGVyZSB3aGF0IEkgdGhpbmsgb3VyIG9wdGlv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