Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12850529rwd; Fri, 23 Jun 2023 11:32:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4CcSrGuTEjCj9VT213YWYzAjnLKg1V0npIgqaCyfpIisl3NnHtK1B9ICNgRrcnxM62aS9o X-Received: by 2002:a05:6a00:2ea9:b0:64c:b45f:fc86 with SMTP id fd41-20020a056a002ea900b0064cb45ffc86mr21447447pfb.17.1687545160519; Fri, 23 Jun 2023 11:32:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687545160; cv=none; d=google.com; s=arc-20160816; b=PluJHued555/qqNaBuRBTm4ISUnw3BuXFt3xWKmH2cfK7uiRO7YSHCCJeFg1Zux1+M 83d3IcpQ/SUcANVrxi9yA5W9NY8KkZrXS6MKJY+DUaGonfUi2a8zHvSKKn+kS1Iluqb2 kbTq8y59x/rsyfAqleg9Dq+3mZlg/K46yfveo4QtwCcGdOlvTTiTPycoKSApQJX/p4pM +L+IW3+XM4lO0x2bQ6kyfOz5rLDSNTGmOQgGyE7afKjhcz7LCbFyEd/Tr8wH1Svlxkgf UcNGb0ybtcALsKdvvM4kuNMezL9ATVzMyaoU7ruMKmYDnp+WMI06ktO0Bqu8c/zRd+Ei MBEw== 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=0qEXPbdvOITtF78jwrTXORqWaGEAtN/sfBgbj8S0W5w=; b=MUEk81Vnzm4e6itognglNpYnPT3YHwHAOEz1ITH7QRpzkUyRerv/KzfcckwFdYSUYi 5ZlKu7zxIx52sg1UIu/VPBfbUWG/QSmV0zU51TQug0Rvdiv81MN76+UogJiZXJoTAC76 /3XYFdOK2RklyZFbgZ76hhxka17OIV2bvdaL3+7DUuO9Xw5Oq5eVK+uIYff0XT6+yxr1 aqM7YGFtvMb+LE2CqU4iMKIAUWaGxbcT5iBnxPJkg0JpLLoSik03QS4UQtGvcidDJoNU ECHv/hOWObiWc48f2GYxzDIka1F7xu07pYto/0pEDXCCj8k0tRjk/YO5d+l1mfR8wVQS +6cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=O6ASrmx+; 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 a13-20020aa795ad000000b00647d6c7075asi7247558pfk.109.2023.06.23.11.32.27; Fri, 23 Jun 2023 11:32:40 -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=O6ASrmx+; 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 S229801AbjFWRrq (ORCPT + 99 others); Fri, 23 Jun 2023 13:47:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230426AbjFWRro (ORCPT ); Fri, 23 Jun 2023 13:47:44 -0400 Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0356D2133 for ; Fri, 23 Jun 2023 10:47:44 -0700 (PDT) Received: by mail-qt1-x82c.google.com with SMTP id d75a77b69052e-3ff27588ba5so9485831cf.3 for ; Fri, 23 Jun 2023 10:47:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687542463; x=1690134463; 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=0qEXPbdvOITtF78jwrTXORqWaGEAtN/sfBgbj8S0W5w=; b=O6ASrmx+PfXHgCskz1yP04s3WLd6KJdj6j0igWHXefGLr6bwoNZBmFGB2jmEKCEG0D P9VkBpcy3HQIc+Qm4HlQb6HupIZuyxqmSK6YYj+Gb16/lVqTcAcPALKzHFi1ubJuZrsM cNaDVhKmHms6PjAbWoJ0As6JtWQpURWIX+XKkKpDM8qh+hIZfivcn7sIYmkRaeJY2kbS rRn+G21GikGG7445s7v8zeWJNNbQ36EN4O4jHr0PETlSXtt4hnOF4gh7qN4l8lgKaEdn 4QjS2NyA8frDsQ3j0AYHdcjAAjvQiEhP1atwUcXZvqpc9bDTr8uUNRNNmgV3KgwYzbh8 o9Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687542463; x=1690134463; 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=0qEXPbdvOITtF78jwrTXORqWaGEAtN/sfBgbj8S0W5w=; b=AYNIxyHS8esQyQEI+K8+BtWprZk2qyzxiF6q3ckayNGBv2ALdjEYgHlYj6Np/x2QIS LusvocxwfbqF28ivxkDdbmgt+C8/ZbBpCulqzEriZE5JfJlEeSvqOy1eimSHOw7k5TA2 LtaDaF9LaxvmDJ7K6A+wdq5C/4aIH5+3g35vKwcIOFxfyjWte+CiP6y8Ld/NxpLXU739 N3CaQYnCDu56VwbyyTuQwKvwuRq9cXBjctygDgoordr+ms6Xak2vhUpu+QyLzAqOyt5z mCU5cmzwatra7XmMQu7ADgCT2mDJmjSQhGNK2PzRp8nMdGKNdhteRALjVwJAXceFR1U7 BpGw== X-Gm-Message-State: AC+VfDy6PHcWXAwX1HhbuPbTmijKD5GUZt0fQc3+XjDvISqUHP49jqH7 D24Dp1jSC9Bx0JlzztjHcwErtF/OkY88qnqZy14/xQ== X-Received: by 2002:a05:6214:226b:b0:62f:f276:7a39 with SMTP id gs11-20020a056214226b00b0062ff2767a39mr30296315qvb.11.1687542463036; Fri, 23 Jun 2023 10:47:43 -0700 (PDT) MIME-Version: 1.0 References: <20230623001140.1111494-4-samitolvanen@google.com> In-Reply-To: <20230623001140.1111494-4-samitolvanen@google.com> From: Nick Desaulniers Date: Fri, 23 Jun 2023 10:47:32 -0700 Message-ID: Subject: Re: [PATCH 0/2] Fix CFI failures with GCOV_PROFILE_ALL To: Sami Tolvanen Cc: Masahiro Yamada , "Peter Zijlstra (Intel)" , Kees Cook , Nathan Chancellor , Nicolas Schier , Tom Rix , linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, Joe Fradley 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=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 Thu, Jun 22, 2023 at 5:11=E2=80=AFPM 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(-) Thanks for the patches! Reviewed-by: Nick Desaulniers > > > base-commit: 007034977130b49b618a5206aad54f634d9f169c > -- > 2.41.0.162.gfafddb0af9-goog > > --=20 Thanks, ~Nick Desaulniers