Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp13545426rwd; Sat, 24 Jun 2023 02:11:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6o7hvxUxXQVF4bSgT4svfcLRs9GbsI5VWQj67jPkNr4/NfzBlo/Zk8MWTLRhdk6qm6/x30 X-Received: by 2002:aca:f0b:0:b0:396:11b3:5851 with SMTP id 11-20020aca0f0b000000b0039611b35851mr26570283oip.54.1687597862971; Sat, 24 Jun 2023 02:11:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687597862; cv=none; d=google.com; s=arc-20160816; b=HdTCGJ4TeEGF7c7RReemYz4JdTIJcasvawsMs2c7Jn4eNHoAwpDAk2+D2XiPv6KDx0 mZc83hwwjBVnj5srhOnRSEGSgksOXZJVuV0pLZIYDeFxGI7rdITO0geNeo4dnFk1YOBQ 7Ho1wILtXze92hwLU6cpR+iayMZlgebbzfRsOWzkpQvP3ZZlQZGuSUmN1ANl7mgttCLC BoZ7y4vi4KckUSSyI1chAaZ+vnDpQ6QPxSFkyfcYIqgUUrtaYQy5XbP8XNc646onM9L1 9PoYpCZgu+yKgjFvc16e9QxgeCZhaP33ela5xvEm6EJ11A2rDcqV1k3rZf7ilJIcqjIX PJsg== 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=Rl223SFwiYTSXOP74h/2XKx6nqXifqekOnORQdY81oc=; fh=EMiBsGjSsl9BaDQ9fwTW+gWWQxILSbBXR0J4StseYzA=; b=yTlyIBBgaJ0gGQuMhyyUEufGoJ8S2eU7Q+BRVKcM8pxdo9b+sgeCbI5zI6TILFj8qc Qp9+ICT4sPB+c6utyULH3MCy6xDqnfuQNy6SskXGGDHNH5U3nmfNP4YCjA2Po30Z5fIT GpHU0ZP0OIZ/KN+eHbiP1B0WDrx6RzYSfUODnu4dMriDzVetZ8PmmuCoPnojPZi40Vc1 YIdgcTcX7Z8JmIsyFut2kfXhyqczzUrbbAawajpyWgqRdqkfPJgEiKRLO2Q9WvsFycbS r3RkycX7MYfvWJLWd4+N8Ee1ZOYT2N2kWbg5CHt9Xn+gYv2mA4+gEHZsI1OxmrHFVdKl QrnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QK9soT9z; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jb13-20020a170903258d00b001ac82e60516si929782plb.323.2023.06.24.02.10.50; Sat, 24 Jun 2023 02:11:02 -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=@kernel.org header.s=k20201202 header.b=QK9soT9z; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232655AbjFXIoP (ORCPT + 99 others); Sat, 24 Jun 2023 04:44:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232848AbjFXIoH (ORCPT ); Sat, 24 Jun 2023 04:44:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AE13E40; Sat, 24 Jun 2023 01:44:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 06FD160C34; Sat, 24 Jun 2023 08:44:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 613BFC433C0; Sat, 24 Jun 2023 08:44:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687596245; bh=ihxks+scKC1i2YhsRQdM12a0Piaf0uWSJk4+096CVCk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QK9soT9zj3KgxF3awi6GX6hKzk6+xu8UdcVpKTZ2TyT0mDrZt/CLyuV0nonDBF/Yv MUAqRDanKvaR5AEGsNEEy9Vk2atCyXPkiQBBF/GFm3lllgsTCpBALc79zvEUxSJXvi WuaCo6SdIqswSNF2H7l1HO371kMrBq70FY956KSECE5OqYgCdIvRCEV5JJbeqQ4LBv FfHw76weLo3Wcdl6di4ZsOY3G0AIQMoBPSLi+UZ3LCPoNiRG3OVmbEypmQIKhfMjLZ VSSp4vqeyOnFlf1v+o+Xicg/O95hNr3gCs8+sYf/Ci91P3V+pbVEdEM5kilIxXFdLA ahaxPOCx+TaTw== Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-1a1fa977667so1430763fac.1; Sat, 24 Jun 2023 01:44:05 -0700 (PDT) X-Gm-Message-State: AC+VfDxiusFrx62NyG6JPwavRpwYgAPwr9FYv9Ggx1KphvzfZ4nFKkcv SkDHSPGiqxihdoRNszfSmNw5/homAr+/x5ci0d8= X-Received: by 2002:a4a:dc19:0:b0:560:c7dd:e19e with SMTP id p25-20020a4adc19000000b00560c7dde19emr7070257oov.3.1687596244708; Sat, 24 Jun 2023 01:44:04 -0700 (PDT) MIME-Version: 1.0 References: <20230623001140.1111494-4-samitolvanen@google.com> <202306230932.539C9DC0@keescook> In-Reply-To: From: Masahiro Yamada Date: Sat, 24 Jun 2023 17:43:28 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/2] Fix CFI failures with GCOV_PROFILE_ALL To: Sami Tolvanen Cc: Kees Cook , "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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Sat, Jun 24, 2023 at 5:39=E2=80=AFAM Sami Tolvanen wrote: > > On Fri, Jun 23, 2023 at 9:32=E2=80=AFAM Kees Cook = wrote: > > > > 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 Both applied to linux-kbuild. I also think Fixes: tags would be enough to make them back-ported. --=20 Best Regards Masahiro Yamada