Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3545362pxk; Mon, 21 Sep 2020 17:22:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxULGHAP2kZYBhydhKKIevfoF5FneOLQFrZ5OyyOsSg4PM9iZ8i9+N13tIyVO2KH3fM/iGo X-Received: by 2002:a05:6402:44c:: with SMTP id p12mr1381484edw.157.1600734144576; Mon, 21 Sep 2020 17:22:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600734144; cv=none; d=google.com; s=arc-20160816; b=TQv2/Qgbu28pDaT00gc7bLrPUOtGCP0zsn2K+RnUg3YtuXfwqy5ZfvRkjRHICKyBKq lkLypdWpiv+9Y2deTzuHmVfykdZLO+4h6DDO6Y2Uh34cble0KwHi6Gk59N/dbjApjV10 xNr/8mbSAD85okq2HKnkPSAe/8HglqkeRIGtrTe2nObClp7cfo5tpebj0368hsQvs6iw mxIG2gKn1GnpUL+urSoYyRZyVn5Kr+GHwpHv/KSSA/Mfc81cSsRfDRlBUUaUXPPgiNfq BeLrhUEkugIcBg+hT0FBf7cXUx40WMSrYKsxrZtd4ugOSF+Jj0kYBCE0jBLr4L037CXM MK+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=ZJPduVA+NnDCfETLaTrRRZnFsrPmk8eRMi8wMenDy2M=; b=sA6rivt/X5Lwsvwxq6x9xhgxFCcYAyP+QMbjZQKpYXsTMqWxQ2rmSCi0EG6GQWxRNp byG99rTAHplgbcz3GcM2J2u8gI/22Uc5saTvM2AVQCF+/CBX4goN+uZMWIY6nmkx3zMi CIM3oMGcJDvAv8CM0ThElgq22y+/t7lMEdgmRPGYFik/qLrge+G2/dR6Y4zjNZA13mqY 7hwr8AII0sa99eKBezzbfO+C/uY6zVWlPwlh9vfuSlVA5S8HtVRBJk6oY9KmkUVELFbj Rs29L/PXgXu0iqDen7RIdY9ojGQsn0OgX2M/+i51U8skmKK4os0L7u0fApJNnTcCxG3U NOLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id 16si6785992edv.551.2020.09.21.17.22.01; Mon, 21 Sep 2020 17:22:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728664AbgIUWrx (ORCPT + 99 others); Mon, 21 Sep 2020 18:47:53 -0400 Received: from mga09.intel.com ([134.134.136.24]:20176 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726457AbgIUWrx (ORCPT ); Mon, 21 Sep 2020 18:47:53 -0400 IronPort-SDR: 6+t3HFiFJTADTQPyi2oYCkBlRmLSAFxM4x2/geF+KrTBdmzyXMeD5fiBfFW/MSDBHrbvKGVrSl q7pAP2ubeNnw== X-IronPort-AV: E=McAfee;i="6000,8403,9751"; a="161413478" X-IronPort-AV: E=Sophos;i="5.77,288,1596524400"; d="scan'208";a="161413478" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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