Commit Graph
2 Commits
Author SHA1 Message Date
David Disseldorp 6da752f55b initramfs_test: add filename padding test case
Confirm that cpio filenames with multiple trailing zeros (accounted for
in namesize) extract successfully.

Signed-off-by: David Disseldorp <[email protected]>
Acked-by: Nicolas Schier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[nathan: Fix duplicate filesize initialization, reported at
         https://lore.kernel.org/[email protected]/]
Signed-off-by: Nathan Chancellor <[email protected]>
2025-08-21 12:00:10 -07:00
David Disseldorp 83c0b27266 initramfs_test: kunit tests for initramfs unpacking
Provide some basic initramfs unpack sanity tests covering:

- simple file / dir extraction
- filename field overrun, as reported and fixed separately via
  https://lore.kernel.org/r/[email protected]
- "070702" cpio data checksums
- hardlinks

Signed-off-by: David Disseldorp <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
2025-03-08 12:13:04 +01:00