From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH] Prevent crash on ip_conntrack removal Date: Sat, 21 Aug 2004 17:10:20 +0200 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <412765DC.30600@trash.net> References: <20040818091352.GB6507@suse.de> <20040819101159.GC3921@sunbeam.de.gnumonks.org> <20040819071846.2d0d6120.davem@redhat.com> <4124BF7E.7090304@trash.net> <20040819081428.5243e314.davem@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: laforge@netfilter.org, okir@suse.de, netdev@oss.sgi.com, netfilter-devel@lists.netfilter.org Return-path: To: "David S. Miller" In-Reply-To: <20040819081428.5243e314.davem@redhat.com> Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netdev.vger.kernel.org David S. Miller wrote: >I have a better idea. > >Instead of setting skb->dst to NULL, it should set it to some >NULL destination entry which just frees up the packets. Then >no special case handling. skb->dst==NULL packets should never >get into the fragment queue to begin with. > The problem is that conntrack unload can cause packets without a dst_entry to appear in ip_local_deliver, which is already after the call to dst_input. Regards Patrick