public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation•org>
To: Jiri Slaby <jslaby@suse•cz>
Cc: linux-kernel@vger•kernel.org, stable@vger•kernel.org,
	Thomas Gleixner <tglx@linutronix•de>,
	Russell King <rmk+kernel@armlinux•org.uk>,
	"Darren Hart (VMware)" <dvhart@infradead•org>,
	linux-mips@linux-mips•org, Rich Felker <dalias@libc•org>,
	linux-ia64@vger•kernel.org, linux-sh@vger•kernel.org,
	peterz@infradead•org,
	Benjamin Herrenschmidt <benh@kernel•crashing.org>,
	Max Filippov <jcmvbkbc@gmail•com>,
	Paul Mackerras <paulus@samba•org>,
	sparclinux@vger•kernel.org, Jonas Bonn <jonas@southpole•se>,
	linux-s390@vger•kernel.org, linux-arch@vger•kernel.org,
	Yoshinori Sato <ysato@users•sourceforge.jp>,
	linux-hexagon@vger•kernel.org, Helge Deller <deller@gmx•de>,
	"James E.J. Bottomley" <jejb@parisc-linux•org>,
	Catalin Marinas <catalin.marinas@arm•com>,
	Matt Turner <mattst88@gmail•com>,
	linux-snps-arc@lists•infradead.org,
	Fenghua Yu <fenghua.yu@intel•com>, Arnd Bergmann <arnd@arndb•de>,
	linux-xtensa@linux-xtensa•org,
	Stefan Kristiansson <stefan.kristiansson@saunalahti•fi>,
	openrisc@lists•librecores.org,
	Ivan Kokshaysky <ink@jurassic•park.msu.ru>,
	Stafford Horne <shorne@gmail•com>,
	linux-arm-kernel@lists•infradead.org,
	Richard Henderson <rth@twiddle•net>,
	Chris Zankel <chris@zankel•net>, Michal Simek <monstr@monstr•eu>,
	Tony Luck <tony.luck@intel•com>,
	linux-parisc@vger•kernel.org, Vineet Gupta <vgupta@synopsys•com>,
	Ralf Baechle <ralf@linux-mips•org>,
	Richard Kuo <rkuo@codeaurora•org>,
	linux-alpha@vger•kernel.org,
	Martin Schwidefsky <schwidefsky@de•ibm.com>,
	linuxppc-dev@lists•ozlabs.org,
	"David S. Miller" <davem@davemloft•net>,
	Ben Hutchings <ben.hutchings@codethink•co.uk>
Subject: Re: [PATCH 4.9 27/33] futex: Remove duplicated code and fix undefined behaviour
Date: Fri, 18 May 2018 11:01:41 +0200	[thread overview]
Message-ID: <20180518090141.GA10227@kroah.com> (raw)
In-Reply-To: <e8dc5f94-3b52-dcf0-3b5e-b442bde7d803@suse.cz>

On Fri, May 18, 2018 at 10:30:24AM +0200, Jiri Slaby wrote:
> On 05/18/2018, 10:16 AM, Greg Kroah-Hartman wrote:
> > 4.9-stable review patch.  If anyone has any objections, please let me know.
> > 
> > ------------------
> > 
> > From: Jiri Slaby <jslaby@suse•cz>
> > 
> > commit 30d6e0a4190d37740e9447e4e4815f06992dd8c3 upstream.
> ...
> > --- a/kernel/futex.c
> > +++ b/kernel/futex.c
> > @@ -1458,6 +1458,45 @@ out:
> >  	return ret;
> >  }
> >  
> > +static int futex_atomic_op_inuser(unsigned int encoded_op, u32 __user *uaddr)
> > +{
> > +	unsigned int op =	  (encoded_op & 0x70000000) >> 28;
> > +	unsigned int cmp =	  (encoded_op & 0x0f000000) >> 24;
> > +	int oparg = sign_extend32((encoded_op & 0x00fff000) >> 12, 12);
> > +	int cmparg = sign_extend32(encoded_op & 0x00000fff, 12);
> 
> 12 is wrong here – wherever you apply this, you need also a follow-up fix:
> commit d70ef22892ed6c066e51e118b225923c9b74af34
> Author: Jiri Slaby <jslaby@suse•cz>
> Date:   Thu Nov 30 15:35:44 2017 +0100
> 
>     futex: futex_wake_op, fix sign_extend32 sign bits

Thanks for letting me know, I've now queued it up to the needed trees.

greg k-h

      reply	other threads:[~2018-05-18  9:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180518081535.096308218@linuxfoundation.org>
2018-05-18  8:16 ` [PATCH 4.9 27/33] futex: Remove duplicated code and fix undefined behaviour Greg Kroah-Hartman
2018-05-18  8:30   ` Jiri Slaby
2018-05-18  9:01     ` Greg Kroah-Hartman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180518090141.GA10227@kroah.com \
    --to=gregkh@linuxfoundation$(echo .)org \
    --cc=arnd@arndb$(echo .)de \
    --cc=ben.hutchings@codethink$(echo .)co.uk \
    --cc=benh@kernel$(echo .)crashing.org \
    --cc=catalin.marinas@arm$(echo .)com \
    --cc=chris@zankel$(echo .)net \
    --cc=dalias@libc$(echo .)org \
    --cc=davem@davemloft$(echo .)net \
    --cc=deller@gmx$(echo .)de \
    --cc=dvhart@infradead$(echo .)org \
    --cc=fenghua.yu@intel$(echo .)com \
    --cc=ink@jurassic$(echo .)park.msu.ru \
    --cc=jcmvbkbc@gmail$(echo .)com \
    --cc=jejb@parisc-linux$(echo .)org \
    --cc=jonas@southpole$(echo .)se \
    --cc=jslaby@suse$(echo .)cz \
    --cc=linux-alpha@vger$(echo .)kernel.org \
    --cc=linux-arch@vger$(echo .)kernel.org \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-hexagon@vger$(echo .)kernel.org \
    --cc=linux-ia64@vger$(echo .)kernel.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-mips@linux-mips$(echo .)org \
    --cc=linux-parisc@vger$(echo .)kernel.org \
    --cc=linux-s390@vger$(echo .)kernel.org \
    --cc=linux-sh@vger$(echo .)kernel.org \
    --cc=linux-snps-arc@lists$(echo .)infradead.org \
    --cc=linux-xtensa@linux-xtensa$(echo .)org \
    --cc=linuxppc-dev@lists$(echo .)ozlabs.org \
    --cc=mattst88@gmail$(echo .)com \
    --cc=monstr@monstr$(echo .)eu \
    --cc=openrisc@lists$(echo .)librecores.org \
    --cc=paulus@samba$(echo .)org \
    --cc=peterz@infradead$(echo .)org \
    --cc=ralf@linux-mips$(echo .)org \
    --cc=rkuo@codeaurora$(echo .)org \
    --cc=rmk+kernel@armlinux$(echo .)org.uk \
    --cc=rth@twiddle$(echo .)net \
    --cc=schwidefsky@de$(echo .)ibm.com \
    --cc=shorne@gmail$(echo .)com \
    --cc=sparclinux@vger$(echo .)kernel.org \
    --cc=stable@vger$(echo .)kernel.org \
    --cc=stefan.kristiansson@saunalahti$(echo .)fi \
    --cc=tglx@linutronix$(echo .)de \
    --cc=tony.luck@intel$(echo .)com \
    --cc=vgupta@synopsys$(echo .)com \
    --cc=ysato@users$(echo .)sourceforge.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox