Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3356475iob; Mon, 16 May 2022 20:31:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/0UHmYq5AHl4PbPAqEuZO7TNK3NUUgyaLNoUR4Wzv6myLti1YxXt9CxT0Aud2FQQHJkH9 X-Received: by 2002:a05:6402:1ca5:b0:42a:a393:ff02 with SMTP id cz5-20020a0564021ca500b0042aa393ff02mr13184874edb.76.1652758304762; Mon, 16 May 2022 20:31:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652758304; cv=none; d=google.com; s=arc-20160816; b=lp7d62hm+bL9lKNcc5mnAaCxso1DO0838sCAAqfsXiC/u2OrzEyJTc3Jz2zpHkdf7h EgZCVmPTlnRKElxKVyqqn34vDqournOypfnRUx4+eT4S7dyoouoCmnv+BjRUnHsRlJFU IE9Bnf++N07maaQdEXWd8ovfr6xhe3V4Vv5YQaFOseklqJTHeJG0MejuGYpyw99vEbTT K5la8eyFfVHkk2eLVRadHRk8Aod3f3gwkNKzoMwhHGN+2HofMuNyqLGgPqLsUOpHU0T6 VpixQ1am9TasNlWkqwSJvzpt8rw6a/Rb4r2qUDp9XmkGnrkwosxEGNdoqLKDHyrB0loa CbfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=uVOWBi2MNBuehei9huBnd/8loFbnwhqAiuOC/hCYUtE=; b=jLq3Wn9O7sSKKqWC6SL2Dbnjg1+8EIIo29xHU/w/YQcsmGOJsSMqAkzegJPEChv3DW k9vLbCnBKA6UWu16nRnbBI9k4Y8Z/KnSd+mUBZafUD18RKCEmqoQZ7xDBLBUKzfviQNj b07BbLISPgf9jjSweDn+Y51B0FXCBO1IjKLw46b3Y2VXyQwN8h9LIOv8Tp7ueEJQqIkD yOsFLPtnInoyWXtR0rOgXkc42WPKylh4tc/W8ij/wGDTW4ZoOpVk7k54X5c2ft9ds35q BdhnwU63Vt3AF6mM9nK9UyTyGANQ9QXkAw6AoEL+W5aqDe06fv7rfRxwgrn28qv0PXQb kADA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=UMpVvjAs; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr39-20020a1709073fa700b006f3d3dd8173si1400888ejc.929.2022.05.16.20.31.17; Mon, 16 May 2022 20:31:44 -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=@google.com header.s=20210112 header.b=UMpVvjAs; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241268AbiEPQdg (ORCPT + 99 others); Mon, 16 May 2022 12:33:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343767AbiEPQdT (ORCPT ); Mon, 16 May 2022 12:33:19 -0400 Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB8F13BA4D for ; Mon, 16 May 2022 09:33:04 -0700 (PDT) Received: by mail-yb1-xb2b.google.com with SMTP id d137so8814491ybc.13 for ; Mon, 16 May 2022 09:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uVOWBi2MNBuehei9huBnd/8loFbnwhqAiuOC/hCYUtE=; b=UMpVvjAskWnfR6g3ci4cMkPkNEchbPVQCDFZURqGgdGBGtyEU0+pfkHuIEsLxzzdxa B18bBKbFeo2JcX6Nz0IkEdagX64XxF2YEDcGnalbPkbzsdXHnZZGaCAZvltIUt8sXuPo zc+e8B4SuenU8MISBWZpTrjTRFvYcwbYxq6tk/fA+vLgbNtNdpbpv9n/FFbrhrGyS4/A hl891Clm6zzMg1ByvOjCgkYC1CBLqqCMd5UMKl7fYoxLVwfMTVOj3WL8d9fGHLWJxHp1 HFHt9MPjqwqb5TyctUJdvK/tYMZpC5GtaKZHEttGWXNLnXoDb1+0WTqUO3MYlQIJ76Hw 42MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uVOWBi2MNBuehei9huBnd/8loFbnwhqAiuOC/hCYUtE=; b=8KuJ6c5OMMymIDrSZSZtEERdi6CdxG5OkCdfuZABGbljy7C/UCV2Sj16GvGmCdpKit GRjs6PtRkL4PmiDDaxp+/P+8xzUQD3sp1+BGTkn7zYY4eQK7hyuuYR7L730dNBEuqYW3 /BBe0Wra1UAQ/xZQRLiaog83BD3yFN+eVXgMjrdTCXH0sNacYe6yIegExIqkcJ4UF5Tg 9nEFAy3vveDaQPsDNjDpqlwIp3wJcHQlaadzx/dfez61n9ibFGJBOfeLVxQEvrTMNrzd skrmYEPW83jWs90df4J9gMioKlqsPqrcvQChJ+xV7iYN+Wlkte6OZKx0jqaRARviUBix Ufbw== X-Gm-Message-State: AOAM532Xplv79Q4eHBgNCFPwpPca2uBju2bDt11EFQJkMNzqveJmDoxl yEV00kI4eIjbOkrpBUZxKNeOvb3in/BZl54WVJ0vUQ== X-Received: by 2002:a05:6902:90b:b0:64b:233d:8e03 with SMTP id bu11-20020a056902090b00b0064b233d8e03mr18090305ybb.428.1652718783727; Mon, 16 May 2022 09:33:03 -0700 (PDT) MIME-Version: 1.0 References: <20220513202159.1550547-1-samitolvanen@google.com> <20220513202159.1550547-15-samitolvanen@google.com> <202205141455.0A6F409@keescook> In-Reply-To: <202205141455.0A6F409@keescook> From: Sami Tolvanen Date: Mon, 16 May 2022 09:32:27 -0700 Message-ID: Subject: Re: [RFC PATCH v2 14/21] treewide: Drop __cficanonical To: Kees Cook 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 Sat, May 14, 2022 at 2:56 PM Kees Cook wrote: > > On Fri, May 13, 2022 at 01:21:52PM -0700, Sami Tolvanen wrote: > > CONFIG_CFI_CLANG doesn't use a jump table anymore and therefore, > > won't change function references to point elsewhere. Remove the > > __cficanonical attribute and all uses of it. > > > > Signed-off-by: Sami Tolvanen > > --- > > include/linux/compiler_types.h | 4 ---- > > include/linux/init.h | 4 ++-- > > include/linux/pci.h | 4 ++-- > > 3 files changed, 4 insertions(+), 8 deletions(-) > > I think this is missing removing it from include/linux/compiler-clang.h ? That was removed in the earlier patch that switched the CFI implementation. > With that done (or explained why not): I'll add a note about it to the commit message. Sami