[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201027134224.GA991306@kroah.com>
Date: Tue, 27 Oct 2020 14:42:24 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: Matteo Croce <mcroce@...ux.microsoft.com>
Cc: linux-kernel@...r.kernel.org, Guenter Roeck <linux@...ck-us.net>,
Petr Mladek <pmladek@...e.com>, Arnd Bergmann <arnd@...db.de>,
Mike Rapoport <rppt@...nel.org>,
Kees Cook <keescook@...omium.org>,
Pavel Tatashin <pasha.tatashin@...een.com>,
Robin Holt <robinmholt@...il.com>,
Fabian Frederick <fabf@...net.be>, stable@...r.kernel.org
Subject: Re: [PATCH v2 0/2] fix parsing of reboot= cmdline
On Tue, Oct 27, 2020 at 02:35:43PM +0100, Matteo Croce wrote:
> From: Matteo Croce <mcroce@...rosoft.com>
>
> The parsing of the reboot= cmdline has two major errors:
> - a missing bound check can crash the system on reboot
> - parsing of the cpu number only works if specified last
>
> Fix both, along with a small code refactor.
>
> v1->v2:
> As Petr suggested, don't force base 10 in simple_strtoul(),
> so hex values are accepted as well.
>
> Matteo Croce (2):
> reboot: fix overflow parsing reboot cpu number
> reboot: fix parsing of reboot cpu number
>
> kernel/reboot.c | 24 +++++++++++++-----------
> 1 file changed, 13 insertions(+), 11 deletions(-)
>
> --
> 2.28.0
>
<formletter>
This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.
</formletter>
Powered by blists - more mailing lists