[PATCH v9 0/6] lib and lib/cmdline enhancements

Dmitry Antipov dmantipov at yandex.ru
Fri Apr 3 03:33:32 PDT 2026


Adjust '_parse_integer_limit()' and 'memparse()' to not ignore overflows,
extend string to 64-bit integer conversion tests, add KUnit-based test
for 'memparse()', fix kernel-doc glitches found in lib/cmdline.c and
adjust riscv32 linker script to export symbols needed for EFI stub.

Dmitry Antipov (6):
  lib: fix _parse_integer_limit() to handle overflow
  lib: fix memparse() to handle overflow
  lib: add more string to 64-bit integer conversion overflow tests
  lib/cmdline_kunit: add test case for memparse()
  lib/cmdline: adjust a few comments to fix kernel-doc -Wreturn warnings
  riscv: export symbols needed for riscv32 EFI stub

 arch/riscv/kernel/image-vars.h |  9 ++++++
 lib/cmdline.c                  | 30 ++++++++++++------
 lib/kstrtox.c                  | 37 +++++++++++++---------
 lib/test-kstrtox.c             |  6 ++++
 lib/tests/cmdline_kunit.c      | 56 ++++++++++++++++++++++++++++++++++
 5 files changed, 113 insertions(+), 25 deletions(-)

-- 
2.53.0



More information about the linux-riscv mailing list