[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aYW-X-uss7n4S6Em@smile.fi.intel.com>
Date: Fri, 6 Feb 2026 12:11:43 +0200
From: Andy Shevchenko <andriy.shevchenko@...el.com>
To: Dmitry Antipov <dmantipov@...dex.ru>
Cc: David Laight <david.laight.linux@...il.com>,
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, Feb 06, 2026 at 12:53:50PM +0300, Dmitry Antipov wrote:
> 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.
It will make it less useful.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists