Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11692513rwd; Thu, 22 Jun 2023 17:34:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Ms4Iy9fGHzeAhXfSLGYdUKUhp5uQyWvSmgoV/3yPUv62XRJdLaZ0D9H8MMKloflPxcCqM X-Received: by 2002:a05:620a:7ef:b0:763:de34:80af with SMTP id k15-20020a05620a07ef00b00763de3480afmr5326610qkk.73.1687480475395; Thu, 22 Jun 2023 17:34:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687480475; cv=none; d=google.com; s=arc-20160816; b=uQuErd9/mOqOv4jUsGGkkRMNRoBsuDbNERxqhMUEasRQrZXPT26uOnbRnOOZuLS8SJ vdIN4FnphhbzeprX3oeZjHeM4BCnpaT4kBCli3oSnUf3B9bsx8mX2zLqutPkincxtVEi Skh7Vp4u1946z3AeNLi4CgPGogth23aHV7c0QRxvv0HcRI/yX2EJTD5fuu2yv1WevE6Q NMHCPvB+4iEGdNwaFm0ehtr8zBHYi/Qs6la4eK9H/thbs3+c+Cm++3iFsMoYuMq1Bzz2 taePQeiQC7aCJLUH9jSu0JWw5Stu3ERCPtkcBFA1hjKXq5BIbh4M8m+ummWEsEuhB2gx tNlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :dkim-signature; bh=5oekcbpWaYM+RGe3QAFehRbvyX8WllQ5GlGqpNCW54M=; b=OYqQz0zo+YjimGPUN8zqtN3qeEH5eIwWaKhSIajGG/CssAhGSPElBIPfPz5TDSkzXn DdMDC9kcQisTyKaBycL+eQiR5xHRctK9YYFXf3EEObKdFiyiqWZXgnvXdwhJdkQPSPFp 7iPYSuf/Vdb1iORERDYWmHRwDREmvblfel311Z8mbE1XHS9UZ0D1E3hJYFUI7ooJSkcT 32Hmx/yR0JZllitv7uwezkrIVtJZ2yoX3LrKqQq6mCEaF91HtI9rHyPT7k89/CEZc8Ra cs7EFUeKXN53jRZiqzi3KDDKlxXWmC0hGvbhy/pX8tGuVjzAKjQFwoVJuezEAmUr7+Us rdTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=Rdb6IeNa; 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 p29-20020a637f5d000000b0053b928deb7asi7642293pgn.344.2023.06.22.17.34.22; Thu, 22 Jun 2023 17:34:35 -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=Rdb6IeNa; 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 S230120AbjFWALr (ORCPT + 99 others); Thu, 22 Jun 2023 20:11:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230519AbjFWALq (ORCPT ); Thu, 22 Jun 2023 20:11:46 -0400 Received: from mail-pg1-x54a.google.com (mail-pg1-x54a.google.com [IPv6:2607:f8b0:4864:20::54a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D302AC6 for ; Thu, 22 Jun 2023 17:11:44 -0700 (PDT) Received: by mail-pg1-x54a.google.com with SMTP id 41be03b00d2f7-553d076dce5so71411a12.3 for ; Thu, 22 Jun 2023 17:11:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687479104; x=1690071104; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=5oekcbpWaYM+RGe3QAFehRbvyX8WllQ5GlGqpNCW54M=; b=Rdb6IeNa+bN582kGK3qp4Ii4rozTCVuUQQpEgBAs6zPE7ZRSP7TQtPZ3NPBWlRL1tM t04koMz43/pvfmmFxz/6CBOzsO9Vs7uk+c7s8NDsE+N0GSQp3PzITuPhz9a7gTu2Mi5N J3weAAdvQPHuoOLsMrmnUfuI3Y426aWWtjCblobFURtiRe9q8ccjcp58x0iIuZr8IG2W lZY9bsnUTX4RfzQ5RagfFmnXCn3hj889q6PoX7fMeBzJSgmpXXSagS0qrBu5GZxo4j4L xnF/sFFXm28NDNZCMab0/wcgJ/P8/CqAiVT9dDqOZ3DagKfQzFIFSag822sHncBtM7Hd KPuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687479104; x=1690071104; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=5oekcbpWaYM+RGe3QAFehRbvyX8WllQ5GlGqpNCW54M=; b=GhkJkwAqGontY6GEXSl74JQaD58q8QeEU9oNeN6AiDI2UIkVod904UX0rWqv2wW3gx CeTzQgiBPOoCX/vfdCDdTKno42b5jgVYNqZyqzwJ+h9pT0nkwpifLYst7Dtzm/CiL9Uu /5nqPw4uYUjMd/5qlTSV8uNIs0X5htaVtAOx79bo8cINBXkHWZx4ygX8Y2tZiC2mYEdw iVRIepd6nja80rUWB/3HUJUdlhGGpf2vimXNmZHHwwWojCOyDUIz2QxA6S3HC6NIgKq9 Q+fD4YMlUAMKCKQJBzVtlo3/fMezmkf8JNj3Xw8rWn+QzVsIGiCOgmgaX9NOb0t8Jagg 3eVA== X-Gm-Message-State: AC+VfDzLajJD02BjFAElztp+SNd5uToSVh9GKJyWE4SQjIs1QePr/wBs EOgZQC4j2ozWMHNUhc/cit1/MViktsRVkx4wV6Y= X-Received: from samitolvanen.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:4f92]) (user=samitolvanen job=sendgmr) by 2002:a63:5b15:0:b0:557:3c4e:5769 with SMTP id p21-20020a635b15000000b005573c4e5769mr787928pgb.3.1687479104229; Thu, 22 Jun 2023 17:11:44 -0700 (PDT) Date: Fri, 23 Jun 2023 00:11:41 +0000 Mime-Version: 1.0 X-Developer-Key: i=samitolvanen@google.com; a=openpgp; fpr=35CCFB63B283D6D3AEB783944CB5F6848BBC56EE X-Developer-Signature: v=1; a=openpgp-sha256; l=693; i=samitolvanen@google.com; h=from:subject; bh=6A3Z0VekOrcAMCMCoSBjX+Qi/VC1cWGyR/zEJyxpVoc=; b=owEB7QES/pANAwAKAUy19oSLvFbuAcsmYgBklOM8IwI7R/Crn8VEyZ1topwBBLxf1CeJ9XSJl p3FBTr7u5OJAbMEAAEKAB0WIQQ1zPtjsoPW0663g5RMtfaEi7xW7gUCZJTjPAAKCRBMtfaEi7xW 7mugC/9MpcW5D0WhaaWUZM8C+JzHLa9JJbPhg9hFYjXWL+Rwxh6hi7X6iGTW5gfIJ2Ar6ogm/yU CuPjeOilA9lpCS7UZBbG95xG49nZ/T69c4bYi7G0hi99r4WW+ToN9ZF82izlKGmIekKCiFrDLgl Ie7NTBQ3yMll03uKWi0Gyq2joN795JLMIwr2A9Oi/NIU72vxhUv+PXRI1J5M4wZRXeobAMojmpk QMPTRn5yh+fLLhBgDQRyRcdtWq5c0DPnomwNttFc1ilPg5KLH1kHpp5S4p4Bksp4NgGMPLIUssg WkN6j6kOkknD8IWznyBNa9tVZsk53Jzg239w4PWwE+R4AcnRxTNxy7U8fTDYtw9maeU7mQxh14q XtqdL7lx4s0aLqIv7ME/NinZ58oXfTbHrEbE0wMhuMK55Zr7nyQ1ix/ciaj1PTZH4XZpFRX0gdH 1BvtUZoas2rrY8vuyqrgYGXm/VXk2gJ/TA/uTdSdfEFtbUTTtI/ov2gNFSkKVyePeWVmY= X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog Message-ID: <20230623001140.1111494-4-samitolvanen@google.com> Subject: [PATCH 0/2] Fix CFI failures with GCOV_PROFILE_ALL From: Sami Tolvanen To: Masahiro Yamada , "Peter Zijlstra (Intel)" , Kees Cook Cc: Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Tom Rix , linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, Sami Tolvanen Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_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 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(-) base-commit: 007034977130b49b618a5206aad54f634d9f169c -- 2.41.0.162.gfafddb0af9-goog