From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Slusarz Subject: Re: Dereferencing freed memory bugs Date: Sat, 28 Mar 2009 19:18:46 +0100 Message-ID: <49CE6A06.7080008@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: LKML , eteo@redhat.com, netdev@vger.kernel.org To: Dan Carpenter Return-path: Received: from fg-out-1718.google.com ([72.14.220.156]:52849 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752853AbZC1STB (ORCPT ); Sat, 28 Mar 2009 14:19:01 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Dan Carpenter pisze: > I added a check to smatch (http://repo.or.cz/w/smatch.git/) to check > for when we dereference > freed memory. > > (...) > net/netfilter/nfnetlink_log.c +341 __nfulnl_flush(5) 'inst' > (...) I think it's a false positive. In __nfulnl_flush we expect that caller already holds a reference to inst and it looks like all callers do it. Marcin