Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8805301rwb; Thu, 24 Nov 2022 04:39:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf4sdmWGFaM2ExVBtaScnXN2GvAW6GEJ+WY1Fp9dStHASrXBYYL8nHuIcE3l5VODDYzkP9op X-Received: by 2002:a63:5d65:0:b0:477:c1a3:9a10 with SMTP id o37-20020a635d65000000b00477c1a39a10mr5396340pgm.33.1669293579611; Thu, 24 Nov 2022 04:39:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669293579; cv=none; d=google.com; s=arc-20160816; b=HqzXo4SWPyKuCfETRSiXC47mGRMTj98vEOEb2WApXcXtR1k6Mw2HuV4jS6wfE0h+ql sb8Ct88wPGTWH5m6tJm5DCU5Cr5+yhKGBP9tZmEoI4YvGYCXGzjFJrZwEDPxiQGGxkTQ ulTGLFCbO59y5Gm87nIBnHc/Xdyh+WA0BYotJK4iuDSv+5jUBEsLYuYHb8l/b/ykm/m2 oymEpStj631T7HARsbf3aSNYXFIjv/MvGNNWR0yaqWCSsJQcsulzNFMKMuxuYO3xM+ZQ CNTzpFaBFlbsS8hLTRXqsh+FI1F+NDUniLpZF5qRe3Cf5Nn/bnzc7VJi+cNFnoTGU0eS wLcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=5JU48m0AZrUyT2++X8e6FIEgULoXPLA3Dizh2n0L4e4=; b=vYuQoqsFA++KS3sDWcnNfrSubh4+TVPBJ/lzQQnMpGRcvOsgLeuuNzwwNv/Xv1+9C7 JG0iUC/5CPOOsqc84XKy8dkGbXTQKbMKyhMgChn2c8yUmfuDwIh3r6Ypwt8umz3hSpwt NdxrjFmhPtt633w3lz75QQWTI1XIl6QLgjtVEP2OWcrnrWrz8i0Url6LpxvEHbl3Mxlr eJpaIPHwGrsVP0Nks4MtYSKTKwPgxnV22xgp6CWAXeZVI81R4xsn4RPRpmq9WMv1oIJO tudpGWuRsbUKor3f9obono6WCg9upIua/qrm7EV4i85XIBvO8TrhISikxbJQg8ljc+xW 3d+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=nJ6yamWS; 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 o17-20020a170902d4d100b0017865059c4bsi1048891plg.401.2022.11.24.04.39.27; Thu, 24 Nov 2022 04:39:39 -0800 (PST) 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=20210112 header.b=nJ6yamWS; 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 S229664AbiKXMbj (ORCPT + 87 others); Thu, 24 Nov 2022 07:31:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbiKXMbi (ORCPT ); Thu, 24 Nov 2022 07:31:38 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4DC1BCA4 for ; Thu, 24 Nov 2022 04:31:37 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id 5so1208818wmo.1 for ; Thu, 24 Nov 2022 04:31:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=5JU48m0AZrUyT2++X8e6FIEgULoXPLA3Dizh2n0L4e4=; b=nJ6yamWSxD9zSs4XqTzdk3DVALEFwHbQ3n1O5P4YrQfjn7uW1WBF2+YyK6k3jZK4MZ etuI3RTbnbLC0iU9XyYt8yClLsJlp9Viq8LoTQyTUtNJbeB4JDj9yjLFGfdox3Pc5Typ l4XQ/1dSAgwU3MOnNfO2Pn8vl5jEQ5CzWgWliSG2++AriiPRCYvAeU4swi6mAZ1559/3 1X0yRZSjGVAfN8SvohzUT6MS7YY0GUnjSUdvknH4RNjKimLWcf+Y8pOFxbuHwV08CGdW zBccIBYo8UHXCrf3rXKWno1qTO9YJ7Qh/KNDKAM16F+uB4vNag3UrdygWjjUaQ6fMCtw QIXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5JU48m0AZrUyT2++X8e6FIEgULoXPLA3Dizh2n0L4e4=; b=IZwJ64u7G3QLBB1JtW4+Kyf3+1TzmO7HE5r9BnuiRTa8LFeGQdT1pv3i7uEusvMXGk y8E+cXmLFTxDEMf3CKzAG1PCUuFYZO8FW0UfQZ/gVRvzcFzUE3tRr9Erlb4/VSPkYbeP mJPAE4ugIDa4A2w1HZEGU7nu4WZCZwiA7Lo1qQQYsZ0S1mhsmJBRTyJ4HlF5qgKlEUrJ XwLjTDes1BtvKApGBdVRAW5LxfE0QDCs3cIMiexyhGMc6WzEzF8cYIcKoE1ko8RP2lg6 GGLegCUgug3aZPU3kLjfC1kcjH9nTvniYQGZI6hhDyZvdvXbXDxbuhj3YOB0U87ls0Hr e7RA== X-Gm-Message-State: ANoB5pn5cPLiP2bi2lMNhEmtFvGBbACOxvE1xQrXbVPCPMQ1a/thG50o 0aWng0MQAtXQFC7sjtoH3YThEQ== X-Received: by 2002:a05:600c:3d0c:b0:3cf:f66c:9246 with SMTP id bh12-20020a05600c3d0c00b003cff66c9246mr11340007wmb.27.1669293096142; Thu, 24 Nov 2022 04:31:36 -0800 (PST) Received: from google.com (65.0.187.35.bc.googleusercontent.com. [35.187.0.65]) by smtp.gmail.com with ESMTPSA id s3-20020a5d4243000000b00241e4bff85asm1180970wrr.100.2022.11.24.04.31.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 04:31:35 -0800 (PST) Date: Thu, 24 Nov 2022 12:31:31 +0000 From: Vincent Donnefort To: llvm@lists.linux.dev, linux-kernel@vger.kernel.org Cc: samitolvanen@google.com, nhuck@google.com, ndesaulniers@google.com, kernel-team@android.com Subject: Bug: MODPOST mismatch ignored due to LTO Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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, 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 Hi all, It seems that enabling LTO breaks the check for section mismatch in modpost. If I create on purpose a mismatch here's the output without LTO check_section_mismatch() fromsec=.text tosec=.init.text sym=kvm_arch_vcpu_create => section mismatch in reference: kvm_vm_ioctl_create_vcpu (section: .text) -> kvm_arch_vcpu_create (section: .init.text) While with LTO: check_section_mismatch() fromsec=.text.kvm_vm_ioctl_create_vcpu tosec=.init.text sym=kvm_arch_vcpu_create => mismatch ignored, the section ".text.kvm_vm_ioctl_create_vcpu" is unsurprisingly unknown LTO seems to append the symbol name to the section which is a problem for modpost. Is that a known issue? Thanks, Vincent