Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2148289yba; Mon, 6 May 2019 00:02:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfCyUBXifGllq43lS21aHWPwBdpwjVr5C2xMRruRI+Vlc48ulVO0qaRpHdHFZfSYm4YxCF X-Received: by 2002:a63:4621:: with SMTP id t33mr27596841pga.246.1557126141483; Mon, 06 May 2019 00:02:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557126141; cv=none; d=google.com; s=arc-20160816; b=vpzXa7fPyLbyic1XvbAOGj4MnqbpAPWAbHOdfPUzbDrHim0NbrF9HcRXw/txxZkUwI S7OWccz2SIulEnyfQDIc2sMyElyhRKht68lk0UVqrFPUUTb94jJDKOv/h1gUlvhafvhn klTvb4s3mAT1cOSKVej2kkXRg3wqubT8w6wnaPeJnrbpOdVc705oAlvzVF48kbOMOucK B+YStdasnlnBv0+WwxcqtDanE7CTEa+rzmxYbDV+L3USFgwzqNtfCVPw9MYH8HZBHaS4 HjQ/1LFHRO/fRK+SDDosvtgI1zNZddrIcGfJ0fV2XXwIG1RqCes/8MNp6PGa1dGGxlw2 G1/A== 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=m5skD+UPYmLgO07iER3KvggcraBwn4ZXbh7kC35ntT0=; b=02+WHTwSOc/bZ8A3LgU1I4HN2KDbPWMdz45MdXv5oK88508GzRp1ukvlRHXHB4dwdC WdrnU2j7dI1bthRNLhfvPnDSy2kVth+YexQMDNycnrQqLaQpJHgSxSLJZ5R8pWXZwxgO B0ZlmqvI9WMWSSVgnA+9OwB1/UlqnaNQyLKxcl/6Zl5I2aGh5mPw/YTlyaKdE/L42kV1 rTd2fyM0qRq4Nmgl6sFgyh8Qm4yOkVAxwy20Buu4Z+vDu+tckIoU+cYvWOl+PtPgQZ7d mNgNliSTM4qq+xOglc9M1AxKG64L9937Cfs25DS0YSnrB6Zuz9+Vc9yGjLY0BUurxSu8 6OKQ== 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 cj12si1502229plb.257.2019.05.06.00.02.05; Mon, 06 May 2019 00:02: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 S1725864AbfEFHBK (ORCPT + 99 others); Mon, 6 May 2019 03:01:10 -0400 Received: from mga02.intel.com ([134.134.136.20]:31788 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725710AbfEFHBK (ORCPT ); Mon, 6 May 2019 03:01:10 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 May 2019 00:01:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,437,1549958400"; d="scan'208";a="140379799" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by orsmga008.jf.intel.com with ESMTP; 06 May 2019 00:01:05 -0700 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.21]) by IRSMSX106.ger.corp.intel.com ([169.254.8.235]) with mapi id 14.03.0415.000; Mon, 6 May 2019 08:01:05 +0100 From: "Reshetova, Elena" To: David Laight , Ingo Molnar CC: Andy Lutomirski , Theodore Ts'o , "Eric Biggers" , "ebiggers@google.com" , "herbert@gondor.apana.org.au" , Peter Zijlstra , "keescook@chromium.org" , Daniel Borkmann , "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" , Linus Torvalds , Peter Zijlstra 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+PCAAQuGgIAAYQuAgAAKhwCACsPi4IADJTwAgAAcagCAAExngIAEBbGAgACIbACAAbyQ8IAA626AgAGZfXCAAARpgIAAWpuAgAAF74CAABf/AIAAAvkAgAGZnrD///dzgIAEI1ng Date: Mon, 6 May 2019 07:01:04 +0000 Message-ID: <2236FBA76BA1254E88B949DDB74E612BA4C7125F@IRSMSX102.ger.corp.intel.com> References: <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> <303fc4ee5ac04e4fac104df1188952e8@AcuMS.aculab.com> <2236FBA76BA1254E88B949DDB74E612BA4C6C2C3@IRSMSX102.ger.corp.intel.com> <2e55aeb3b39440c0bebf47f0f9522dd8@AcuMS.aculab.com> <20190502150853.GA16779@gmail.com> <20190502164524.GB115950@gmail.com> <2236FBA76BA1254E88B949DDB74E612BA4C6F523@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMDkwNzNhZTgtMTVmZi00NmVmLThmNzAtN2VhNjNkZDY3OWViIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiQnVQcFlEbXZGaU9iYUlqU3dUQ2JydWNzS1ZZblZhNVJ5dGtXZTRRU3pzTnZsRHB4dkdyTTI5NjBVeWVmWmhKcyJ9 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 PiBGcm9tOiBSZXNoZXRvdmEsIEVsZW5hDQo+ID4gU2VudDogMDMgTWF5IDIwMTkgMTc6MTcNCj4g Li4uDQo+ID4gcmRyYW5kIChjYWxsaW5nIGV2ZXJ5IDggc3lzY2FsbHMpOiBTaW1wbGUgc3lzY2Fs bDogMC4wNzk1IG1pY3Jvc2Vjb25kcw0KPiANCj4gWW91IGNvdWxkIHRyeSBzb21ldGhpbmcgbGlr ZToNCj4gCXU2NCByYW5kX3ZhbCA9IGNwdV92YXItPnN5c2NhbGxfcmFuZA0KPiANCj4gCXdoaWxl ICh1bmxpa2VseShyYW5k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