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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 161BCC982D2 for ; Thu, 17 Sep 2026 17:05:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc: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=/XTkWkDomIvFZ5kqMF79pPNJjWocdUqH6HkraiLUCKI=; b=OCRmkEQY93gFpX Qzw5AoPqhnq0LJFjQ3TgLs7LxWrlgC+OOMI9bhIfPXfwpLlrCOnZjdbUbj8V6MDYAJW8hZD6A7Mwx tLQG+/dDWh66fAZNxlpdJcC0S098iCM3W/GAdyE2Fl9IbnzIMmzI8BPnjJ0zds+BtGXYQdPFiGMhG 8q3J+iP61YoGnZAGBhzN0inJL4icaL72eHjRQsO5TOH/Ygx5agNSwhJEugSGNanHMgd4bT8J5JdZA 9zuTuCYLMt0tf5/zS4RwJfbwABPwcjM1RTLrXGJALE8swwnLibriGAT4mT5IrkZHF3lb6RM7FHRvc 9+iwtc8cIES7MH/NNy1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x7FYH-0000000C2Dh-27we; Thu, 17 Sep 2026 17:05:37 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x7FYF-0000000C2D6-3e76; Thu, 17 Sep 2026 17:05:35 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 287E742B9D; Thu, 17 Sep 2026 17:05:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFA4D1F00893; Thu, 17 Sep 2026 17:05:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789664735; bh=9T6Ai0DaSY41m9xsiEy+SvRmsf3fqO2EjjY5HGGOdHY=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=a1oY5QbBgj0PgVTxIAleOAevncrWdI0JjDRKRIjUk+L7L0Qclrqrv/W6tH1fiTwbn jcLKeMW+4oZiygidx8l8R1v9pjrdcr2hgTaP4n61WG3Jjoiyn1z8s1izXab8yOTxSx rZj6mayKixcNOV1Q1vLTDtSa1iiLwGhudrq1Jj1HJGFGF6LPjeLei7ldBzZZlateWj XYA33AViCuP9r6hvgJjnNStdeSBGzmCJzcD39hRRcu+RkgR28pi1TEFEoen/Bj8J0w MCd1iy582tIarlE019Chz91CYupTlf7jXjPVYiBjYrBPmrVjc+STbQYOjEkXJpI0Lz 0BMVtVLMfj2zQ== Date: Thu, 17 Sep 2026 10:05:34 -0700 From: Kees Cook To: "Lorenzo Stoakes (ARM)" Cc: Linus Torvalds , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Masahiro Yamada , Alexey Gladkov , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Arnd Bergmann , Catalin Marinas , Will Deacon , Mark Rutland , Ard Biesheuvel , Ilias Apalodimas , Josh Poimboeuf , Peter Zijlstra , Miguel Ojeda , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , Onur =?iso-8859-1?Q?=D6zkan?= , Jonathan Corbet , Randy Dunlap , "Gustavo A. R. Silva" , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-riscv@lists.infradead.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-efi@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, Jens Axboe , linux-hardening@vger.kernel.org Subject: Re: [PATCH v3 01/20] kbuild: do not allocate .modinfo in vmlinux Message-ID: <202609171002.8C0C739@keescook> References: <20260917-build-speedup-v3-0-9ecf4163ff36@kernel.org> <20260917-build-speedup-v3-1-9ecf4163ff36@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20260917-build-speedup-v3-1-9ecf4163ff36@kernel.org> X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Thu, Sep 17, 2026 at 05:06:11PM +0100, Lorenzo Stoakes (ARM) wrote: > + cmd_modules_builtin_modinfo = $(OBJCOPY) -O binary -j .modinfo --dump-section .modinfo=$@ $< $@.tmp; \ > + rm -f $@.tmp; \ > + sed -i 's/\x00\+$$/\x00/g' $@ Oh, I just noticed this. I don't think the .tmp is needed. You can just use /dev/null for the outfile here: no need to write anything unused to disk; seems to work for binutils and llvm's objcopy. -- Kees Cook _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv