Linux EFI development
 help / color / mirror / Atom feed
* [PATCH v11 0/8] lib and lib/cmdline enhancements
@ 2026-05-19 17:22 Dmitry Antipov
  2026-05-19 17:22 ` [PATCH v11 1/8] lib: fix _parse_integer_limit() to handle overflow Dmitry Antipov
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Dmitry Antipov @ 2026-05-19 17:22 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Andy Shevchenko, Charlie Jenkins, Paul Walmsley, Palmer Dabbelt,
	Albert Ou, Alexandre Ghiti, Ard Biesheuvel, linux-riscv,
	linux-efi, linux-kernel, Dmitry Antipov

This series is a merge of the recently posted [1] and [2]. The first
one is intended to adjust '_parse_integer_limit()' and 'memparse()' to
not ignore overflows, extend string to 64-bit integer conversion tests,
add KUnit-based test for 'memparse()' and fix kernel-doc glitches found
in lib/cmdline.c. The second one was originated from RISCV-specific
build fixes needed to integrate the former and now aims to provide
platform-specific double-word shifts and corresponding KUnit test.

This series was briefly tested on X86, RISCV32, ARM, and MIPS using QEMU,
and compile-tested for LoongArch32 as well.

Getting feedback from RISCV core maintainers would be very helpful.

Special thanks to Andy Shevchenko, Charlie Jenkins, and Andrew Morton.

[1] https://lore.kernel.org/linux-riscv/20260403103338.1122415-1-dmantipov@yandex.ru
[2] https://lore.kernel.org/linux-riscv/20260427090105.705529-1-dmantipov@yandex.ru

Dmitry Antipov (8):
  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: add platform-specific double word shifts for riscv32
  lib: kunit: add tests for __ashldi3(), __ashrdi3(), and __lshrdi3()
  riscv: fix building compressed EFI image

 arch/riscv/Kconfig                      |   3 -
 arch/riscv/include/asm/asm-prototypes.h |   4 +
 arch/riscv/kernel/image-vars.h          |   9 ++
 arch/riscv/lib/Makefile                 |   1 +
 arch/riscv/lib/ashldi3.S                |  36 +++++
 arch/riscv/lib/ashrdi3.S                |  36 +++++
 arch/riscv/lib/lshrdi3.S                |  36 +++++
 drivers/firmware/efi/libstub/Makefile   |   3 +-
 lib/Kconfig.debug                       |  10 ++
 lib/cmdline.c                           |  30 ++--
 lib/kstrtox.c                           |  37 +++--
 lib/test-kstrtox.c                      |   6 +
 lib/tests/Makefile                      |   1 +
 lib/tests/cmdline_kunit.c               |  56 ++++++++
 lib/tests/shdi3_kunit.c                 | 175 ++++++++++++++++++++++++
 15 files changed, 414 insertions(+), 29 deletions(-)
 create mode 100644 arch/riscv/lib/ashldi3.S
 create mode 100644 arch/riscv/lib/ashrdi3.S
 create mode 100644 arch/riscv/lib/lshrdi3.S
 create mode 100644 lib/tests/shdi3_kunit.c

-- 
2.54.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-06-26  8:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-19 17:22 [PATCH v11 0/8] lib and lib/cmdline enhancements Dmitry Antipov
2026-05-19 17:22 ` [PATCH v11 1/8] lib: fix _parse_integer_limit() to handle overflow Dmitry Antipov
2026-05-19 17:22 ` [PATCH v11 2/8] lib: fix memparse() " Dmitry Antipov
2026-05-19 17:22 ` [PATCH v11 3/8] lib: add more string to 64-bit integer conversion overflow tests Dmitry Antipov
2026-05-19 17:22 ` [PATCH v11 4/8] lib/cmdline_kunit: add test case for memparse() Dmitry Antipov
2026-05-19 17:22 ` [PATCH v11 5/8] lib/cmdline: adjust a few comments to fix kernel-doc -Wreturn warnings Dmitry Antipov
2026-05-19 17:22 ` [PATCH v11 6/8] riscv: add platform-specific double word shifts for riscv32 Dmitry Antipov
2026-05-19 17:22 ` [PATCH v11 7/8] lib: kunit: add tests for __ashldi3(), __ashrdi3(), and __lshrdi3() Dmitry Antipov
2026-05-19 17:22 ` [PATCH v11 8/8] riscv: fix building compressed EFI image Dmitry Antipov
2026-05-19 19:10 ` [PATCH v11 0/8] lib and lib/cmdline enhancements Andrew Morton
2026-06-26  8:21 ` patchwork-bot+linux-riscv

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox