From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95452C0015E for ; Fri, 23 Jun 2023 16:32:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231925AbjFWQcp (ORCPT ); Fri, 23 Jun 2023 12:32:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjFWQcn (ORCPT ); Fri, 23 Jun 2023 12:32:43 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A461A1FE7 for ; Fri, 23 Jun 2023 09:32:42 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1b512309d18so4809495ad.3 for ; Fri, 23 Jun 2023 09:32:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1687537962; x=1690129962; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=A/ctcywp7aSY6bqn8fc8UYikW0ADqbI6njwx/CrZFMU=; b=QrcLfKebeRTWvt4YKw8UFWfYt25NNrQQfX99Oy6r+vCqro5wELxb3cYBNFN16R3mZE wFm8qKDe+LeIdcpuYKHxWJTLSCg/HePLqdZerEDwZRLgp62N7xiQGzLXsd3i5aFoj3Jt e+GfvgP5S9iBaVw76byCwgEpHcics5pmXMa7E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687537962; x=1690129962; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=A/ctcywp7aSY6bqn8fc8UYikW0ADqbI6njwx/CrZFMU=; b=fGzrZCCvn6GjTO61Zh6tY5UppfwVbU4mCszW/I0KRnLkMVxuMujtgwU4qgaOep0GwS LQ8bvswpdlg+sOfBSua0nUIYHMPlJtAaoZD8akU0nNhkzURg9FcUlEduDGN2D5YXc/rD 9PyVTK4l/dCUqDBSGDWGKzhwF/S9SH9PcyV48twF0DXOYGlu/zyoxtmXirVoQ4PsNV0/ jBgVoM7a9ZRC7e4uERG71yP0Abtb6EEjhtJBUWWanpkOX+hkCKSxoV01+clRv140PX4W b96KtfFLmg+FRg+MqLGEu8tW7r0TUevQ02nfBfDVJ1fguhKBR/MSCnWU4J93moCexH27 NXDw== X-Gm-Message-State: AC+VfDxtF1Qs2l44/0t4b/SAkPnJpYerhUSwYsAYRb4AFWaXUZ8/Rw+T el/eimT1Ey8ApLKGnX8O3O/LOruEBiQHAjZSeBo= X-Google-Smtp-Source: ACHHUZ7y3G0c/1K1ZxsQD1CmVObEWMkld+khXvdLHXCeF0xmvtbL20p/dlmeD6u4oVOhycyAEXH/Og== X-Received: by 2002:a17:902:aa0a:b0:1b5:4679:568f with SMTP id be10-20020a170902aa0a00b001b54679568fmr10746105plb.45.1687537962012; Fri, 23 Jun 2023 09:32:42 -0700 (PDT) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id iw13-20020a170903044d00b001aaf536b1e3sm7442562plb.123.2023.06.23.09.32.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 09:32:41 -0700 (PDT) Date: Fri, 23 Jun 2023 09:32:40 -0700 From: Kees Cook To: Sami Tolvanen 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 Subject: Re: [PATCH 0/2] Fix CFI failures with GCOV_PROFILE_ALL Message-ID: <202306230932.539C9DC0@keescook> References: <20230623001140.1111494-4-samitolvanen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230623001140.1111494-4-samitolvanen@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -- Kees Cook