From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.3 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C70D9C3405E for ; Wed, 19 Feb 2020 17:25:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A098F20801 for ; Wed, 19 Feb 2020 17:25:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="wCVKJi1w" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726647AbgBSRZ5 (ORCPT ); Wed, 19 Feb 2020 12:25:57 -0500 Received: from mail-ua1-f68.google.com ([209.85.222.68]:34576 "EHLO mail-ua1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726514AbgBSRZ4 (ORCPT ); Wed, 19 Feb 2020 12:25:56 -0500 Received: by mail-ua1-f68.google.com with SMTP id 1so507299uao.1 for ; Wed, 19 Feb 2020 09:25:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lOv0TJC8hMcQtpE5VWA57B/HblMF/rVC1OozLuYaMQ4=; b=wCVKJi1wPos2aoe3r35P78Z+FSG1LznO9dOxVeXE0xdKHBduJWQSiBquqEYSJJEekN yY2L0IZbsj9dlV7LpX0lkR6+uGJXfjz4aR31Qye5jkCHwWzR2UJ7t5Iu7fNK51fnvIq6 a46RzXx5I6pPrFY8wdnCPQWlVZaXc4VncX69Ar93mXAxIeneFKCcgvUgjkB+8UmaapxX C5AxmUjVUKWLDtDoJV5sAMlPxU7Rn2Y66c9nq9icSa1tDUfbTJ8Gnqr5l2RIp6O5lbOG 1Jdh0a/rKTL7Pv9XiYDRJm7vPCpWne6JU2Zikx7hlaxaGKeNFsDElZMIzoxnGSRJKOMu g/PQ== 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=lOv0TJC8hMcQtpE5VWA57B/HblMF/rVC1OozLuYaMQ4=; b=hPO7W2cFceWuzmhmT0JCTFCZjLuPxCjdME04Q4U44mYIT8BHBhJxEHe6KqoDdQ5uI1 k1FzvsKT2uSuoYc/+q/CIf5KTc3eNnvL+z59XbUdomk9qHuKp/8acIuhod1ZKalfXaP8 8M0iuaAw5vTqBzU01nwHxKrEdF7kjEHdvaVVRMz7B5fNh4PHXNariuwAK34LcuyL8Qbc u0Z1dN5ja1U4jlHAaEIASzUflaYvKiGB5arrR+30yNCAvV9bcISO5pCJZwfwJ3J0YCvB Q9PDcD+RHBQoL6jhOESDa3Q3xRalLuaChfZ8PlViP53cgejHQ2C1m6pYke+jml+bnyGg JV7A== X-Gm-Message-State: APjAAAUMYpHpimSwmxX5nqINfP+kG/xhTdsRf74Ph1/g0DaaBBWZmIGF Z/q1z2u254EirVa2q7S3se3mhhsQ1CrDNmo+ace3ug== X-Google-Smtp-Source: APXvYqwSo6GUilJ/FzOryvH4ZQvh+dOFRIWXmaH6WmAGeZIJvKZZbDWH/ybZ+0IbluDu6CE89M7poWhpL8t0ZLuEzsk= X-Received: by 2002:ab0:14a2:: with SMTP id d31mr13781595uae.106.1582133154592; Wed, 19 Feb 2020 09:25:54 -0800 (PST) MIME-Version: 1.0 References: <20191018161033.261971-1-samitolvanen@google.com> <20200219000817.195049-1-samitolvanen@google.com> <20200219000817.195049-2-samitolvanen@google.com> <60ec3a49-7b71-df31-f231-b48ff135b718@infradead.org> In-Reply-To: <60ec3a49-7b71-df31-f231-b48ff135b718@infradead.org> From: Sami Tolvanen Date: Wed, 19 Feb 2020 09:25:43 -0800 Message-ID: Subject: Re: [PATCH v8 01/12] add support for Clang's Shadow Call Stack (SCS) To: Randy Dunlap Cc: Will Deacon , Catalin Marinas , Steven Rostedt , Masami Hiramatsu , Ard Biesheuvel , Mark Rutland , James Morse , Dave Martin , Kees Cook , Laura Abbott , Marc Zyngier , Nick Desaulniers , Jann Horn , Miguel Ojeda , Masahiro Yamada , clang-built-linux , Kernel Hardening , linux-arm-kernel , LKML 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 Tue, Feb 18, 2020 at 8:20 PM Randy Dunlap wrote: > > Hi Sami, > > a couple of minor tweaks: > > On 2/18/20 4:08 PM, Sami Tolvanen wrote: > > diff --git a/arch/Kconfig b/arch/Kconfig > > index 98de654b79b3..66b34fd0df54 100644 > > --- a/arch/Kconfig > > +++ b/arch/Kconfig > > @@ -526,6 +526,40 @@ config STACKPROTECTOR_STRONG > > about 20% of all kernel functions, which increases the kernel code > > size by about 2%. > > > > +config ARCH_SUPPORTS_SHADOW_CALL_STACK > > + bool > > + help > > + An architecture should select this if it supports Clang's Shadow > > + Call Stack, has asm/scs.h, and implements runtime support for shadow > > + stack switching. > > + > > +config SHADOW_CALL_STACK > > + bool "Clang Shadow Call Stack" > > + depends on ARCH_SUPPORTS_SHADOW_CALL_STACK > > + help > > + This option enables Clang's Shadow Call Stack, which uses a > > + shadow stack to protect function return addresses from being > > + overwritten by an attacker. More information can be found from > > found in > > > + Clang's documentation: > > + > > + https://clang.llvm.org/docs/ShadowCallStack.html > > + > > + Note that security guarantees in the kernel differ from the ones > > + documented for user space. The kernel must store addresses of shadow > > + stacks used by other tasks and interrupt handlers in memory, which > > + means an attacker capable reading and writing arbitrary memory may > > capable of Thanks, Randy! I'll fix these in the next version. Sami From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5BD3C34047 for ; Wed, 19 Feb 2020 17:26:12 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 82D6620801 for ; Wed, 19 Feb 2020 17:26:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="IRG1VtDB"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="wCVKJi1w" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 82D6620801 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=36CvNZ4wZqNl5PHhR2WcfGpfaISoTExoKNgK0gwQcxo=; b=IRG1VtDBmzvXm6 FE4n+eh0f1h/qmH+EcTq/GLufVRjAkllVxrUviU2Y4etRPXE2decuBrONuNePwWvD0vurgYDwVVNh oDJRhz+4uoIt4bT1RnhjZoeauLq/zSr5Wndj4nJCDh50hZX7OnpA0Sb5QCi87ZA6E2JR+ZSI64YJf r81Mm+i7KTKaTEm/0BurpDoXqJLwRz/nhwyT9EiMVnzOEO+ojVkneNt1SmmygPuOppYEbp3P8vNp7 SIzS/1QF/XxVokpCJ2K2WnVOhXiFuHABAZnVopTf8I0RYX9pf4e76QSyr/X5Mc/gR6otFkZZJuDeX BRk+pBtkxGpPPRaF6vNA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j4T6n-0008F1-5H; Wed, 19 Feb 2020 17:26:01 +0000 Received: from mail-ua1-x942.google.com ([2607:f8b0:4864:20::942]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j4T6j-0008E6-Bo for linux-arm-kernel@lists.infradead.org; Wed, 19 Feb 2020 17:25:58 +0000 Received: by mail-ua1-x942.google.com with SMTP id g13so498549uab.7 for ; Wed, 19 Feb 2020 09:25:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lOv0TJC8hMcQtpE5VWA57B/HblMF/rVC1OozLuYaMQ4=; b=wCVKJi1wPos2aoe3r35P78Z+FSG1LznO9dOxVeXE0xdKHBduJWQSiBquqEYSJJEekN yY2L0IZbsj9dlV7LpX0lkR6+uGJXfjz4aR31Qye5jkCHwWzR2UJ7t5Iu7fNK51fnvIq6 a46RzXx5I6pPrFY8wdnCPQWlVZaXc4VncX69Ar93mXAxIeneFKCcgvUgjkB+8UmaapxX C5AxmUjVUKWLDtDoJV5sAMlPxU7Rn2Y66c9nq9icSa1tDUfbTJ8Gnqr5l2RIp6O5lbOG 1Jdh0a/rKTL7Pv9XiYDRJm7vPCpWne6JU2Zikx7hlaxaGKeNFsDElZMIzoxnGSRJKOMu g/PQ== 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=lOv0TJC8hMcQtpE5VWA57B/HblMF/rVC1OozLuYaMQ4=; b=OvHBihK/3hJFm2VArFbGDwaNNKo3NE5QJEmuyEJ9ulfzR1eI7kRYPx6hFZYdn5WlvK eSGVgFv0TikJqmOFs3FNcMdJ6g5lmYXVRhm1gss6JXT53fyO2pBz90FeKRn/OFScW59w rB+BfpKua3WmDolX0tTV4niIg6iCGLxYQRtRpogECNOj+JBASYmmaULixIqUk5DSDs2R 22mFUN4mazZqwSa/2Mxjt0b4Y1HPq09tuLBMW9jbCaU4gwBmhhEx9FI/R5Jvb+Y7mRCR bk0T4H8K16nCqQGvtNmtnXsiCnjqyf/oseqhK+mNxbgYDz+C724SjgXQxwJeONz9TJjo 2WgA== X-Gm-Message-State: APjAAAVfpmuuwyqgDWbRc6n7S5B1XeG4kMdXcv31i7P6DPo18oHisbBT /v1Pjk3akHzDXC06sQAXlicjCHESKudBcJWhJeWGDg== X-Google-Smtp-Source: APXvYqwSo6GUilJ/FzOryvH4ZQvh+dOFRIWXmaH6WmAGeZIJvKZZbDWH/ybZ+0IbluDu6CE89M7poWhpL8t0ZLuEzsk= X-Received: by 2002:ab0:14a2:: with SMTP id d31mr13781595uae.106.1582133154592; Wed, 19 Feb 2020 09:25:54 -0800 (PST) MIME-Version: 1.0 References: <20191018161033.261971-1-samitolvanen@google.com> <20200219000817.195049-1-samitolvanen@google.com> <20200219000817.195049-2-samitolvanen@google.com> <60ec3a49-7b71-df31-f231-b48ff135b718@infradead.org> In-Reply-To: <60ec3a49-7b71-df31-f231-b48ff135b718@infradead.org> From: Sami Tolvanen Date: Wed, 19 Feb 2020 09:25:43 -0800 Message-ID: Subject: Re: [PATCH v8 01/12] add support for Clang's Shadow Call Stack (SCS) To: Randy Dunlap X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200219_092557_435943_C1FCF9E1 X-CRM114-Status: GOOD ( 17.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Kees Cook , Ard Biesheuvel , Masahiro Yamada , Catalin Marinas , Jann Horn , Nick Desaulniers , LKML , Steven Rostedt , Miguel Ojeda , clang-built-linux , James Morse , Masami Hiramatsu , Marc Zyngier , Kernel Hardening , Laura Abbott , Will Deacon , Dave Martin , linux-arm-kernel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Feb 18, 2020 at 8:20 PM Randy Dunlap wrote: > > Hi Sami, > > a couple of minor tweaks: > > On 2/18/20 4:08 PM, Sami Tolvanen wrote: > > diff --git a/arch/Kconfig b/arch/Kconfig > > index 98de654b79b3..66b34fd0df54 100644 > > --- a/arch/Kconfig > > +++ b/arch/Kconfig > > @@ -526,6 +526,40 @@ config STACKPROTECTOR_STRONG > > about 20% of all kernel functions, which increases the kernel code > > size by about 2%. > > > > +config ARCH_SUPPORTS_SHADOW_CALL_STACK > > + bool > > + help > > + An architecture should select this if it supports Clang's Shadow > > + Call Stack, has asm/scs.h, and implements runtime support for shadow > > + stack switching. > > + > > +config SHADOW_CALL_STACK > > + bool "Clang Shadow Call Stack" > > + depends on ARCH_SUPPORTS_SHADOW_CALL_STACK > > + help > > + This option enables Clang's Shadow Call Stack, which uses a > > + shadow stack to protect function return addresses from being > > + overwritten by an attacker. More information can be found from > > found in > > > + Clang's documentation: > > + > > + https://clang.llvm.org/docs/ShadowCallStack.html > > + > > + Note that security guarantees in the kernel differ from the ones > > + documented for user space. The kernel must store addresses of shadow > > + stacks used by other tasks and interrupt handlers in memory, which > > + means an attacker capable reading and writing arbitrary memory may > > capable of Thanks, Randy! I'll fix these in the next version. Sami _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.3 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C70CC34047 for ; Wed, 19 Feb 2020 17:26:14 +0000 (UTC) Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.kernel.org (Postfix) with SMTP id D2FC720801 for ; Wed, 19 Feb 2020 17:26:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="wCVKJi1w" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D2FC720801 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernel-hardening-return-17846-kernel-hardening=archiver.kernel.org@lists.openwall.com Received: (qmail 11633 invoked by uid 550); 19 Feb 2020 17:26:07 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Received: (qmail 11613 invoked from network); 19 Feb 2020 17:26:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lOv0TJC8hMcQtpE5VWA57B/HblMF/rVC1OozLuYaMQ4=; b=wCVKJi1wPos2aoe3r35P78Z+FSG1LznO9dOxVeXE0xdKHBduJWQSiBquqEYSJJEekN yY2L0IZbsj9dlV7LpX0lkR6+uGJXfjz4aR31Qye5jkCHwWzR2UJ7t5Iu7fNK51fnvIq6 a46RzXx5I6pPrFY8wdnCPQWlVZaXc4VncX69Ar93mXAxIeneFKCcgvUgjkB+8UmaapxX C5AxmUjVUKWLDtDoJV5sAMlPxU7Rn2Y66c9nq9icSa1tDUfbTJ8Gnqr5l2RIp6O5lbOG 1Jdh0a/rKTL7Pv9XiYDRJm7vPCpWne6JU2Zikx7hlaxaGKeNFsDElZMIzoxnGSRJKOMu g/PQ== 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=lOv0TJC8hMcQtpE5VWA57B/HblMF/rVC1OozLuYaMQ4=; b=FbStryLIAm14Rx24cJrrO0ZhVwNnv6wUKTTYXT81KoQS96UBjvzjEqYerC3MqeGQ8S Xth9wMYaQwHSpZ/zu0oXzFoKsVR5/THUPB9pZK/NUlCag81jrHWKtlDZ7apVeyOv9RdH Ou9nKWsJpqhvmjE0BbeIZGAWGjjh/zthlixgNPTDt7NRvp7YRgxPDrb/cFqjEXh71x4K is++MAjexsFULqg2e52ezKTlxUAojueJWhWojG77DhvFfmM5tFmnJBsRhKLGLhp4eheD gf5z+96Jjvs2Fl56+yenCvCFe4ENhPr/913n2Yt5Rh520mtUg7mBnmLZZWt+jQ9xoM49 bQBg== X-Gm-Message-State: APjAAAVZtfly3e8uaKqGRVpkgWQvEerOJRVkrv/pyM8ZbYmNkz51io6B +adZeAc/Fs801FJcFv9nyD0EsssybMV5XHOK0xZZDw== X-Google-Smtp-Source: APXvYqwSo6GUilJ/FzOryvH4ZQvh+dOFRIWXmaH6WmAGeZIJvKZZbDWH/ybZ+0IbluDu6CE89M7poWhpL8t0ZLuEzsk= X-Received: by 2002:ab0:14a2:: with SMTP id d31mr13781595uae.106.1582133154592; Wed, 19 Feb 2020 09:25:54 -0800 (PST) MIME-Version: 1.0 References: <20191018161033.261971-1-samitolvanen@google.com> <20200219000817.195049-1-samitolvanen@google.com> <20200219000817.195049-2-samitolvanen@google.com> <60ec3a49-7b71-df31-f231-b48ff135b718@infradead.org> In-Reply-To: <60ec3a49-7b71-df31-f231-b48ff135b718@infradead.org> From: Sami Tolvanen Date: Wed, 19 Feb 2020 09:25:43 -0800 Message-ID: Subject: Re: [PATCH v8 01/12] add support for Clang's Shadow Call Stack (SCS) To: Randy Dunlap Cc: Will Deacon , Catalin Marinas , Steven Rostedt , Masami Hiramatsu , Ard Biesheuvel , Mark Rutland , James Morse , Dave Martin , Kees Cook , Laura Abbott , Marc Zyngier , Nick Desaulniers , Jann Horn , Miguel Ojeda , Masahiro Yamada , clang-built-linux , Kernel Hardening , linux-arm-kernel , LKML Content-Type: text/plain; charset="UTF-8" On Tue, Feb 18, 2020 at 8:20 PM Randy Dunlap wrote: > > Hi Sami, > > a couple of minor tweaks: > > On 2/18/20 4:08 PM, Sami Tolvanen wrote: > > diff --git a/arch/Kconfig b/arch/Kconfig > > index 98de654b79b3..66b34fd0df54 100644 > > --- a/arch/Kconfig > > +++ b/arch/Kconfig > > @@ -526,6 +526,40 @@ config STACKPROTECTOR_STRONG > > about 20% of all kernel functions, which increases the kernel code > > size by about 2%. > > > > +config ARCH_SUPPORTS_SHADOW_CALL_STACK > > + bool > > + help > > + An architecture should select this if it supports Clang's Shadow > > + Call Stack, has asm/scs.h, and implements runtime support for shadow > > + stack switching. > > + > > +config SHADOW_CALL_STACK > > + bool "Clang Shadow Call Stack" > > + depends on ARCH_SUPPORTS_SHADOW_CALL_STACK > > + help > > + This option enables Clang's Shadow Call Stack, which uses a > > + shadow stack to protect function return addresses from being > > + overwritten by an attacker. More information can be found from > > found in > > > + Clang's documentation: > > + > > + https://clang.llvm.org/docs/ShadowCallStack.html > > + > > + Note that security guarantees in the kernel differ from the ones > > + documented for user space. The kernel must store addresses of shadow > > + stacks used by other tasks and interrupt handlers in memory, which > > + means an attacker capable reading and writing arbitrary memory may > > capable of Thanks, Randy! I'll fix these in the next version. Sami