Re: stable request: 186b8f15 ("powerpc: Always initialize input array when calling epapr_hypercall()")

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Mar 02, 2019 at 09:24:21PM +0100, Thomas Deutschmann wrote:
> Hi,
> 
> please backport
> 
> > powerpc: Always initialize input array when calling epapr_hypercall()
> > Several callers to epapr_hypercall() pass an uninitialized stack
> > allocated array for the input arguments, presumably because they
> > have no input arguments. However this can produce errors like
> > this one
> > 
> >  arch/powerpc/include/asm/epapr_hcalls.h:470:42: error: 'in' may be used uninitialized in this function [-Werror=maybe-uninitialized]
> >   unsigned long register r3 asm("r3") = in[0];
> >                                         ~~^~~
> > 
> > Fix callers to this function to always zero-initialize the input
> > arguments array to prevent this.
> > 
> > Signed-off-by: Seth Forshee <seth.forshee@xxxxxxxxxxxxx>
> > Signed-off-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=186b8f1587c79c2fa04bfa392fdf084443e398c1
> 
> to
> 
> - 4.14.x
> - 4.9.x
> - 4.4.x
> 
> 
> Downstream-Bug: https://bugs.gentoo.org/675334

It's already queued up for the next round of stable releases, no need to
ask again :)

thanks,

greg k-h



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux