Re: [PATCH v2 1/2] reboot: fix overflow parsing reboot cpu number
From: Matteo Croce
Date: Fri Oct 30 2020 - 10:18:44 EST
On Fri, Oct 30, 2020 at 3:13 PM Petr Mladek <pmladek@xxxxxxxx> wrote:
>
> On Tue 2020-10-27 14:42:43, Greg KH wrote:
> > On Tue, Oct 27, 2020 at 02:35:44PM +0100, Matteo Croce wrote:
> > > From: Matteo Croce <mcroce@xxxxxxxxxxxxx>
> > >
> > > Limit the CPU number to num_possible_cpus(), because setting it
> > > to a value lower than INT_MAX but higher than NR_CPUS produces the
> > > following error on reboot and shutdown:
> > >
> > > Fixes: 1b3a5d02ee07 ("reboot: move arch/x86 reboot= handling to generic kernel")
> > > Signed-off-by: Matteo Croce <mcroce@xxxxxxxxxxxxx>
>
> Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>
>
> > <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>
>
> The best way is to add the following line before Signed-off-by line:
>
> Cc: stable@xxxxxxxxxxxxxxx
>
I see, sorry for the noise. Should I resend, or I eventually write to
stable@xxxxxxxxxxxxxxx after the merge?
--
per aspera ad upstream