initramfs: test and improve cpio hex header validation
Get series with b4
b4 am [email protected]Versions newest first
- v3 Latest6 patches 11 repliesIn review
Changes in v3 from the cover letter
- rebased on top of latest kernel
- squashed patches proposed by David
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | initramfs_test: add fill_cpio() format parameterinit/ | +14 | 2 replies | |
| 2/6 | initramfs_test: test header fields with 0x hex prefixinit/ | +60 | 0 replies | |
| 3/6 | initramfs: Sort headers alphabeticallyinit/ | +12 | 1 reply | |
| 4/6 | initramfs: Refactor to use hex2bin() instead of custom approachinit/ init/ | +30 | 0 replies | |
| 5/6 | vsprintf: Revert "add simple_strntoul"include/ lib/ | +0 | 2 replies | |
| 6/6 | kstrtox: Drop extern keyword in the simple_strtox() declarationsinclude/ | +4 | 2 replies |
Reviews trailers per patch
4 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Andy Shevchenko | David Disseldorp | Petr Mladek |
|---|---|---|---|
| 1/6 | R-b | ||
| 2/6 | |||
| 3/6 | R-b | ||
| 4/6 | |||
| 5/6 | R-b | A-b | |
| 6/6 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v3 0/6] initramfs: test and improve cpio hex header validation
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.
Changelog v3:
- rebased on top of latest kernel
- squashed patches proposed by David
v2: [email protected]
v1: [email protected]
Andy Shevchenko (4):
initramfs: Sort headers alphabetically
initramfs: Refactor to use hex2bin() instead of custom approach
vsprintf: Revert "add simple_strntoul"
kstrtox: Drop extern keyword in the simple_strtox() declarations
David Disseldorp (2):
initramfs_test: add fill_cpio() format parameter
initramfs_test: test header fields with 0x hex prefix
include/linux/kstrtox.h | 9 +++--- init/initramfs.c | 68 +++++++++++++++++++++----------------- init/initramfs_test.c | 72 +++++++++++++++++++++++++++++++++-------- lib/vsprintf.c | 7 ---- 4 files changed, 101 insertions(+), 55 deletions(-)
Signature · 1 line
2.50.1