Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12983541rwd; Fri, 23 Jun 2023 13:46:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7oWDEm7LCiCr5n9z1UesyF/0AttoIKNXZC22hFWzHT/XKJDMigra7wi/gzH2QnDOVSJk87 X-Received: by 2002:a05:6a00:182a:b0:668:6eed:7c18 with SMTP id y42-20020a056a00182a00b006686eed7c18mr23938009pfa.9.1687553170656; Fri, 23 Jun 2023 13:46:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687553170; cv=none; d=google.com; s=arc-20160816; b=ObnuaDOcEHINdcclGeAvtNxrwdNioyyPqdqPdosA8Ybof60+/23Xg7a6deyzzihtsm ayLr1Adh5cOJpH/hknBMzrl5XiVBPXg9UFbr0OJw30eQxzzalimVqKKkX/PfLRFcTDiK JAH2iRKw6lEPa6ZLA9o54RFwihKZ9VbBOJI6QuuL8y3BdS1whgSCPoBWrpgSoe8jf7CH XYG93sy28wmMMmIXqDJ966X9x7yYsYuhxHFjAXEIa3EWoEIWCMQHZ45EoiAzUJpLGiAC h4qA9TG7awD13kRl1Eu60x216TWXQ6qewIRhRGnU2Xx6uoiSPPjE5AeuZugbrz15tIYE CHLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=KtZOBLXx1qaVh8dEPlOQudc9UC+Jo33p6yGPUYlrsSo=; b=O4eH7b6UFKy8ve/pxrEBumJCGy7D5wPdtcF62vni3oZ8v7Yp3AuIzTtToT4vWU/erz YcfQIc2qLimFwqfnikfOunCk5RDo1kfvjQXGhn6iR7LxBSdVRspx5LaicE/ksGjXpLE5 smEHnSscke7LzO1gftK8cb7dQfkFGwSpumLqFX3r97YV4u+umgtohc56UK4a1HzqSyZd otPb2Lb6S7USWy1c0bX0ABBbWW1fkiNDPXdPMdrbqWGq/Xglh/ZaY2/HELra79K4R1sE 8a3rj4zZ7Zf+STsYfXX8W82E4I+Hp8bwcnYMlXxDrQIRco17mc1pOjbBC0UPR62re7Ie LgvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="DjWYIE/g"; 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 x66-20020a626345000000b0066a460b2db7si6353582pfb.279.2023.06.23.13.45.58; Fri, 23 Jun 2023 13:46:10 -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=20221208 header.b="DjWYIE/g"; 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 S232420AbjFWUk0 (ORCPT + 99 others); Fri, 23 Jun 2023 16:40:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232606AbjFWUkH (ORCPT ); Fri, 23 Jun 2023 16:40:07 -0400 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 569EE2947 for ; Fri, 23 Jun 2023 13:39:29 -0700 (PDT) Received: by mail-qt1-x82e.google.com with SMTP id d75a77b69052e-3fde9739e20so10889931cf.2 for ; Fri, 23 Jun 2023 13:39:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687552763; x=1690144763; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=KtZOBLXx1qaVh8dEPlOQudc9UC+Jo33p6yGPUYlrsSo=; b=DjWYIE/gzUN0Iiva7mkvSSuTrCrrIFG8+k9bfhLiENXZkHv0LSIRyQV0CuChbMfFTm 4XSOIKNbfzd17E1SrZaTFUnAK5r2Xto887LdsWzt0fv8zc62b52Q8Z2eUB00mpYhgcRO bWbHk+wzyFGPDcE3AVUhrqiEWJwLl8WMKYzfzcDRLojb49S4oKYZNbBs7c/tsEfEKjyz Iay+x8Z6UtF/8ZP5ziuj5VMwzouWdrJ6SIbaqVPE5JnHoUibJhC8vHHs0fCZyvJjAiZR DRuJ0HBURTHIY6tpRH7FpoYKCTsR01ENJ31VSTIKCGbqZKIlZgfL2p7cvhAN4WZLqRBr n50w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687552763; x=1690144763; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KtZOBLXx1qaVh8dEPlOQudc9UC+Jo33p6yGPUYlrsSo=; b=elQl6oR+bbqjpe6tfaEjeCc+7QFXOOv+wmvlQp25M/JlDK/6dnPhp6Q7EThFQuOZCL e/VqO2fDML+iO8XpFavB7a7sTNIrOAZB5qCq4ZvsBRot0EC9LBPsy2p7e5oDTX5SG5eg IB/ayXbIA0eL4lNtRDW4P5inbTkAfd12jPRvuiPRXB1OK6tBdy0o7h4wXHEHnWD1F1z8 ntCoCahtbiAy9d5pO/WCD4XmfwhS4rwiMYJVphsBfMXpNqaBsdgfWWs5TNB94gVz7eSX lfSZFSOyrtB3RvI968MeRy3OZjWnpuvx5Nag9xbxFzdSYdD5NmhOLEzotrsSDvn60i66 GHNg== X-Gm-Message-State: AC+VfDy7vJdubEc8eH95qCCa9Bae9ODcJJd59H/9sNSSkFu6xf7K0Z/v 7tC/UQ6wl6gs8lASadktFho51VoaCezS+OdVQA3AZg== X-Received: by 2002:a05:622a:1708:b0:3fb:426f:19c0 with SMTP id h8-20020a05622a170800b003fb426f19c0mr29888257qtk.29.1687552763059; Fri, 23 Jun 2023 13:39:23 -0700 (PDT) MIME-Version: 1.0 References: <20230623001140.1111494-4-samitolvanen@google.com> <202306230932.539C9DC0@keescook> In-Reply-To: <202306230932.539C9DC0@keescook> From: Sami Tolvanen Date: Fri, 23 Jun 2023 13:38:45 -0700 Message-ID: Subject: Re: [PATCH 0/2] Fix CFI failures with GCOV_PROFILE_ALL To: Kees Cook Cc: Masahiro Yamada , "Peter Zijlstra (Intel)" , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Tom Rix , linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=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, Jun 23, 2023 at 9:32=E2=80=AFAM Kees Cook w= rote: > > On Fri, Jun 23, 2023 at 12:11:41AM +0000, Sami Tolvanen wrote: > > Hi folks, > > > > The following two patches fix CFI failures with GCOV_PROFILE_ALL, > > where the compiler injects indirectly called functions to object > > files that otherwise contain no executable code, and are not > > processed by objtool or don't have CFI enabled. This results in > > missing or incorrect type hashes during boot and when modules are > > loaded. > > > > Sami Tolvanen (2): > > kbuild: Fix CFI failures with GCOV > > kbuild: Disable GCOV for *.mod.o > > > > init/Makefile | 1 + > > scripts/Makefile.modfinal | 2 +- > > scripts/Makefile.vmlinux | 1 + > > 3 files changed, 3 insertions(+), 1 deletion(-) > > Nice hunting! > > Reviewed-by: Kees Cook > > Should these get Cc: stable tags maybe? I was under the impression that Fixes: tags would be sufficient these days, but agreed, explicit Cc: probably wouldn't hurt. Sami