Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp544118ybf; Wed, 26 Feb 2020 18:12:12 -0800 (PST) X-Google-Smtp-Source: APXvYqz8q2eWlsDfW9/649tkXvcXExX/sE95nuA+QodZgw3987tHRCZiZ+6de5DSWq3AEGjyBRpm X-Received: by 2002:a05:6808:48b:: with SMTP id z11mr1570914oid.38.1582769532630; Wed, 26 Feb 2020 18:12:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582769532; cv=none; d=google.com; s=arc-20160816; b=iuADspxaiq17TBPtzgUdtdJI6ADzPqhGwFDUv0Y6WN8EewPBsEYrERh4s3Pd/N004i Ihbg5R8y+2oNJ2iuuqVsm98a+w6hRjfseO0PvckoYSoOvdB235hD25vA4C618xpZT068 CfJfJBGYkTOI7s/uevg6rUAiZbwwcTmC36nVMHEMS5NhAVDYdzKeak+S7+ubgyramDHl 4eUtLLEXtv0eiuYkaWeCt/49w3XNM4XIBb2qWBf3YoKqDmpj4asgidxNOuBaBIH8uzle PYFWnv/1/rJKdKKxz1F79DbzUsJ+viKOiwvseEXxUOLAaiX++fkm8KKgN9ptphLNKtPQ 8Msg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=he1uRJhimWdmXlH4KMyv7rZ5+f5TpR3yYZ1SBC2Q6M4=; b=Ocd4+afIOTxpiH0K1SYJScEtUXH+SkYsi5Y0xuDPlAlYkhGcsEABwdLB+sQE+bKkjH RkUa3SsSuTRt8+rytKir2hcNFP7BXCdwIaxnojegaVi4ZSq7iiidPITUQmtPZsTBGxtZ 9h+u2iCcLfKzUamozJL+sIcn9zuHDLYl2gVa+LZvprZYXzaGb6QytsjKHKMVoziqfNnQ hQtI5NLJy1P6gBnxpiWR2Cn7PIXwKVmSIPi2RXq5jB4pbXJyLytg+OX8BCHtAICloLNX Zd5VjGajIZ0qQuUdgX31tcjJ+PtcU9JcbNkw63hqWqKGfWCmZS8TKVKs0hKm9fNkwFx9 QL7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ayBMgFwV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id t185si519903oib.39.2020.02.26.18.12.01; Wed, 26 Feb 2020 18:12:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ayBMgFwV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728300AbgB0CL4 (ORCPT + 99 others); Wed, 26 Feb 2020 21:11:56 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:36100 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728178AbgB0CL4 (ORCPT ); Wed, 26 Feb 2020 21:11:56 -0500 Received: by mail-oi1-f195.google.com with SMTP id c16so1748713oic.3; Wed, 26 Feb 2020 18:11:54 -0800 (PST) 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=he1uRJhimWdmXlH4KMyv7rZ5+f5TpR3yYZ1SBC2Q6M4=; b=ayBMgFwVIB4RZSA8nsIkYYFeLoUweLRhh+hyZe9/kfucORdETI97Ul78g9Qph+9BgM qu5gKbVjpy1/EPdroqPimYar+XVDAmoGWOnWfSArE33rqk2BF+cCY4OcIKbVq+0Bjtob 7YqFBywBuOdSgMu9muQgiFrzTobGdJVHbMuxpxbKh0c0Cnqqli/Jquqtb6kBMIcDOxAO SiO97iJEgur8kaTx3rnGaHspC7w9UHps2kEIU809vgqlclK2xf62C8yXHgxZEU5fKc7R sT+s9Azj0270BniGkp8FXfaJrXGu6msYhhJIqYdY0fWF50HHlaFeBymqkSVyNYvx1CVh SZ7w== 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=he1uRJhimWdmXlH4KMyv7rZ5+f5TpR3yYZ1SBC2Q6M4=; b=aNggrHctv4FhbdlsuzzhQZBUMZ4KYbsFKljkG9Pw5o1LWZFNG/8RfkAwu0b0H9t9SH 8ipJ5n+3DDB++UvpcN2/EiVM+AnNNXJOWrRP+JpCBwv4LcZ9zEJmVVnj8Hz1EgrVworN fHD4yqZh/UrJflO4PF23gRRMtEFfUvvn8YvtkKx4mYJWAuh2wwPztTUONcg/XSEnb7wm pKQ4CZfn3yguoGmoLmRO1bBo3b5WCODolZ4qJPx7L2nUhPWtkOxT5T95PGfXbEKlYCwl sRnVCKtqbjeEENOGdHBv1m3RvY/yAVWc9fsSGAUSWpdT2UaJtrakGJAB5Wxl+nwzsmgR F5WA== X-Gm-Message-State: APjAAAXi1hvHHoYdD5YhEZC7bAX1sslk6WWt0mjKxkEnzi0Nr3g/Nre5 mTHi3mdeFj9GInZ6Gi8dsse4Hmd1FIFxtoJCouk= X-Received: by 2002:aca:43c1:: with SMTP id q184mr1584492oia.116.1582769513861; Wed, 26 Feb 2020 18:11:53 -0800 (PST) MIME-Version: 1.0 References: <20200205181935.3712-1-yu-cheng.yu@intel.com> <20200205181935.3712-6-yu-cheng.yu@intel.com> <71791bbf-7ee3-fa70-b569-ae643151646e@intel.com> In-Reply-To: <71791bbf-7ee3-fa70-b569-ae643151646e@intel.com> From: "H.J. Lu" Date: Wed, 26 Feb 2020 18:11:17 -0800 Message-ID: Subject: Re: [RFC PATCH v9 05/27] x86/cet/shstk: Add Kconfig option for user-mode Shadow Stack protection To: Dave Hansen Cc: Yu-cheng Yu , "the arch/x86 maintainers" , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , LKML , linux-doc@vger.kernel.org, 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 , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue , Dave Martin , x86-patch-review@intel.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 26, 2020 at 5:16 PM Dave Hansen wrote: > > On 2/26/20 5:02 PM, H.J. Lu wrote: > >> That way everybody with old toolchains can still build the kernel (and > >> run/test code with your config option on, btw...). > > CET requires a complete new OS image from kernel, toolchain, run-time. > > CET enabled kernel without the rest of updated OS won't give you CET > > at all. > > If you require a new toolchain, nobody even builds your fancy feature. > Probably including 0day and all of the lazy maintainers with crufty old > distros. GCC 8 or above is needed since vDSO must be compiled with --fcf-protection=branch. > The point isn't to actually run CET at all. The point is to get as many > people as possible testing as much of it as possible. Testing includes > compile testing, static analysis and bloat watching. It also includes > functional and performance testing when you've got the feature compiled > in but unavailable at runtime. Did this hurt anything even when I'm not > using it? > I will leave the CET toolchain issue to Yu-cheng. -- H.J.