Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4208065pxu; Mon, 12 Oct 2020 12:17:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzn4dWKnhiGa974aLrsx4DyQL44zQCqC6gBb5qsMpsUMK6kxATWv4G3CQ9gmo4mfvBxjcp6 X-Received: by 2002:a17:906:4b0f:: with SMTP id y15mr8078726eju.198.1602530268583; Mon, 12 Oct 2020 12:17:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602530268; cv=none; d=google.com; s=arc-20160816; b=GEHZLAxkrx73J3X90jNumparKS9T7A0RzHxIDmyld0dz1NVwBT84XlZJ0h0i1lY0vQ k7zEVR6o5c5ssN8A4/+DFGgLle8BqrHxv9RaqQpYy6vMvKrgWPsiGT8VatoAz3H3jF5m D0bhGpXRdyehX5+x87mn036xJBBWbq9bJ2PJOKB0T0jgNeYSg6TAgNrVUtpaJ9Aho4q1 2Af7qC5jTlYmvFIsHC6Odu914mV4LW1m+NVNS20YUjaaJtDM4o31EbtWTIBl/ftF1Ocm XqsYGCTujcWLis24V/0aIYkmsWKKttfpND8qx5/2CrHTLeQ7FJadAy8IuzOQbnoZPDQi Xzkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=HoEgSi7W4gHD9lScysoMmzA283msUCELsQqu811nuNc=; b=aQ0hozc+v8UB6mUisgRpIN+WzZDC9NKxEHvUksH/PNXvMEW634bmScf04SpuuiHyDE G8s893YMWwmotToIo5zrnyOFcNq5Sonws6fppRO87cabv/gZTYr2dcuAAandYZZcIbM6 EIHd+12IHtDNLifkbsBLARl8KR/F8e7puruvXnGk/9QBXX5DI6kgi6amn9IagFtPkfq1 cn3vtQJ1bkFIX/jrhhY0kp3Ig0lPt3zxy9Ri47QEWe2sZeogw/j0Y3fSpnPKDy2NZ+Qh xRMve8NZRHZHAsl0aVIpTjxCin+mszUvgj/V1usOFbS5jSZKFP6iePZ7cYXAKKZGxWXw vGNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ql1melcR; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t3si4862585edw.568.2020.10.12.12.17.25; Mon, 12 Oct 2020 12:17:48 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ql1melcR; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730999AbgJLTPQ (ORCPT + 99 others); Mon, 12 Oct 2020 15:15:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729890AbgJLTPQ (ORCPT ); Mon, 12 Oct 2020 15:15:16 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 025EDC0613D0; Mon, 12 Oct 2020 12:15:16 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id c21so1531115ljj.0; Mon, 12 Oct 2020 12:15:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=HoEgSi7W4gHD9lScysoMmzA283msUCELsQqu811nuNc=; b=Ql1melcRhvWByESFg5O9z6kB9ZaejNEcoZdrPtWcHm5Eb+e5dEy98OHoHK4KMI2qvs BQbhmbBhTukGkR6Q48H5ZM27KZKnMeP2hVXC0TSoA+qQvkm9o8wE/+LF1rVnj/ar4xAF Qror7GlA7bJ2bzmz2QWfUBs8yBTTNxkCL0HpPmUzKqOhaDoa6qRTCjs8xGcriqroLZAR V76TOINy7/Wulmj/k/4QrmvLbA9NzyHoH/vyZUqRMQ8pMYwL1LPGHQswhd0jwVv+3eSy bVo9G1b4xp9hb1TemZo1b/eBszcC0Kc+o3gaCGKztpcU+AG/e+dFRg+PlwYmkACn1S5I Tc/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=HoEgSi7W4gHD9lScysoMmzA283msUCELsQqu811nuNc=; b=aXSorLj5P5Qttjb+8kuZec5RXrWs7tpcmpze1LHcSvgQA3vmcsKdbwv3ICpGzzMOpU 3gFGTXfi7g3Qw0+6AZ86DdpcBs5sNZWReopECJQrfpR7lFj3OI9Q945TlCGbK0IkwJ56 Dxr4XMcRJKrIVwApcTRTasT8+vhvCVf/JYTisnxLFxXqrH6SSp6HtPRy+df8Io58PnYL J2Gev2CMqubZX4r++Hu8kScE9ndXojGRqMifxDeCa1cFQrRhC+7MXQiQBI9NovGDJL9N a7TFITLXHxsrBB/26mYuLdhAA6Yd8t65h5cvSFAPqA/R3341bXvtcni2E9OXNrZZBokT r7Uw== X-Gm-Message-State: AOAM531YOwRbKrJJCPWvXnjSys2ZQNXfsPAappc5QDMBbUpWgwBDX0aO LYIpbZGG79zfV/34xqvezyI= X-Received: by 2002:a2e:a41a:: with SMTP id p26mr3102963ljn.126.1602530114236; Mon, 12 Oct 2020 12:15:14 -0700 (PDT) Received: from grain.localdomain ([5.18.102.224]) by smtp.gmail.com with ESMTPSA id q27sm1092814lfd.261.2020.10.12.12.15.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Oct 2020 12:15:13 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id 0C3381A032A; Mon, 12 Oct 2020 22:15:11 +0300 (MSK) Date: Mon, 12 Oct 2020 22:15:11 +0300 From: Cyrill Gorcunov To: Yu-cheng Yu Cc: 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 , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue , Dave Martin , Weijiang Yang , Pengfei Xu Subject: Re: [PATCH v14 1/7] x86/cet/ibt: Add Kconfig option for user-mode Indirect Branch Tracking Message-ID: <20201012191511.GC14048@grain> References: <20201012154530.28382-1-yu-cheng.yu@intel.com> <20201012154530.28382-2-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201012154530.28382-2-yu-cheng.yu@intel.com> User-Agent: Mutt/1.14.6 (2020-07-11) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 12, 2020 at 08:45:24AM -0700, Yu-cheng Yu wrote: ... > + the application support it. When this feature is enabled, > + legacy non-IBT applications continue to work, but without > + IBT protection. > + Support for this feature is only known to be present on > + processors released in 2020 or later. CET features are also > + known to increase kernel text size by 3.7 KB. It seems the last sentence is redundant - new features always bloat the kernel code and precise size may differ depending on compiler and options. Surely this can be patched on top.