[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8bd4317ef717016ca5d921a96b15808b6c77845a.camel@yandex.ru>
Date: Fri, 06 Feb 2026 12:53:50 +0300
From: Dmitry Antipov <dmantipov@...dex.ru>
To: Andy Shevchenko <andriy.shevchenko@...el.com>, David Laight
<david.laight.linux@...il.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>, Kees Cook <kees@...nel.org>,
"Darrick J . Wong"
<djwong@...nel.org>, linux-hardening@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v5 1/5] lib: fix _parse_integer_limit() to handle
overflow
On Fri, 2026-02-06 at 09:42 +0200, Andy Shevchenko wrote:
> > Code looking at the terminating character wont be expecting a digit
> > and will treat it as a syntax error - which is what you are trying to do.
> >
> > That is a much easier API to use, and a 'drop-in' for existing code.
>
> Maybe, but problematic from the usage point of view as I described above.
Note that was an idea behihd memvalue(), see https://lists.openwall.net/linux-hardening/2026/01/07/23.
IOW since "mem=64K" is expected to be used more often than, say, "mem=64K@...aaaa" or "mem=64K,sync",
it may be useful to have a wrapper which is enough to parse "64K" but treat everything else as error.
Dmitry
Powered by blists - more mailing lists