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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id E531EC54E94 for ; Wed, 25 Jan 2023 19:56:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:References:To:From:Subject: Cc:Message-Id:Date:Mime-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SSNZR/uGD12w/fhxikZio8XxRidDMu81u7Tge6Ij60Y=; b=CmBXDyT2m2+cAA tVA6vR5t0dapsYJxAr3Uq+GAJqukD6RBV5R6AL6DnnwKd0oKCMCYE10PFRCbLiz2+i2EzOobBTMlh 190eaCiDgqEygi93ibF0Ly1FmcF8FiIEJDA6d2JYay6jPd/gRY53mi7CQ20zVCfme80izedDTce2Y +gUy+IEWHjnlRbBjZgpEgrJioK3UdweHWE8NwtcQ5TvO/FSQ37Af+DFKnReEvTvZk3PSjlwOMijdF 59t5ua8ODGywykUR5YTeKtKp7t6W499I9Tw2o+odK/Cy4cWH3N43KaEvZbcLNKWPM3KWRfUdaCkaa o6+GdZEZaRGkwJAUzTrA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKlrO-008VW6-5l; Wed, 25 Jan 2023 19:55:06 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKlrJ-008VTk-Sz for linux-arm-kernel@lists.infradead.org; Wed, 25 Jan 2023 19:55:03 +0000 Received: by mail-ej1-x62e.google.com with SMTP id qx13so50543334ejb.13 for ; Wed, 25 Jan 2023 11:54:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=zZ3GlkNEqSZl0hlg3V2peKuiP/Di3y8A8rusYKjXVvc=; b=n/m6HQ3kRWEm8D8NM4GkiRwsv2yOxwyx1bVa9zgyv925cLKlJo6qJz2VYYL9YyP9yF sXcCxkH+fB7uDZhW7/tI+d4WmiabReJ1cE3RsYv7+59Y4rqnuumg8vgRxKFnDGUtoPdX 8xrCA+ePO4BiBOdR92EfJuhQUVX0YaJrZ2hseh1nFnQadfgEz6lpI7RE66dnGnn0yHLk 94dTo5Ub2CuEBK/1+3vbuLZlCUTyv2cziTiBT3wMfdXc1wmwL/WBYrs2m39wWYjkfZEB Ck9qA5qg0caOYynWPg+YlhoyNzGmPi5TMgucZEhE4ytic4qUvKqg18J/dsZSxcVHhFc1 G87A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=zZ3GlkNEqSZl0hlg3V2peKuiP/Di3y8A8rusYKjXVvc=; b=WQVq+lwv65cd4MuqqaTWRSat7SkZZ2eDRtK4UFLu4pPVQBbRh1LgI7fchLM+NiOxD0 fJNltv6c2nmt714DT2SQqcnvI+hFOEqf68ZT3dlYaLFQZfyrgp0yNjWQCnFxwLLt6UCT wpOBkHK9IZNwxi+T0zZ+I4+tHWkLlOIiYgKkjBjVsEcol7Ey8zMY8QUN170Slppe97v6 B0grf0XSyjbJCGSu6MemTdJeZpeWBS7Folpx1r18GJ2b22EKeFiJxb/fiLWgCmZGTJTF xmhD8gW8fAi5xW/SoRJ8YAonMto0qvMGBLIvw8Vt6sm7fWqxg8bY0hbqJn/jqwF88FpI QYyw== X-Gm-Message-State: AFqh2krhzcq7hQZ91c7heNLt1tqfxMrPeoqk2a+DJDVM5suCtfuZY+os mUGOSYJZ9JciUu4yyO+7CSrZBK7vx1U7mZi1 X-Google-Smtp-Source: AMrXdXts4dFTYTG+xZJt0rd6g1ioRCjRRGdbxY5CZjP8bHzeBE7uyQ6EY5TbokopOFcy1G3Jep6VhA== X-Received: by 2002:a17:906:1e42:b0:7c1:458b:a946 with SMTP id i2-20020a1709061e4200b007c1458ba946mr31267762ejj.0.1674676498628; Wed, 25 Jan 2023 11:54:58 -0800 (PST) Received: from localhost ([2001:b07:5d37:537d:484e:dc99:ec59:4292]) by smtp.gmail.com with ESMTPSA id w15-20020a170906384f00b008490dcae01asm2747142ejc.214.2023.01.25.11.54.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Jan 2023 11:54:58 -0800 (PST) Mime-Version: 1.0 Date: Wed, 25 Jan 2023 20:54:56 +0100 Message-Id: Cc: "Miguel Ojeda" , "Catalin Marinas" , "Will Deacon" , Subject: Re: [PATCH 2/3] arm64: rust: Enable PAC support for Rust. From: "Vincenzo Palazzo" To: "Jamie Cunliffe" , , X-Mailer: aerc 0.8.2 References: <20230125163739.3798252-1-Jamie.Cunliffe@arm.com> <20230125163739.3798252-3-Jamie.Cunliffe@arm.com> In-Reply-To: <20230125163739.3798252-3-Jamie.Cunliffe@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230125_115501_978283_BF2EF654 X-CRM114-Status: GOOD ( 14.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed Jan 25, 2023 at 5:37 PM CET, Jamie Cunliffe wrote: > Enable the PAC ret and BTI options in the Rust build flags to match > the options that are used when building C. > > Signed-off-by: Jamie Cunliffe Reviewed-by: Vincenzo Palazzo > --- > arch/arm64/Makefile | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile > index d62bd221828f..b53ab6aa2dfe 100644 > --- a/arch/arm64/Makefile > +++ b/arch/arm64/Makefile > @@ -85,8 +85,10 @@ PACRET-$(CONFIG_UNWIND_PATCH_PAC_INTO_SCS) := pac-ret > > ifeq ($(CONFIG_ARM64_BTI_KERNEL),y) > branch-prot-flags-$(CONFIG_CC_HAS_BRANCH_PROT_PAC_RET_BTI) := -mbranch-protection=$(PACRET-y)+bti > +KBUILD_RUSTFLAGS += -Z branch-protection=bti,pac-ret,leaf > else > branch-prot-flags-$(CONFIG_CC_HAS_BRANCH_PROT_PAC_RET) := -mbranch-protection=$(PACRET-y) > +KBUILD_RUSTFLAGS += -Z branch-protection=pac-ret,leaf > endif > # -march=armv8.3-a enables the non-nops instructions for PAC, to avoid the > # compiler to generate them and consequently to break the single image contract > -- > 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel