Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2683098iob; Mon, 16 May 2022 04:02:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzraDfc4kncZ9Gf+/AY3re5ftalF3cfXK/mqltvp3YsemGFtE+br8QSHLrfuc1kgEkAgYRs X-Received: by 2002:a17:906:3513:b0:6f3:a080:9f46 with SMTP id r19-20020a170906351300b006f3a0809f46mr14689928eja.466.1652698979778; Mon, 16 May 2022 04:02:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652698979; cv=none; d=google.com; s=arc-20160816; b=BuAYZltuMtKdvoAJsbnx3r5JAs9nBFr/ZV/TvUkJf5P98AcujtcqiS8aGv4+2NgTJ5 gKC3ng1UtYLN5DvuT7XOjRhHDy98Yw/3bFcrUr3ymoD7dUkeWu0oOkxbr/9AiIEdhusj lL2xj0s6mZrq7uFAmAZ3fFm9qF1l3ZauimFWetZKl3T+KfaUjcz83iVBNNGkJYXRVDd+ 3oNO+VCsR2kYfZjstazP+PMRCDO4HNlfBa2MxcxDxOiQiNrPlRYnazEGMqi4LcJt+xIt O83bSm3fMGJ3kDU3tZ3TJcOlz8spl1ripIuV3r2bxUAH8wR5lQ4rCD/C0+n4XBB2nfXx 5s+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gDVhI2zku2qZKvaq49DPvnyS72Uf7FU9KhCkFrjajU8=; b=z8RTJm5mJOqPAeGq9saAWVt7s2PCp/G5DKubSNI+XsgYUzQiyWqxwlNiKKTldgPQeD T0P3ikKqGPr2xKomjAAsw2UR4Sea55qyf/zDeCOIPKJ1mY2TgHNPS3rDnPDhC9/g11mv PyD9JSVznhScOZ/XbbjqHlx0bG05u+7kKEr3FN+Rucfswxyu69TCNzKhri9Qf2DNTtvv DwiHex2knA3r2nLBhQ5YC2LLjSphRg2eAG8/rL3NtOVoUuVrbWPsJr3DNtYkygiPll70 aypKR85nv1NrvsZKCVBbKN2HzDZTFoG623222vLmW1XQoQh2s281HTrTpElp6askR9ti fs5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=S1011jny; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bu18-20020a170906a15200b006f863e61b2esi9169315ejb.563.2022.05.16.04.02.31; Mon, 16 May 2022 04:02:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=S1011jny; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235441AbiENVyG (ORCPT + 99 others); Sat, 14 May 2022 17:54:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235450AbiENVyE (ORCPT ); Sat, 14 May 2022 17:54:04 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09E832C133 for ; Sat, 14 May 2022 14:54:03 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id p12so10793942pfn.0 for ; Sat, 14 May 2022 14:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=gDVhI2zku2qZKvaq49DPvnyS72Uf7FU9KhCkFrjajU8=; b=S1011jnyYAkqBEEDMxT9syvIhh2zSvV8Zkh+bBVbAiJUkWvxnx5G4QQmkCufpwGOcQ /VZM22i7sKGtdqrpwsp9Ytbo3kro9y+f2Y0MIR5yMMRIu0uPZUtRoPywyBZYtRbMJDcu uQQpImYc+cjK3PovHb0YXltkeyKprRSzXdKAk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=gDVhI2zku2qZKvaq49DPvnyS72Uf7FU9KhCkFrjajU8=; b=Tsn1FNIQ8NGIQeSQ2iHPfvPCwNYsWbyEpqrS6LvfT3MlrHpA2hd2hoTJh+7z4bk5ea 6XhAlGIPd7KXUNIpsMapfx23Lqves2xheU07iGWpIm9f6xVT2raTUx/w1isaHHnjlgfd wEuw0KicZ6nSKTOhuCwOevWIXp1N2DY8tXJ1R5lPN2VdTjAhn2jzXiIPnirHY2Zxad9K i/fqyFoSwKAfUkso8VBqX4r7x6ZEfugEFUvGj6a272mVkStBvYUQle0W4goc1ynK8gA2 BnEI0upoScNLxtm6eia71mg8n+yHJteAtuadzO+XnqlZESyGoPLkAKAMAVM+RnOi7JtM ew7A== X-Gm-Message-State: AOAM533nSgeTcNaLI2d0RDA9kSFfVInv7SLSBmxIhNS0IYBDsRoLJhoc SAmjgewH+gPpR5W9/Avf5Opgbg== X-Received: by 2002:a63:f046:0:b0:3c6:a37b:1613 with SMTP id s6-20020a63f046000000b003c6a37b1613mr9503013pgj.168.1652565242585; Sat, 14 May 2022 14:54:02 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id b7-20020a170903228700b0015e8d4eb1f8sm4186116plh.66.2022.05.14.14.54.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 May 2022 14:54:02 -0700 (PDT) Date: Sat, 14 May 2022 14:54:01 -0700 From: Kees Cook To: Sami Tolvanen Cc: linux-kernel@vger.kernel.org, Josh Poimboeuf , Peter Zijlstra , x86@kernel.org, Catalin Marinas , Will Deacon , Mark Rutland , Nathan Chancellor , Nick Desaulniers , Joao Moreira , Sedat Dilek , Steven Rostedt , linux-hardening@vger.kernel.org, linux-arm-kernel@lists.infradead.org, llvm@lists.linux.dev Subject: Re: [RFC PATCH v2 11/21] arm64: Drop unneeded __nocfi attributes Message-ID: <202205141453.44171359E3@keescook> References: <20220513202159.1550547-1-samitolvanen@google.com> <20220513202159.1550547-12-samitolvanen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220513202159.1550547-12-samitolvanen@google.com> X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 13, 2022 at 01:21:49PM -0700, Sami Tolvanen wrote: > With -fsanitize=kcfi, CONFIG_CFI_CLANG no longer has issues > with address space confusion in functions that switch to linear > mapping. Now that the indirectly called assembly functions have > type annotations, drop the __nocfi attributes. > > Suggested-by: Mark Rutland > Signed-off-by: Sami Tolvanen It looks like there are still other cases that continue to require __nocfi, yes? It looks like after this series, it's still BPF? Reviewed-by: Kees Cook -- Kees Cook