Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp493983yba; Wed, 24 Apr 2019 05:02:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzV/LJVudKdbRkyY0LYiA9DEra21YoSjn4ji62vHdYoubUNFxEHvu75J+yhgG2niIe40Pwp X-Received: by 2002:a63:c243:: with SMTP id l3mr143278pgg.448.1556107344052; Wed, 24 Apr 2019 05:02:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556107344; cv=none; d=google.com; s=arc-20160816; b=GZhOee5k77knEQfmBqSs20C/s5tQJkJtlhCM91Q5omloQ7QCaZQDjtRBsiVhtIcHuB fBml9fvHcUq4QPSQpcJqvU8xLWDgiwlhplZzg0v9usz+v2iPYB2FGkUzcoFBRPv1dAKf 61EDd0FT7zLrb0G3sP48G1EfUy+MkTU7QUZ3A4TfGOF+sf+/rRsKpB2EiVOvWOiwl9G5 OevbrQA+8ZXNv4FwR+tO3/CR+L5tOTZE6SkuDeSpCHSJMp4+0at90Ho+dIsA7TI1nlzX gruoKRI4B66tTraXMVZdVzGYrhp/JEv/jlKU7gmuRVXUzxAF2lFbpVVfixrn10lYx7H0 5HFw== 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=8ZTt9NPrkwHpmviZ3ponhU4xm3XgpunWRjqpHq9YROg=; b=HtWdu9A54wZ1msEf7rgFVsM77+Ug4hKrf1dgwyfRgkpXAQaOrOq0B3s7QSmdCoZ2+A ojEmA90GBjRi9HvagRnI+D6CRObW35Y0IE5g5J0l2GiqfxKe1l/cH7GXd/QaTdBwrq21 tYCxtoufZsz8rzPub0KeCAcCWUMYOu6YZwPRCD72jSkcX92r9LxdWQMHh1zZ63tnnGVf u1DM0FlLuGnkX5JMX+2t48GdJ/ySojRFMM4Uj8T5kefJb2FcZC7iFwtLkYD4BccAk39c HknQj+92xxWn/snoAkq7LzUapPHQJIgPD3e6y0o3MpZJCk69N+LpESk23tti47nsiyou RHrA== 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 cn1si19555775plb.175.2019.04.24.05.02.04; Wed, 24 Apr 2019 05:02:24 -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 S1727311AbfDXLmt (ORCPT + 99 others); Wed, 24 Apr 2019 07:42:49 -0400 Received: from mga05.intel.com ([192.55.52.43]:10237 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726430AbfDXLmt (ORCPT ); Wed, 24 Apr 2019 07:42:49 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Apr 2019 04:42:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,389,1549958400"; d="scan'208";a="133956941" Received: from irsmsx103.ger.corp.intel.com ([163.33.3.157]) by orsmga007.jf.intel.com with ESMTP; 24 Apr 2019 04:42:45 -0700 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.21]) by IRSMSX103.ger.corp.intel.com ([169.254.3.30]) with mapi id 14.03.0415.000; Wed, 24 Apr 2019 12:42:44 +0100 From: "Reshetova, Elena" To: 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" 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+PCAAQuGgIAAYQuAgAAKhwCACsPi4A== Date: Wed, 24 Apr 2019 11:42:44 +0000 Message-ID: <2236FBA76BA1254E88B949DDB74E612BA4C5E473@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> In-Reply-To: <99e045427125403ba2b90c2707d74e02@AcuMS.aculab.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 SGksIA0KDQpTb3JyeSBmb3IgdGhlIGRlbGF5IC0gRWFzdGVyIGhvbGlkYXlzICsgSSB3YXMgdHJ5 aW5nIHRvIGFycmFuZ2UgbXkgYnJhaW4gYXJvdW5kIHByb3Bvc2VkIG9wdGlvbnMuIA0KSGVyZSB3 aGF0IEkgdGhpbmsgb3VyIG9wdGlvbnMgYXJlIHdpdGggcmVnYXJkcyB0byB0aGUgc291cmNlIG9m IHJhbmRvbW5lc3M6DQoNCjEpIHJkdHNjIG9yIHZhcmlhdGlvbnMgYmFzZWQgb24gaXQgKERhdmlk IHByb3Bvc2VkIHNvbWUgQ1JDLWJhc2VkIHZhcmlhbnRzIGZvciBleGFtcGxlKQ0KMikgcHJhbmRv bS1iYXNlZCBvcHRpb25zIA0KMykgc29tZSBwcm9wZXIgY3J5cHRvIChjaGFj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