diff options
| author | Ard Biesheuvel <[email protected]> | 2025-04-24 10:19:18 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2025-04-24 16:23:27 +0000 |
| commit | 032ce1ea9442e140a80e41078b5431d4c0fa2893 (patch) | |
| tree | 51e698976933e933f8bb0affc9cfc3d40e048d8f /rust/helpers | |
| parent | x86/mm: Fix _pgd_alloc() for Xen PV mode (diff) | |
| download | kernel-032ce1ea9442e140a80e41078b5431d4c0fa2893.tar.gz kernel-032ce1ea9442e140a80e41078b5431d4c0fa2893.zip | |
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 generates 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 that generates it")
Reported-by: <[email protected]>
Tested-by: Philipp Stanner <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions
