Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp83799yba; Thu, 11 Apr 2019 22:37:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqycb6DuEPnLbmsiV6T11dJaHv5TuCstEcm+IeUlGDzU9kO1ztEuIPHM/+IvzPtoktQLX9A8 X-Received: by 2002:a65:4185:: with SMTP id a5mr50295052pgq.82.1555047441244; Thu, 11 Apr 2019 22:37:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555047441; cv=none; d=google.com; s=arc-20160816; b=xTFRqza12SARznvjms/ms8xn0ZaXmCEEcQPos09mbLlffWPgCK5bYDPQ6ENCXJDrkv VCmuThTuhdeHXXwKC4V1nF13nbt1N+cYk2UmDKMwqOI8DpjNOD59kuZdQ7yHS/rsfAi+ dfAAiUeNp85ytowNf2/SxidUPPd5Du1KcAsjtcwL6t9nbqE545k8V4LpmoQ1K5gNiPfP vk+caWY0926pb1FDe6WvtXXlT7lWr1fmvfwK9C/Ejf6y2ZGcmHsO/zMvqCWt5e2EIObN 0TpdDoyfwi6FV3UmRFqgeOsHUzCwsRNPEfptFVkhFUyWjJBTkSxakhevd1mi1FCSM8fs PhHA== 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=2nGP/SaeiQj6SxH4CDA9VXbygCUiq+dYr79ISNm1iNk=; b=JiGv+9HptG4adV5dG4beZE+Iiz3GhRLNmiQOQ52Wat5XnwH/yKqb4UyeuNjSkFCPQs CuMTklAYn79g/wLLHldGXs6v8YbZzfsMQmPXJCfFiqItJ82Qp67kogI/lITlpR4650ZX /ebJspLpE7fHMcghAbLn5N8nGk3RtCehTkT4qPf+bWkYpDPMIuf6xjReE2KQWx1uszZN 6VREzq17WEs4TNLi/zuO+rZyCcYly1U1kAiBQ4gCYuQ0GV0FWaCs2yH6Y76XX499d2pE mNOKzWJclet3usnfN37u9/08ePLlu1HCEVqeFt+8wzn7QuWPBpPYXZx5TJTodARTL+s+ 7dvg== 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 f14si10739638pgf.519.2019.04.11.22.37.04; Thu, 11 Apr 2019 22:37:21 -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 S1726640AbfDLFgX (ORCPT + 99 others); Fri, 12 Apr 2019 01:36:23 -0400 Received: from mga01.intel.com ([192.55.52.88]:58206 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726024AbfDLFgW (ORCPT ); Fri, 12 Apr 2019 01:36:22 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Apr 2019 22:36:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,340,1549958400"; d="scan'208";a="163629984" Received: from irsmsx105.ger.corp.intel.com ([163.33.3.28]) by fmsmga001.fm.intel.com with ESMTP; 11 Apr 2019 22:36:19 -0700 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.21]) by irsmsx105.ger.corp.intel.com ([169.254.7.31]) with mapi id 14.03.0415.000; Fri, 12 Apr 2019 06:36:18 +0100 From: "Reshetova, Elena" To: Andy Lutomirski CC: Ingo Molnar , Josh Poimboeuf , "linux-kernel@vger.kernel.org" , "keescook@chromium.org" , "jannh@google.com" , "Perla, Enrico" , "mingo@redhat.com" , "bp@alien8.de" , "tglx@linutronix.de" , "peterz@infradead.org" , "gregkh@linuxfoundation.org" 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: AQHU7dJsIdze6jSaA0qMnvHjeKNle6YyJqcAgALbMACAABmnEIAAFjjggAA73ICAApmxEA== Date: Fri, 12 Apr 2019 05:36:18 +0000 Message-ID: <2236FBA76BA1254E88B949DDB74E612BA4C4C052@IRSMSX102.ger.corp.intel.com> References: <20190408061358.21288-1-elena.reshetova@intel.com> <20190408124940.hb4d2mvwue7aydjj@treble> <20190410082642.GA35032@gmail.com> <2236FBA76BA1254E88B949DDB74E612BA4C48943@IRSMSX102.ger.corp.intel.com> <2236FBA76BA1254E88B949DDB74E612BA4C48B15@IRSMSX102.ger.corp.intel.com> In-Reply-To: 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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiY2JjMDlmYzUtNTU5OS00YzQ4LWFiY2YtMzNkNWRjY2MxMDVjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUzZ6eForVjkxbUpiSVZueHduQ3J6c0JBM1VMcW42TlwvWnFBWm1SelZFTlNuOXJsVWttM3F5c1Y3ME40RVFTMEIifQ== x-originating-ip: [163.33.239.182] 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 PiBPbiBXZWQsIEFwciAxMCwgMjAxOSBhdCAzOjI0IEFNIFJlc2hldG92YSwgRWxlbmENCj4gPGVs ZW5hLnJlc2hldG92YUBpbnRlbC5jb20+IHdyb3RlOg0KPiA+DQo+ID4NCj4gPiA+ID4gPiBPbiBN b24sIEFwciAwOCwgMjAxOSBhdCAwOToxMzo1OEFNICswMzAwLCBFbGVuYSBSZXNoZXRvdmEgd3Jv dGU6DQo+ID4gPiA+ID4gPiBkaWZmIC0tZ2l0IGEvYXJjaC94ODYvZW50cnkvY29tbW9uLmMgYi9h cmNoL3g4Ni9lbnRyeS9jb21tb24uYw0KPiA+ID4gPiA+ID4gaW5kZXggN2JjMTA1ZjQ3ZDIxLi4z OGRkYzIxM2E1ZTkgMTAwNjQ0DQo+ID4gPiA+ID4gPiAtLS0gYS9hcmNoL3g4Ni9lbnRyeS9jb21t b24uYw0KPiA+ID4gPiA+ID4gKysrIGIvYXJjaC94ODYvZW50cnkvY29tbW9uLmMNCj4gPiA+ID4g PiA+IEBAIC0zNSw2ICszNSwxMiBAQA0KPiA+ID4gPiA+ID4gICNkZWZpbmUgQ1JFQVRFX1RSQUNF X1BPSU5UUw0KPiA+ID4gPiA+ID4gICNpbmNsdWRlIDx0cmFjZS9ldmVudHMvc3lzY2FsbHMuaD4N Cj4gPiA+ID4gPiA+DQo+ID4gPiA+ID4gPiArI2lmZGVmIENPTkZJR19SQU5ET01JWkVfS1NUQUNL X09GRlNFVA0KPiA+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