From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB38D17FF for ; Tue, 27 Feb 2024 01:06:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708995972; cv=none; b=VmKjdLJPLs31SY2yVPArVdBR8Y6x3YKJtbZzm3sw5Biie14W4lHbTOV/XncxZhHs5WkzbIkIzaWg2UGUA1RV4diJcfc10e20jrqe76hKRTg/8mrlvSbKlOMHYC8qGSs7xsRYQYXGog2LFTFCK+8m9/nJtFDBKyx0K/3p1AewqP0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708995972; c=relaxed/simple; bh=gT90LYQkAogDUb21whG1pqvBFZBtCaEBGaMP2ERFauc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SijevhreQNydnPiY4krDIe3Hr9umMEzo6z0IAYZydmyHuXkuSyGtrX5V7efeCyDcB/O65lXCblHAlodR4EU6FlC0vSSmD486po68bH2DBi65N+feyDVBzen9EfWjgD52blXFUaqEoy1nOC2KGDX1AfSciXAExBGhfGvw8nU5ZtE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=U0YOOK7A; arc=none smtp.client-ip=209.85.215.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="U0YOOK7A" Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-5dbcfa0eb5dso3533618a12.3 for ; Mon, 26 Feb 2024 17:06:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1708995970; x=1709600770; darn=lists.linux.dev; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ilxSVtXwJEiNKpvZECeMq2I239dM0LKzAV2B07SGDl8=; b=U0YOOK7AzAg5/1Fmq74LC17/cmp90FCTpfX0S+CiTffTrBLGYic0lK8U968dDUNR2X LPOk5rBzlZr9Iz7wPpKpWUz9WBEzQODjv/g46zwnELNiQM6++IILG2RolGPPvaTYgTmP bgIhBDtrG8Z+PuwUesVySnWtNICTW0kJgAb9I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708995970; x=1709600770; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ilxSVtXwJEiNKpvZECeMq2I239dM0LKzAV2B07SGDl8=; b=MmAOmkrbtn5nN3f0JDzume//Hgy3T0iziRDHKThvkCS9Dr9T9PZO8/+rpFi11BUCFn b8/cZQZ/07VfTcu6mRZa3E74pxi8CJeQpKMe8ARsQ5ejUd3ok6jSVwbSZGqIhGG5/328 X8vyPHC+cNj1GNjuqj+6nY1nfkfAjddvzDAEFtwULqURZCUxhALeqn4XO1JUs7ekBNEN baogg1uklgvd89oO6exzylcoLa4LHYKktvytd3IrHNjFb3bTF1srFn1UWWXPM/Du1CiH MNNg3v2PZveFCh5IemhRVesvsoiqfsBomvh5wP2TgnH+uqL4rm/TL75BA1e/lsEIXmnA 2y7A== X-Forwarded-Encrypted: i=1; AJvYcCUXNCHf1ibWXkbbm1XEkSeInZ91Rb1wLS+F6EmlqtN+LofR/2Tt+duhhs0wSiOz8X3W9dDploeDK/gLa5z79EQlJUBBAw== X-Gm-Message-State: AOJu0YzLesE5OkL7skJUNXKfWr9wHDWx4DoQAZ8wMYqxTAO4Wkx4EdMG qal+e1yDY2KVvPXBMEApuonKVqo/SPSHQPQAbSHkOycRVtVWX9KnKx7XIAp8EQ== X-Google-Smtp-Source: AGHT+IFHlG+XM9sREVaFA5RCt/za8tb+jnlOMihqGl4vJ7sjJTIzn7SVfADXnIBmqZg/YVWZbU/69A== X-Received: by 2002:a17:90a:4c85:b0:29a:8c78:9a7 with SMTP id k5-20020a17090a4c8500b0029a8c7809a7mr5874927pjh.40.1708995970351; Mon, 26 Feb 2024 17:06:10 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id jx18-20020a170903139200b001d9773a1993sm288268plb.213.2024.02.26.17.06.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 17:06:10 -0800 (PST) Date: Mon, 26 Feb 2024 17:06:09 -0800 From: Kees Cook To: Linus Walleij Cc: Russell King , Sami Tolvanen , Nathan Chancellor , Nick Desaulniers , Ard Biesheuvel , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, llvm@lists.linux.dev Subject: Re: [PATCH 0/7] CFI for ARM32 using LLVM Message-ID: <202402261703.695B87E6@keescook> References: <20240225-arm32-cfi-v1-0-6943306f065b@linaro.org> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240225-arm32-cfi-v1-0-6943306f065b@linaro.org> On Sun, Feb 25, 2024 at 09:08:09PM +0100, Linus Walleij wrote: > This is a first patch set to support CLANG CFI (Control Flow > Integrity) on ARM32. Yay! Is CONFIG_CFI_PERMISSIVE=y expected to work with this series? I wasn't able to build with CONFIG_FTRACE=y; I got this link error: ld.lld: error: undefined symbol: ftrace_stub_graph (FWIW, I'm building against v6.8-rc2, maybe I need a different base?) But yes, I can boot and prototype mismatches are caught. Whee! :) Tested-by: Kees Cook -Kees -- Kees Cook 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 EA7EDC48BF6 for ; Tue, 27 Feb 2024 01:06:24 +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:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xXUi1mUNgq1Vqi5mUGriXLT29sScw6RbHW6bGY3OaUQ=; b=3MHjDcTgq4Apbw fAOfzBRsoZepQvWReQrSlugpm48J8MFjEHbQqGCQ7QKdSC1q86zi3/njDlotbSmYolm0Bxowb+Ld4 gldcS1HXpaFWDyhtW3jK4dczPGZ5/oCp64l1ZSUkRElur97Gy2/pzfGsG68WzsLaYBKWSDjrmTRoz 3Y7s67s+Q9n/JFxfKC8K1hgzKRcyBFglClqCxGs7xoTt7yTTvq/ySR93Ys9m79fPZlxyPi2RUZvgg s+RM2vEydaeOpe4A+SXLmyaW280Ni9HpeznN6QvpeXS+QQJXGyCS1QI7PPAsbjr1WkWATFweJMtr4 MgKyCbmLutoTU4gE0y9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1relvC-00000003D8A-3MZj; Tue, 27 Feb 2024 01:06:14 +0000 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1relv9-00000003D7T-39PK for linux-arm-kernel@lists.infradead.org; Tue, 27 Feb 2024 01:06:13 +0000 Received: by mail-pj1-x1029.google.com with SMTP id 98e67ed59e1d1-29a5f100c1aso2565928a91.0 for ; Mon, 26 Feb 2024 17:06:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1708995970; x=1709600770; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ilxSVtXwJEiNKpvZECeMq2I239dM0LKzAV2B07SGDl8=; b=FbjFZzStqg9GNbOQA4MWHmQleKKwysCMMWzmQ34wjhn0LAZo2wLvz/zLg+1SY5edNy fe/MAwyODSxxaD0TP6tvmxSjY+FgCcdByDo0OygJ3LAS5XZT6wSbgYm+xnG26OS4m0RE BrSvqllq1GJTni/upd3puvYfvyseBpIe13Pn0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708995970; x=1709600770; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ilxSVtXwJEiNKpvZECeMq2I239dM0LKzAV2B07SGDl8=; b=LjZYWc/lnB9kTuoclONGzAjv61lIhKZscyOy7pRC4XWPE7wk+XyBsGl4JyzRAacXsL toQuutZJsURWTHsxxznagFEzCBoDTrNZ2iMcBueSQDgGDu0VpjLCqOwen0QVE1hxTjM2 i74ghvG5DvWK2q/6AbmK2qiKf0rm3hvoB47FF7PXqhRg0GDDkhNdyEX5UBiQWLNDsCSm 6rCbcB60r1nc10Ot1+alktaroW+hgKJp8hvrQ7raLlO7MxA0gVORJASFyIZ0cyv+z/SR Q45LT6s0zxQbJ9+WTsklYAW2yDT0d9pJgdk1xgXljrpmmrDVKvWHC2jJ9PfxxGky76nH 5TwA== X-Forwarded-Encrypted: i=1; AJvYcCUw/BeK52MbwKJ5Z9ADG+ou/qB5fqxRhWhyoMXQy4hZ/XgFn926o/LB7mqXKIu9fR3iha4GWU+AL5S2Bows6PaXf3mrHS8MsRDCHdPqKF+fHjraIEo= X-Gm-Message-State: AOJu0YzWbi/R3tW6fs9DTxvoJomQt2rM4JCvfPfIaAbjDWW+BQBmMv+V 9d8JDh/8k3FK33qBgXDroco0srHEFiWP93zccCgR9w4P32pVUxq9QB1OE8BllQ== X-Google-Smtp-Source: AGHT+IFHlG+XM9sREVaFA5RCt/za8tb+jnlOMihqGl4vJ7sjJTIzn7SVfADXnIBmqZg/YVWZbU/69A== X-Received: by 2002:a17:90a:4c85:b0:29a:8c78:9a7 with SMTP id k5-20020a17090a4c8500b0029a8c7809a7mr5874927pjh.40.1708995970351; Mon, 26 Feb 2024 17:06:10 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id jx18-20020a170903139200b001d9773a1993sm288268plb.213.2024.02.26.17.06.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 17:06:10 -0800 (PST) Date: Mon, 26 Feb 2024 17:06:09 -0800 From: Kees Cook To: Linus Walleij Cc: Russell King , Sami Tolvanen , Nathan Chancellor , Nick Desaulniers , Ard Biesheuvel , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, llvm@lists.linux.dev Subject: Re: [PATCH 0/7] CFI for ARM32 using LLVM Message-ID: <202402261703.695B87E6@keescook> References: <20240225-arm32-cfi-v1-0-6943306f065b@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240225-arm32-cfi-v1-0-6943306f065b@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240226_170612_032090_000E3CCA X-CRM114-Status: GOOD ( 13.09 ) 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 Sun, Feb 25, 2024 at 09:08:09PM +0100, Linus Walleij wrote: > This is a first patch set to support CLANG CFI (Control Flow > Integrity) on ARM32. Yay! Is CONFIG_CFI_PERMISSIVE=y expected to work with this series? I wasn't able to build with CONFIG_FTRACE=y; I got this link error: ld.lld: error: undefined symbol: ftrace_stub_graph (FWIW, I'm building against v6.8-rc2, maybe I need a different base?) But yes, I can boot and prototype mismatches are caught. Whee! :) Tested-by: Kees Cook -Kees -- Kees Cook _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel