All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcin Slusarz <marcin.slusarz@gmail.com>
To: Dan Carpenter <error27@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
	eteo@redhat.com, netdev@vger.kernel.org
Subject: Re: Dereferencing freed memory bugs
Date: Sat, 28 Mar 2009 19:18:46 +0100	[thread overview]
Message-ID: <49CE6A06.7080008@gmail.com> (raw)
In-Reply-To: <a63d67fe0903240529v6a0e6b51pf67f8ad6dd6842c4@mail.gmail.com>

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

  parent reply	other threads:[~2009-03-28 18:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-24 12:29 Dereferencing freed memory bugs Dan Carpenter
2009-03-28 17:17 ` Marcin Slusarz
2009-03-28 17:31 ` Marcin Slusarz
2009-03-28 17:44 ` [PATCH] mtd: fix use after free in register_mtd_blktrans Marcin Slusarz
2009-03-28 17:53 ` Dereferencing freed memory bugs Marcin Slusarz
2009-03-28 18:18 ` Marcin Slusarz [this message]
2009-03-28 18:50 ` Marcin Slusarz
2009-03-28 19:12 ` Marcin Slusarz

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=49CE6A06.7080008@gmail.com \
    --to=marcin.slusarz@gmail.com \
    --cc=error27@gmail.com \
    --cc=eteo@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.