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 X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79881C433E2 for ; Thu, 3 Sep 2020 22:44:13 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 40C7120716 for ; Thu, 3 Sep 2020 22:44:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="yKdLBUuE"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="arGEoVNc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 40C7120716 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lEK/uxY/fFCq8P184UF8/Gg0//WAo1u0hmtOsJt4Z/c=; b=yKdLBUuEnHTB8Nqu8PBPFmaxu r6Fxy2NiGoRa+jutR/RKQNGw2A770sSCRAbypw0CmFuHfo9VtWdPhsVzFoVOBaqlmOZjxuI91xZ8c qx2ev7h+qgIj99OOKYYUoGKcph8AziLVeS6660XTO3rOIYYIlTtY/ZAHpHzsBxHBziKiLoayqK9Qh ftI8pMPDMjTI6DdrYkubioyM2CL7zwnLC54kc2Pk9x+qwu+TJav/gx1lZn7Laso2IoDAV/aiaXk2j kpADji61u1f0sm4D09dOL1ZkNsSh3STNCInQiHXu5avk9rqo+UEmP2B+hXBlUeVg/J8ej/6yqanGF Iu2lhYWZA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDxwc-0002Kn-FX; Thu, 03 Sep 2020 22:43:02 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDxwa-0002JN-H7 for linux-arm-kernel@lists.infradead.org; Thu, 03 Sep 2020 22:43:01 +0000 Received: by mail-pg1-x544.google.com with SMTP id e33so3285987pgm.0 for ; Thu, 03 Sep 2020 15:43:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=QrnbZATBHBxQZ7fajeBTKOWCmjpG/tdsnBaMo8RMsl0=; b=arGEoVNcgRk6SvvgwhWybl2yTQQ/41JitWigdBdGhFS95Gmb9SWRyyuaVbLozcxhlL y6JEOwrroo7lJUf2OLWmcs3N8AyWgT7zx61RPK1c7lAmQb6YFg/HrUMlem7+hTwvS/bi td4g7TX1ItoN+b7bfyXxlkOCNCh28KvNVjWIM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=QrnbZATBHBxQZ7fajeBTKOWCmjpG/tdsnBaMo8RMsl0=; b=MjSMz6EUiuSBiPxk2rNY0VeD08STpAbqtJme5YE/uEhN6oQdXVBhnn0qu7E0TXu5bj 7s54hgkGYWE5hujL5J9Hs2jcnAXO26Cri/8Xa1AcL37CKDK2mR6jzyHCigscZgOpPRO2 eqAknes238AyFsXd2zGb1Th06qUfjJm4U6ceIjoIexzH/4OzYq5znSvWKBdWq9icZxEA JxYtcmAnXpz6cb3gKlKCtsmiZ/OkSKosTNcFx36FEd4ZxgY52AIMyHAYTrBnOCe5rPHo 9Gri1y5NLzwxFhGCjCNPpO/SU1ItaZdfaPIO+JgLktNcYOGZPqvIFIR1tjj1zPQBUZKq TI8g== X-Gm-Message-State: AOAM531Wcz9KbVwxq7xYGH0+T2dV0hUYBgCAdyWnzBUW3AlYUYb3/qJy i13Z0Tm9b5jKaidldQZbbzDKNw== X-Google-Smtp-Source: ABdhPJy5mdmPjJfruWrIY+6IxKRglw5a/F5w2SGFD8qLkoS56YGpVx+oFe/zdag2OFqeajEXIFLqFA== X-Received: by 2002:a17:902:9a45:: with SMTP id x5mr6151434plv.208.1599172978633; Thu, 03 Sep 2020 15:42:58 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id r7sm4305639pfl.186.2020.09.03.15.42.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 15:42:57 -0700 (PDT) Date: Thu, 3 Sep 2020 15:42:56 -0700 From: Kees Cook To: Sami Tolvanen Subject: Re: [PATCH v2 18/28] modpost: lto: strip .lto from module names Message-ID: <202009031542.1F8B3012FD@keescook> References: <20200624203200.78870-1-samitolvanen@google.com> <20200903203053.3411268-1-samitolvanen@google.com> <20200903203053.3411268-19-samitolvanen@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200903203053.3411268-19-samitolvanen@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200903_184300_656991_1C784B90 X-CRM114-Status: GOOD ( 13.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, x86@kernel.org, "Paul E. McKenney" , kernel-hardening@lists.openwall.com, Peter Zijlstra , Greg Kroah-Hartman , Masahiro Yamada , linux-kbuild@vger.kernel.org, Nick Desaulniers , linux-kernel@vger.kernel.org, Steven Rostedt , clang-built-linux@googlegroups.com, linux-pci@vger.kernel.org, Will Deacon , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Sep 03, 2020 at 01:30:43PM -0700, Sami Tolvanen wrote: > With LTO, everything is compiled into LLVM bitcode, so we have to link > each module into native code before modpost. Kbuild uses the .lto.o > suffix for these files, which also ends up in module information. This > change strips the unnecessary .lto suffix from the module name. > > Suggested-by: Bill Wendling > Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook -- Kees Cook _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel