From: Markus Trippelsdorf Subject: Re: x86: PIE support and option to extend KASLR randomization Date: Fri, 22 Sep 2017 06:24:44 +0200 Message-ID: <20170922042444.GA235@x4> References: <20170817080920.5ljlkktngw2cisfg@gmail.com> <20170825080443.tvvr6wzs362cjcuu@gmail.com> <20170921155919.skpyt7dutod5ul4t@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Cc: Nicolas Pitre , Peter Zijlstra , Michal Hocko , Len Brown , Radim =?utf-8?B?S3LEjW3DocWZ?= , Peter Zijlstra , Catalin Marinas , Christopher Li , Alexei Starovoitov , David Howells , Paul Gortmaker , Pavel Machek , "H . Peter Anvin" , Kernel Hardening , Christoph Lameter , Ingo Molnar , Kees Cook , the arch/x86 maintainers , Herbert Xu , Daniel Borkmann , Matthew Wilcox , Peter Foley , Joerg Roedel Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" List-Id: linux-crypto.vger.kernel.org T24gMjAxNy4wOS4yMSBhdCAxNDoyMSAtMDcwMCwgVGhvbWFzIEdhcm5pZXIgd3JvdGU6Cj4gT24g VGh1LCBTZXAgMjEsIDIwMTcgYXQgOToxMCBBTSwgQXJkIEJpZXNoZXV2ZWwKPiA8YXJkLmJpZXNo ZXV2ZWxAbGluYXJvLm9yZz4gd3JvdGU6Cj4gPgo+ID4gT24gMjEgU2VwdGVtYmVyIDIwMTcgYXQg MDg6NTksIEluZ28gTW9sbmFyIDxtaW5nb0BrZXJuZWwub3JnPiB3cm90ZToKPiA+ID4KPiA+ID4g KCBTb3JyeSBhYm91dCB0aGUgZGVsYXkgaW4gYW5zd2VyaW5nIHRoaXMuIEkgY291bGQgYmxhbWUg dGhlIGRlbGF5IG9uIHRoZSBtZXJnZQo+ID4gPiAgIHdpbmRvdywgYnV0IGluIHJlYWxpdHkgSSd2 ZSBiZWVuIHByb2NyYXN0aW5hd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