Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1507954pxk; Fri, 18 Sep 2020 14:39:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgjzOjpGudiPjrM0i0LPj307fT8Py0/gxZUmbDXXyTbQoCHUc0Qu8TMbChXmtXxcv0oZYH X-Received: by 2002:a17:907:72c5:: with SMTP id du5mr39580084ejc.469.1600465166036; Fri, 18 Sep 2020 14:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600465166; cv=none; d=google.com; s=arc-20160816; b=Ym+gp1xKdbP2xhuzBp1Lj63BLsbFvGqydaNqRBNeRDjbEWemt2iozXLpRxh/6wu/qF ulObM/Er+Vpuelhl+xNZcMA9wvIxFVq43Rwb97P6YcbEYqjqOvhYojaB6S3Gc5yxP+eQ 4+bF/Pgt1qUkJFB0jvIrgZCiQuXx/1RWHrVwGaTsimK3FZf+RvTMcdiFRTNKV6BkIV2f DLBqTx/jkPpYQMjZKurDHb0Wo17gCWkTYSnlYx0E33d/yIKRjXSd6cbIvZiC7I2tw7RR LwLdzbjLHNHVtZ1znT/WVDp/eYRRmfRF5D60OUykC/ASEyE75Lr006wQDhTNSVFF0+B/ 8P5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=DYAfKOEgqTvyvH0yDy3llMH0PY9ahaiDfu83a2kBOFs=; b=Scp3D0O0DSNHwfkY/EPN/5GZdL7st4yVKmXKVHT1DfLFeQPZFvAQhjIWZMxnSfFvEl Yy1RPNVyx10F6KW31cOvBxsBFUCKPARS8Tp8TK+jR8cW9QDr4kyg1MPXmEliAGCXS811 xsbJKHIyyaw/MWh38sr3W7qwwlFaYZL9UTN15R1WhQjFzFd/dDOlkEfx9ZgISb0IVO+v BWlCkP/wwgPFyHiZR2PT6Wf5HAvhT7sP4wfReB5IWkUkc9Tfz/9wREPStV0/iA9Oz2ki 5wCtG0ftdvzptnQMtM9dxULaSN1+98Wi99UhK847vFDndlVEEbdv8dLHTk8XA+pWDjBz Y4RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KL1m+3il; 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 a6si3500780edq.278.2020.09.18.14.39.02; Fri, 18 Sep 2020 14:39:26 -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=KL1m+3il; 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 S1726314AbgIRVgs (ORCPT + 99 others); Fri, 18 Sep 2020 17:36:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726192AbgIRVgs (ORCPT ); Fri, 18 Sep 2020 17:36:48 -0400 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7170EC0613CE; Fri, 18 Sep 2020 14:36:48 -0700 (PDT) Received: by mail-io1-xd42.google.com with SMTP id m17so8624759ioo.1; Fri, 18 Sep 2020 14:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DYAfKOEgqTvyvH0yDy3llMH0PY9ahaiDfu83a2kBOFs=; b=KL1m+3ilCVTJWW4GEz6PYiYht8QSLyBWsxXqbceneOydilxk6IrertQdBtA2CBI86L WSMD/cf/ZhKtIvBJpcrokAe/Xt0vEpWOO3fm1z8KNdFEXXrIVcYVnnaD2ln73UBCeWOl yu3pZDws9ashJZGh/QIj4vuWx2TBWwtFoU6FvoT+c++UO2XHEoINN9rEME+AnVxslmtF VzoxMB+Hufev73B1IRmeKm+JCi9JBWLSaYKxnZS607wEaGrkHD/t3oSh1keAEK7ViOQr EvFRyZb45rQHwrjluEGg9JANUw6IVf1geB1isIB8hEYC1doRYCexQtAm4WS6/WB3w4Hj Purg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DYAfKOEgqTvyvH0yDy3llMH0PY9ahaiDfu83a2kBOFs=; b=t1gMahsQwaCk6uEUfYPCMmP3svitewbWJghpHSh8Ck/cTox71y6PvQfzltPCCyiSga zpq9cMvndPf4FezOR/3uSBtO/p9py3nIFQl2dYnd4cPXVWoXcLaIDvAQB3D5pjm4vRnf 58Aspj15iATUNn0KW625Py1tykN6ZQRAtHS+O/EFagHeVxceI7jbO1WN/tYlkhCZsCQX N5/h9ge0Mz5XGvEGibpuXaFR7AcVW+C7exXNstVvjWMR4WtSlcR0BVmLL/pjKFmEKNHx 778YXzDr8YnjRbaDfO41QeI5zpUOAlHO6yzpnPigcEjf95e+QrOHncriDYBrczBcRa0Y Tl5w== X-Gm-Message-State: AOAM530YCEWXgXJWCEip0xJ4v0lotw180DiMNPxs8gQ9jkCljs4u7ugW dcEBWcgjbfHa4psXqzP2fKa1IUod8Hr1VEV6dIg= X-Received: by 2002:a05:6602:6c9:: with SMTP id n9mr28333723iox.91.1600465007846; Fri, 18 Sep 2020 14:36:47 -0700 (PDT) MIME-Version: 1.0 References: <20200918192312.25978-1-yu-cheng.yu@intel.com> <20200918192312.25978-2-yu-cheng.yu@intel.com> <20200918205933.GB4304@duo.ucw.cz> <20200918212403.GE4304@duo.ucw.cz> In-Reply-To: <20200918212403.GE4304@duo.ucw.cz> From: "H.J. Lu" Date: Fri, 18 Sep 2020 14:36:11 -0700 Message-ID: Subject: Re: [PATCH v12 1/8] x86/cet/ibt: Add Kconfig option for user-mode Indirect Branch Tracking To: Pavel Machek Cc: Randy Dunlap , Yu-cheng Yu , "the arch/x86 maintainers" , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , LKML , "open list:DOCUMENTATION" , Linux-MM , linux-arch , Linux API , Arnd Bergmann , Andy Lutomirski , Balbir Singh , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Peter Zijlstra , "Ravi V. Shankar" , Vedvyas Shanbhogue , Dave Martin , Weijiang Yang Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 18, 2020 at 2:24 PM Pavel Machek wrote: > > Hi! > > > > > > + help > > > > > + Indirect Branch Tracking (IBT) provides protection against > > > > > + CALL-/JMP-oriented programming attacks. It is active when > > > > > + the kernel has this feature enabled, and the processor and > > > > > + the application support it. When this feature is enabled, > > > > > + legacy non-IBT applications continue to work, but without > > > > > + IBT protection. > > > > > + > > > > > + If unsure, say y > > > > > > > > If unsure, say y. > > > > > > Actually, it would be "If unsure, say Y.", to be consistent with the > > > rest of the Kconfig. > > > > > > But I wonder if Yes by default is good idea. Only very new CPUs will > > > support this, right? Are they even available at the market? Should the > > > help text say "if your CPU is Whatever Lake or newer, ...." :-) ? > > > > > > > CET enabled kernel runs on all x86-64 processors. All my machines > > are running the same CET enabled kernel binary. > > I believe that. > > But enabling CET in kernel is useless on Core 2 Duo machine, right? > This is very important for CET kernel to run on Core 2 Duo machine. Otherwise, a distro needs to provide 2 kernel binaries, one for CET CPU and one for non-CET CPU. -- H.J.