public inbox for linux-hardening@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v8 0/5] lib and lib/cmdline enhancements
@ 2026-02-12 16:44 Dmitry Antipov
  2026-02-12 16:44 ` [PATCH v8 1/5] lib: fix _parse_integer_limit() to handle overflow Dmitry Antipov
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Dmitry Antipov @ 2026-02-12 16:44 UTC (permalink / raw)
  To: Andy Shevchenko, Andrew Morton
  Cc: David Laight, Kees Cook, Darrick J . Wong, linux-hardening,
	linux-kernel, Dmitry Antipov

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.

Dmitry Antipov (5):
  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

 lib/cmdline.c             | 30 ++++++++++++++-------
 lib/kstrtox.c             | 37 +++++++++++++++-----------
 lib/test-kstrtox.c        |  6 +++++
 lib/tests/cmdline_kunit.c | 56 +++++++++++++++++++++++++++++++++++++++
 4 files changed, 104 insertions(+), 25 deletions(-)

-- 
2.53.0


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

end of thread, other threads:[~2026-04-02 16:09 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-12 16:44 [PATCH v8 0/5] lib and lib/cmdline enhancements Dmitry Antipov
2026-02-12 16:44 ` [PATCH v8 1/5] lib: fix _parse_integer_limit() to handle overflow Dmitry Antipov
2026-02-12 16:44 ` [PATCH v8 2/5] lib: fix memparse() " Dmitry Antipov
2026-02-24 12:32   ` Rodrigo Alencar
2026-02-24 14:15     ` Rodrigo Alencar
2026-02-25  6:58       ` Dmitry Antipov
2026-02-12 16:44 ` [PATCH v8 3/5] lib: add more string to 64-bit integer conversion overflow tests Dmitry Antipov
2026-02-12 16:44 ` [PATCH v8 4/5] lib/cmdline_kunit: add test case for memparse() Dmitry Antipov
2026-02-12 16:44 ` [PATCH v8 5/5] lib/cmdline: adjust a few comments to fix kernel-doc -Wreturn warnings Dmitry Antipov
2026-02-18 13:40 ` [PATCH v8 0/5] lib and lib/cmdline enhancements Dmitry Antipov
2026-02-18 13:48   ` Andy Shevchenko
2026-04-02  6:56     ` Dmitry Antipov
2026-04-02  8:30       ` Andy Shevchenko
2026-04-02 16:00         ` Andrew Morton
2026-04-02 16:09           ` Andy Shevchenko

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