From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: Null pointer dereference in nf_nat_move_storage(), kernel 2.6.23.1 Date: Thu, 15 Nov 2007 16:02:00 -0800 (PST) Message-ID: <20071115.160200.255764472.davem@davemloft.net> References: <20071115120658.GA17667@2ka.mipt.ru> <20071115.155509.107545186.davem@davemloft.net> <473CDD96.6090102@trash.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: johnpol@2ka.mipt.ru, cebbert@redhat.com, netfilter-devel@vger.kernel.org, netdev@vger.kernel.org To: kaber@trash.net Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:57798 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1761584AbXKPACB (ORCPT ); Thu, 15 Nov 2007 19:02:01 -0500 In-Reply-To: <473CDD96.6090102@trash.net> Sender: netfilter-devel-owner@vger.kernel.org List-Id: netfilter-devel.vger.kernel.org From: Patrick McHardy Date: Fri, 16 Nov 2007 01:00:22 +0100 > David Miller wrote: > > From: Evgeniy Polyakov > > Date: Thu, 15 Nov 2007 15:06:59 +0300 > > > >> Please test attached patch. > >> > >> This routing is called each time hash should be replaced, nf_conn has > >> extension list which contains pointers to connection tracking users > >> (like nat, which is right now the only such user), so when replace takes > >> place it should copy own extensions. Loop above checks for own > >> extension, but tries to move higer-layer one, which can lead to above > >> oops. > >> > >> Not tested, derived from code observation only. > >> > >> Signed-off-by: Evgeniy Polyakov > > > > It looks extremely correct to me. Therefore I'm going to apply > > this and queue it up for -stable. > > > > Thanks Evgeniy, keep up the excellent work! > > > > Patrick, please let me know if you have any objections. > > The patch looks fine, thanks. I was just waiting for confirmation > from Chuck. I have to hold off the -stable submission until it hits Linus's tree anyways, so I'll make sure we see test feedback by that time as well.