public inbox for linux-hardening@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v7 0/5] lib and lib/cmdline enhancements
@ 2026-02-12 12:56 Dmitry Antipov
  2026-02-12 12:56 ` [PATCH v7 1/5] lib: fix _parse_integer_limit() to handle overflow Dmitry Antipov
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Dmitry Antipov @ 2026-02-12 12:56 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             | 34 +++++++++++++++++-------
 lib/kstrtox.c             | 33 ++++++++++++++---------
 lib/test-kstrtox.c        |  6 +++++
 lib/tests/cmdline_kunit.c | 56 +++++++++++++++++++++++++++++++++++++++
 4 files changed, 107 insertions(+), 22 deletions(-)

-- 
2.53.0


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

end of thread, other threads:[~2026-02-12 14:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-12 12:56 [PATCH v7 0/5] lib and lib/cmdline enhancements Dmitry Antipov
2026-02-12 12:56 ` [PATCH v7 1/5] lib: fix _parse_integer_limit() to handle overflow Dmitry Antipov
2026-02-12 13:41   ` Andy Shevchenko
2026-02-12 14:32     ` David Laight
2026-02-12 14:45       ` Andy Shevchenko
2026-02-12 13:51   ` David Laight
2026-02-12 12:56 ` [PATCH v7 2/5] lib: fix memparse() " Dmitry Antipov
2026-02-12 13:36   ` Andy Shevchenko
2026-02-12 12:56 ` [PATCH v7 3/5] lib: add more string to 64-bit integer conversion overflow tests Dmitry Antipov
2026-02-12 12:56 ` [PATCH v7 4/5] lib/cmdline_kunit: add test case for memparse() Dmitry Antipov
2026-02-12 12:56 ` [PATCH v7 5/5] lib/cmdline: adjust a few comments to fix kernel-doc -Wreturn warnings Dmitry Antipov

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