Re: [PATCH -stable] netfilter: nft_rbtree: fix locking

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

 



On Mon, Jun 29, 2015 at 04:00:53PM -0700, Greg KH wrote:
> On Sat, May 16, 2015 at 08:50:51PM +0200, Pablo Neira Ayuso wrote:
> > From: Patrick McHardy <kaber@xxxxxxxxx>
> > 
> > [ upstream commit 16c45eda96038aae848b6cfd42e2bf4b5e80f365 ]
> > 
> > Fix a race condition and unnecessary locking:
> > 
> > * the root rb_node must only be accessed under the lock in nft_rbtree_lookup()
> > * the lock is not needed in lookup functions in netlink context
> > 
> > Cc: <stable@xxxxxxxxxxxxxxx> # 3.18.x
> > Cc: <stable@xxxxxxxxxxxxxxx> # 3.19.x
> > Signed-off-by: Patrick McHardy <kaber@xxxxxxxxx>
> > Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
> > ---
> >  net/netfilter/nft_rbtree.c |    6 ++----
> >  1 file changed, 2 insertions(+), 4 deletions(-)
> 
> Also 4.0, right?  This showed up in Linus's tree in 4.1-rc1.

Yes please. thanks!
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



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