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=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,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 2283DC4727E for ; Mon, 21 Sep 2020 22:47:57 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B6FD023A65 for ; Mon, 21 Sep 2020 22:47:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B6FD023A65 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 4E33C900011; Mon, 21 Sep 2020 18:47:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4924B900007; Mon, 21 Sep 2020 18:47:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 35AF5900011; Mon, 21 Sep 2020 18:47:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0110.hostedemail.com [216.40.44.110]) by kanga.kvack.org (Postfix) with ESMTP id 21778900007 for ; Mon, 21 Sep 2020 18:47:56 -0400 (EDT) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id E4AE81EF1 for ; Mon, 21 Sep 2020 22:47:55 +0000 (UTC) X-FDA: 77288557710.01.car94_4d045e727148 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin01.hostedemail.com (Postfix) with ESMTP id B3E1A10045ECA for ; Mon, 21 Sep 2020 22:47:55 +0000 (UTC) X-HE-Tag: car94_4d045e727148 X-Filterd-Recvd-Size: 4311 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by imf25.hostedemail.com (Postfix) with ESMTP for ; Mon, 21 Sep 2020 22:47:54 +0000 (UTC) IronPort-SDR: KNKf1vzMec99K/gK/nZO0WyMZ3IQG+TEACS0v9Isa3owwDLRgR9K5Te82fbA11QIY+UhHPZ9ky 2PJLA6w8v1aA== X-IronPort-AV: E=McAfee;i="6000,8403,9751"; a="222086154" X-IronPort-AV: E=Sophos;i="5.77,288,1596524400"; d="scan'208";a="222086154" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2020 15:47:52 -0700 IronPort-SDR: gycAem7Xa6ebdzaySf5YhbAulUIpxadRgZqjyY2BtOc6mPeDk0qKrkJkSx9M/el7HVu4AykyIt /przTO84r3ag== X-IronPort-AV: E=Sophos;i="5.77,288,1596524400"; d="scan'208";a="346716477" Received: from yyu32-mobl1.amr.corp.intel.com (HELO [10.212.102.78]) ([10.212.102.78]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2020 15:47:51 -0700 Subject: Re: [PATCH v12 1/8] x86/cet/ibt: Add Kconfig option for user-mode Indirect Branch Tracking To: Dave Hansen , Pavel Machek Cc: Randy Dunlap , x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Peter Zijlstra , "Ravi V. Shankar" , Vedvyas Shanbhogue , Dave Martin , Weijiang Yang References: <20200918192312.25978-1-yu-cheng.yu@intel.com> <20200918192312.25978-2-yu-cheng.yu@intel.com> <20200918205933.GB4304@duo.ucw.cz> <019b5e45-b116-7f3d-f1f2-3680afbd676c@intel.com> <20200918214020.GF4304@duo.ucw.cz> From: "Yu, Yu-cheng" Message-ID: <3a0b0baf-a0f5-fd15-3af1-0059a807100b@intel.com> Date: Mon, 21 Sep 2020 15:47:50 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 9/21/2020 3:41 PM, Dave Hansen wrote: > On 9/21/20 3:30 PM, Yu, Yu-cheng wrote: >> +config X86_INTEL_BRANCH_TRACKING_USER >> + prompt "Intel Indirect Branch Tracking for user-mode" > > Take the "Intel " and "INTEL_" out, please. It will only cause us all > pain later if some of our x86 compatriots decide to implement this. > >> If the kernel is to be used only on older systems that do not support >> IBT, and the size of the binary is important, you can save 900 KB by >> disabling this feature. >> >> Otherwise, if unsure, say Y. > > 900k seems like a *lot*. Where the heck does that come from? > > Also, comments like that don't age very well. Consider: > > Support for this feature is only known to be present on Intel > processors released in 2020 or later. This feature is also > known to increase kernel text size substantially. > > If unsure, say N. > Thanks! > The 900KB is probably wrong today in a lot of configurations, and will; > only get *more* wrong over time. > I was talking about the vmlinux file, and probably should have said bzImage size, which has 14 KB increase when CET is enabled. Yu-cheng