Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp629414ybf; Wed, 26 Feb 2020 19:58:17 -0800 (PST) X-Google-Smtp-Source: APXvYqz3pGH05hVp6t4uEKLAvbzjy5ID/t1irMFjEBC7FN6yLuE/3OvmpgFtCghAjuKjyhg587lj X-Received: by 2002:a9d:7ccd:: with SMTP id r13mr1736769otn.56.1582775897853; Wed, 26 Feb 2020 19:58:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582775897; cv=none; d=google.com; s=arc-20160816; b=ExM7smyJeNT++dgNByOij47NEr022MTFJdDzAG7oYE8MY19bkRp20jPpoK6sksb4z6 iO1WDEciy7BexHAZBvdlFg9bFnDDkmgKav4hN4GSAO+GmG+smzF/seZbxCegnJRALf70 koh+9LYWGudTyaOkDsTR/GjsZQ5uaxl3cHEFjmB2SXqrDejb0crqdv+nnOYN0jjbMSgU WTNdKw8oWAT0DYjfs06kYPjGsrmami1g9bX4aYYfOQACwnYugmRmOA11MpnhI+plnHme kt5Vy0TcftJYeH4EtPgiMqhDgVNNrHX8sIEaPv/ICiSlkQ8VCDw/sX3RJp4mN2givnXE BmNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=CnaaQj5OkZlinyuOBz/+nnOP++fx4EwIlpltdiovgCE=; b=tIZhqGCDswkzRYm5izS2aO/s78eKHDJBuyRAtCHZbu0LAZcMCf5toe7P+62GM/DksC kcCunbGdxQcJDHJO6U1HfYLS2ZwIT5o/2cRHFjUR3h0CrezepDV0u2ZLmGKYv3TpaMpK vBKb7TMGOl3rD0Ewz2f8omCEk6JfYvjoxWM/GDkEZhSeVE0/y+XiqkCp2Zile05gvkj5 BooREtlXrQTaZQS2s70PYmkBqo2K7D47pe1FLiVDnk502RMt9gnXMgqShctJjOew5w5u R8rfccOT++Swteds0OE1hMYjfvKg1RVewioPb4vrGbdmxQF54mAZTIVNpzaAAOgIdZGg Ba/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=CvFkH5dz; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q25si963930otg.128.2020.02.26.19.58.06; Wed, 26 Feb 2020 19:58:17 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=CvFkH5dz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728358AbgB0D5G (ORCPT + 99 others); Wed, 26 Feb 2020 22:57:06 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:46374 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728284AbgB0D5G (ORCPT ); Wed, 26 Feb 2020 22:57:06 -0500 Received: by mail-pf1-f193.google.com with SMTP id o24so599142pfp.13 for ; Wed, 26 Feb 2020 19:57:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=CnaaQj5OkZlinyuOBz/+nnOP++fx4EwIlpltdiovgCE=; b=CvFkH5dzd6cq24Yi56VcybisKknibFmU/ow2ZqelBQazvt8BufBh2ODr6THyJye6BK pWi9IQSyRt+DW4H7LH3Aw5WOB0wmY2ss62VcGrpUEDa8LKWEhtep7DgNKCIbBL1AWb6E Tq57vgFbkcc608Dp5NIyKYhwGlsVs0fuPZ3UMk/nQOtDlUMasKcyMX8I/qiEzMoaNKIQ y6n/KjR0q+J0RQiLg4/94jYEXnIlUggAEkQ/dDJpkqkojBDmZJ0kwbgYurQI4Y7i8MIi 0yIhFypbvEihEA0ivMQ6+HmGvD0QQVI3e6COI7tobO8x7xKc8jppGDUrtCV8AD2tGzdl S8/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=CnaaQj5OkZlinyuOBz/+nnOP++fx4EwIlpltdiovgCE=; b=EGIGK5/EV0TvCHrgZV2s07tFsggB4z3C1R5/mMKdYEf9jRvXu878z/D8C46x//32TS Eggq17h87EnyRPELN1HxeaO6JhdB2AMc57qxO8f+wL6ReHEhUISR6D5UFjllONXMuXUG TWMY0PaaiDp96AbPWPwUitF3pvwjZ0aHBiqOec+mJrhFPGNsepOrrFr3wBtExebwSjIy uP5g6IdXLl3ZgexaGBv92AwDjgyFDP5QcYM+x2TXm6d3rpIhl2sXzHMbzAkhIxTMNxim RthMoK9q3a+vWQDqZoxvvIP8HKI52b8q+z3r+i73MDDMYQlNuTlxmZouc/MtdyOe9UxW C21w== X-Gm-Message-State: APjAAAWqGLcK/89w5SRHTE7fWSuKri30zt2lwwsmNSvrMbjY0Chw3Mcl hpZZTbB2rBcZXfI7UV5Zbqe2X5JSGK4= X-Received: by 2002:a62:17c3:: with SMTP id 186mr2085313pfx.158.1582775824816; Wed, 26 Feb 2020 19:57:04 -0800 (PST) Received: from ?IPv6:2600:1010:b069:8a27:ddd9:92ea:d62b:8a52? ([2600:1010:b069:8a27:ddd9:92ea:d62b:8a52]) by smtp.gmail.com with ESMTPSA id j21sm4165728pji.13.2020.02.26.19.57.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Feb 2020 19:57:03 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Andy Lutomirski Mime-Version: 1.0 (1.0) Subject: Re: [RFC PATCH v9 05/27] x86/cet/shstk: Add Kconfig option for user-mode Shadow Stack protection Date: Wed, 26 Feb 2020 19:57:01 -0800 Message-Id: References: Cc: Dave Hansen , 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 In-Reply-To: To: "H.J. Lu" X-Mailer: iPhone Mail (17D50) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Feb 26, 2020, at 6:11 PM, H.J. Lu wrote: >=20 > =EF=BB=BFOn Wed, Feb 26, 2020 at 5:16 PM Dave Hansen wrote: >>=20 >> 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. >>=20 >> 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. >=20 > GCC 8 or above is needed since vDSO must be compiled with > --fcf-protection=3Dbranch. Fair enough. I don=E2=80=99t particularly want to carry a gross hack to add t= he ENDBRANCHes without compiler support.