]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Merge patch series "initramfs: test and improve cpio hex header validation"
authorChristian Brauner <brauner@kernel.org>
Thu, 9 Apr 2026 13:34:28 +0000 (15:34 +0200)
committerChristian Brauner <brauner@kernel.org>
Thu, 21 May 2026 07:32:46 +0000 (09:32 +0200)
commit1ca179a8538467ef770bfe68a184f6c74c657fef
treed321608d1b9e264d86c6a7e1e3b74b1f746d5cc8
parenta243a7b02ef925d1b7d6a9308202fd0b8b381535
parenta2faa0e062db577a0b2e76bea632e924c63c132f
Merge patch series "initramfs: test and improve cpio hex header validation"

David Disseldorp <ddiss@suse.de> says:

The series that introduced simple_strntoul() had passed into kernel
without proper review and hence reinvented a wheel that's not needed.
Here is the refactoring to show that. It can go via PRINTK or VFS
tree.

I have tested this on x86, but I believe the same result will be
on big-endian CPUs (I deduced that from how strtox() works).

I also run KUnit tests.

* patches from https://patch.msgid.link/20260331070519.5974-1-ddiss@suse.de:
  kstrtox: Drop extern keyword in the simple_strtox() declarations
  vsprintf: Revert "add simple_strntoul"
  initramfs: Refactor to use hex2bin() instead of custom approach
  initramfs: Sort headers alphabetically
  initramfs_test: test header fields with 0x hex prefix
  initramfs_test: add fill_cpio() inject_ox parameter

Link: https://patch.msgid.link/20260331070519.5974-1-ddiss@suse.de
Signed-off-by: Christian Brauner <brauner@kernel.org>