[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190328135015.GA9224@smile.fi.intel.com>
Date: Thu, 28 Mar 2019 15:50:15 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Borislav Petkov <bp@...en8.de>
Cc: Joe Perches <joe@...ches.com>, "H. Peter Anvin" <hpa@...or.com>,
x86@...nel.org, Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 3/7] x86/boot: Split out parse_serial_port() helper
for earlyprintk
On Thu, Mar 28, 2019 at 02:39:07PM +0100, Borislav Petkov wrote:
> On Thu, Mar 28, 2019 at 03:15:57PM +0200, Andy Shevchenko wrote:
> > kstrtox() simple can't cover _all_ simple_strtox() cases.
>
> I see only one case here. Are you saying kstrtoull() cannot work
> here?
Can, but with code uglifying to workaround kstrtox() restrictions.
simple_strtox() _just works_ as expected.
> > I don't feel like uglifying code to satisfy a tool producing a silly
> warning.
>
> Uglifying how?
Requires buffer copying, finding digits there, making a proper termination. And
basically dropping the error check, because we don't care at this stage about
wrong input.
And we didn't start to talk about possible user expectation breakage and
basically breakage weird user cases.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists