From nobody Sun Feb 8 02:56:19 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02B0A28A1CE; Thu, 24 Apr 2025 16:45:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745513113; cv=none; b=bvLFJVPzLVBguRqt6JpjgSU9X/YMwS4Kll8uDFenzHKzzS3f3Ke5gi4yd2PgLPW7PlXaDAzRjecQaIV9P8VSVaCDqBjZ751dhLw8UuRpyZGx/5M1GqBOkF1xEVJBF1zsgGWkpPedrjl2yb8p2rmIllV6nAHhvx91jILJ3JUW6q4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745513113; c=relaxed/simple; bh=WTCPC6me0UUZGdyCdncOvrVaoH5MZBIcs5xmtWo09Kc=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=dJu5VIz21T4mq3LhFSfG5yVJg+3hDPr323tuUbUOBeVr2XqpFZCr2kw0rT9LxhXA0En7G7CCtZcAjTeW/6lLJOXtw0HVwqKgyYRbi4MnLUmoL19gm7ib5SYxn/aRiAOJe+vNdiw/cnqBA+XQwqQBkgJUGqW7EQPV3hb617X0dho= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=PCm8clwV; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=+yogsccb; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="PCm8clwV"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="+yogsccb" Date: Thu, 24 Apr 2025 16:45:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1745513109; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2Gsm8C6ZSxaKbaMEe1Yfo9NNH4KponKBkPpmeAIjepE=; b=PCm8clwVYPU4oVo0yHQx5k5Zu1U2U6yfPPuMpRer3aRJ1+rLpgVyX6VA0h46IwBeQSYWdF 6CSVl8vD93QzJzxOAg5tWV2cEwU8oXf6Yzi5Mja5p/R426Wm81hSSRWkNdGGMLtgLN5LCW Sw2qNRffIi+lpRmcmm77qaIsBzflKPDuDRDzPTRBmh9nc37CMtMQ3Uf2ogpQzU16GZWh6L Yi6jeJI0SLC7LjcXLMcOCGTf3t/YpACEqSNdtSEEu4ei0fYLUz4Jhkg56Nz409xUKXmiGm ipGmLIrWArSQWk9k/fM6gRPZP4rG123UbpnEsY1ws+ZK1EnQ8gsXuiR4F6kevw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1745513109; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2Gsm8C6ZSxaKbaMEe1Yfo9NNH4KponKBkPpmeAIjepE=; b=+yogsccbwOH6VcPlS0U/qQe95xS4cXPirw9RAQNjNn2XL/TscwYkmcSOK4PBgHc4OY8SyE ylmq1Gx6d/VDqnCA== From: "tip-bot2 for Ard Biesheuvel" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/boot: Work around broken busybox 'truncate' tool Cc: , Ard Biesheuvel , Ingo Molnar , "H. Peter Anvin" , Kees Cook , Linus Torvalds , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20250424101917.1552527-2-ardb+git@google.com> References: <20250424101917.1552527-2-ardb+git@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <174551310208.31282.4477051029885255124.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 032ce1ea9442e140a80e41078b5431d4c0fa2893 Gitweb: https://git.kernel.org/tip/032ce1ea9442e140a80e41078b5431d4c= 0fa2893 Author: Ard Biesheuvel AuthorDate: Thu, 24 Apr 2025 12:19:18 +02:00 Committer: Ingo Molnar CommitterDate: Thu, 24 Apr 2025 18:23:27 +02:00 x86/boot: Work around broken busybox 'truncate' tool The GNU coreutils version of truncate, which is the original, accepts a % prefix for the -s size argument which means the file in question should be padded to a multiple of the given size. This is currently used to pad the setup block of bzImage to a multiple of 4k before appending the decompressor. busybox reimplements truncate but does not support this idiom, and therefore fails the build since commit 9c54baab4401 ("x86/boot: Drop CRC-32 checksum and the build tool that gen= erates it") Since very little build code within the kernel depends on the 'truncate' utility, work around this incompatibility by avoiding truncate altogether, and relying on dd to perform the padding. Fixes: 9c54baab4401 ("x86/boot: Drop CRC-32 checksum and the build tool tha= t generates it") Reported-by: Tested-by: Philipp Stanner Signed-off-by: Ard Biesheuvel Signed-off-by: Ingo Molnar Cc: H. Peter Anvin Cc: Kees Cook Cc: Linus Torvalds Link: https://lore.kernel.org/r/20250424101917.1552527-2-ardb+git@google.com --- arch/x86/boot/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/boot/Makefile b/arch/x86/boot/Makefile index 81f55da..640fcac 100644 --- a/arch/x86/boot/Makefile +++ b/arch/x86/boot/Makefile @@ -59,7 +59,7 @@ KBUILD_CFLAGS +=3D $(CONFIG_CC_IMPLICIT_FALLTHROUGH) $(obj)/bzImage: asflags-y :=3D $(SVGA_MODE) =20 quiet_cmd_image =3D BUILD $@ - cmd_image =3D cp $< $@; truncate -s %4K $@; cat $(obj)/vmlinux.bin >= >$@ + cmd_image =3D (dd if=3D$< bs=3D4k conv=3Dsync status=3Dnone; cat $(f= ilter-out $<,$(real-prereqs))) >$@ =20 $(obj)/bzImage: $(obj)/setup.bin $(obj)/vmlinux.bin FORCE $(call if_changed,image)