From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61C4BC3F2D1 for ; Wed, 4 Mar 2020 19:23:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3287A20870 for ; Wed, 4 Mar 2020 19:23:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="ar6nn8Ge" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387740AbgCDTXD (ORCPT ); Wed, 4 Mar 2020 14:23:03 -0500 Received: from terminus.zytor.com ([198.137.202.136]:54875 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387711AbgCDTXD (ORCPT ); Wed, 4 Mar 2020 14:23:03 -0500 Received: from hanvin-mobl2.amr.corp.intel.com ([192.55.55.45]) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id 024JM4WA436200 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Wed, 4 Mar 2020 11:22:05 -0800 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 024JM4WA436200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2020022001; t=1583349727; bh=g6Mtry4glpDMxH5UiOpY16heGYyer5fR7lVfPBWaveE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=ar6nn8Ge/T+692bP42wyhN6/gA6zy1dzCiGF74CRXJXFqjrk6VwRkFpBhRP3+cZ6P aoecjqhhdSeSkR9EesGi+ThpGixJViS9m59hDZE5MkhJCppsl9CGI+XaXJHL6N9PSz N15YsSpDSe2BGbMQ73a5iqbaYgTLZGuuCk9xtQ+bYyE3yGCxvvNHQZ7Xw/jQnA8xUa jCODCawM3hNRUyrc1PnA5eoR37ZT81R1OELgMwfxsZpMMFvL9tLT1LJphQQCaZE+6J TgBBCCGkC2zFLRAajE3d9FAm6PTlGUqxGMq/StoWIgr6Tz8ZPVJwmUM93IFzinAgT+ QzoETf31D45JA== Subject: Re: [PATCH v11 00/11] x86: PIE support to extend KASLR randomization To: Thomas Garnier Cc: Kees Cook , Peter Zijlstra , Kristen Carlson Accardi , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Kernel Hardening , Herbert Xu , "David S. Miller" , the arch/x86 maintainers , Andy Lutomirski , Juergen Gross , Thomas Hellstrom , "VMware, Inc." , "Rafael J. Wysocki" , Len Brown , Pavel Machek , Rasmus Villemoes , Miguel Ojeda , Will Deacon , Ard Biesheuvel , Masami Hiramatsu , Jiri Slaby , Boris Ostrovsky , Josh Poimboeuf , Cao jin , Allison Randal , Linux Crypto Mailing List , LKML , virtualization@lists.linux-foundation.org, Linux PM list References: <20200228000105.165012-1-thgarnie@chromium.org> <202003022100.54CEEE60F@keescook> <20200303095514.GA2596@hirez.programming.kicks-ass.net> <6e7e4191612460ba96567c16b4171f2d2f91b296.camel@linux.intel.com> <202003031314.1AFFC0E@keescook> <20200304092136.GI2596@hirez.programming.kicks-ass.net> <202003041019.C6386B2F7@keescook> From: "H. Peter Anvin" Message-ID: <627fe5d2-e6c3-4eff-1a58-14e17dc04ac5@zytor.com> Date: Wed, 4 Mar 2020 11:22:04 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2020-03-04 11:19, Thomas Garnier wrote: >> >> The huge memory model, required for arbitrary placement, has a very >> significant performance impact. > > I assume you mean mcmodel=large, it doesn't use it. It uses -fPIE and > removes -mcmodel=kernel. It favors relative references whenever > possible. > I know... this was in reference to a comment of Kees'. -hpa