Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2482554iob; Sun, 15 May 2022 21:26:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTLd7+rGzyrjUV4tfRrCnaxckc4lWc87xukfd04o7bnSQyKCcOPhXmtQXqbTJujxPHIcsC X-Received: by 2002:a05:6402:4004:b0:42a:6d43:35ec with SMTP id d4-20020a056402400400b0042a6d4335ecmr9537766eda.233.1652675203180; Sun, 15 May 2022 21:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652675203; cv=none; d=google.com; s=arc-20160816; b=VPCQrkfCUtAGR0a0y2G+zPLNL7FkEZm6VONk/i3gO8B1lfGysRuG2bnXlzFMladQ4X chPqDI609rn1FLcrlI1kIdGrgSrmDdsUkCrV2oa1dv77OzibjB8a6uVPYxC7t9GVIuMU GkcyxaTMmgjQtvbMYSFafdppL+ozBqxGnoekpqM3LM3RZu4aDer0WyomoreJDRQhM/lC aFDFG/M+rD2VpaZiKG/gJj2lwv7Y6cRg3hAl/GVQqTPqonOPQRlcYlpursUx6E3lJUzQ sGRSlteuCcOwN6WigsiWEjq5ROP/x0VaM8yi0ZljpWZfxkyceWTz3m5Oi/kJl7pPXLPS 5iDA== 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=FRz+GXXZaKOMrKydUY42JkbUz0KXbswZCunobIsh+ok=; b=M/1qIz+nplM2KgKLVQBDYqeGFh6pW1nY3/vEeL92J0Wdx7wDGjPgWzyceNk/okcGCp MOTQQp9CYe14CIua8TvFC4vz/UvsGqAgSWDNWSUc0PhkMwVB4c7oV4/tlyxZOm3OG6XH 9TCkF0ZBPNxOuKrqAT3odmjKugseY2ITT5R5QV5+MAx4MbU4cLruL01YcIcgR8Sgv7ZK 9fXVuU3vIpZ1M7zE++c5Q3nXivCJMQRxplxG9OpHJXKPAOe9mk9kk49/tY6y63NsO45Q x+3mGetPzXQyzQgTKawJvHb+IXJb66SHXalMBmCjJFWyeKy0paRFPpwAWWTaJP3zeDsW HbLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EMGxS7Cu; 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 h9-20020a170906110900b006df76385bb2si9304036eja.82.2022.05.15.21.25.43; Sun, 15 May 2022 21:26:43 -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=EMGxS7Cu; 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 S234025AbiENV4r (ORCPT + 99 others); Sat, 14 May 2022 17:56:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236039AbiENV4e (ORCPT ); Sat, 14 May 2022 17:56:34 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08DC819286 for ; Sat, 14 May 2022 14:56:03 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id b12so1730008pju.3 for ; Sat, 14 May 2022 14:56: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=FRz+GXXZaKOMrKydUY42JkbUz0KXbswZCunobIsh+ok=; b=EMGxS7CubkSoRXJvbmCOUMnABXzcITd5+nEUdRyvBWZr0Ejfu0faLMdmwYhOM8pXx4 qOvD2ibBSHZJuEbw1khfAuvievTdhMLKWyGiMShRtK8Ll3XYbrif7r38L2UQePBNmqGc wDzdnSTxfK8uDgCLXMc/+iLNVxeUASGOOeNys= 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=FRz+GXXZaKOMrKydUY42JkbUz0KXbswZCunobIsh+ok=; b=0RFMfDs1UISDQl2pARAeDwRxIg7StYqCeLaAvEOmPLKS2bxrDro+n2jMPu8liCmsCL pfjvBvfuqiLaqimb9SYSWHqCiU8LjCefU3OiE1uQqqsHquSyOL5ryoYiZqjpk31VwLtf QThxBf9+t2PLY24TByRW0oc18mx9rJi3IY0RyvbkNMclLVDC6+km6V4eszMMQS4+LpFc t64ZgGtW/SK1sOxKf+mmBZ7JRgG3Xd5iNeun+6xb9oUK44Y4sz/JWyQ6dLg5ZhJBu6FV A6EfN6DaaOpVESei2SZTsj3Wr5nyDnu2wG4og6H891SqIMuWpb0E0uPq6GFJOdU/JgaW S6CQ== X-Gm-Message-State: AOAM530gtxcpceAlf9PPzkwz14YxRbqXo6+xWncK7duI19zcnOzMr0ch ++QgafKIqlpVqMGJw2wm0gSP4g== X-Received: by 2002:a17:90b:3510:b0:1dc:88d2:6a1b with SMTP id ls16-20020a17090b351000b001dc88d26a1bmr23153588pjb.158.1652565363278; Sat, 14 May 2022 14:56:03 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id v9-20020a170902b7c900b0016162e01553sm495864plz.168.2022.05.14.14.56.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 May 2022 14:56:03 -0700 (PDT) Date: Sat, 14 May 2022 14:56:02 -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 14/21] treewide: Drop __cficanonical Message-ID: <202205141455.0A6F409@keescook> References: <20220513202159.1550547-1-samitolvanen@google.com> <20220513202159.1550547-15-samitolvanen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220513202159.1550547-15-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: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 ? With that done (or explained why not): Reviewed-by: Kees Cook -- Kees Cook