From: Justin Carlson <carlson@sibyte.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>,
engler@csl.Stanford.EDU (Dawson Engler)
Cc: linux-kernel@vger.kernel.org
Subject: Re: [CHECKER] free bugs in 2.4.4 and 2.4.4-ac8
Date: Thu, 24 May 2001 15:55:32 -0700 [thread overview]
Message-ID: <0105241559150L.01510@plugh.sibyte.com> (raw)
In-Reply-To: <E1533qI-0005jT-00@the-village.bc.nu>
In-Reply-To: <E1533qI-0005jT-00@the-village.bc.nu>
> > /u2/engler/mc/oses/linux/2.4.4-ac8/drivers/char/rio/rio_linux.c:1036:rio_init_datastructures: ERROR:FREE:1031:1036: WARN: Use-after-free of "RIOHosts"! set by 'kfree':1031
> > kfree (p->RIOPortp[i]);
> > rio_dprintk (RIO_DEBUG_INIT, "Not enough memory! %p %p %p %p %p\n",
> > Error --->
> > p, p->RIOHosts, p->RIOPortp, rio_termios, rio_termios);
>
> Not a bug - you need to teach your code that printf has formats that print the
> value of a pointer not dereference it
>
Take another look. p is potentially bogus here, meaning those p->RIOHosts and
p->RIOPortp references are bad.
-Justin
next prev parent reply other threads:[~2001-05-24 23:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-24 21:04 [CHECKER] free bugs in 2.4.4 and 2.4.4-ac8 Dawson Engler
2001-05-24 21:17 ` Alexander Viro
2001-05-24 22:01 ` Justin Carlson
2001-05-24 22:44 ` Alan Cox
2001-05-24 22:55 ` Justin Carlson [this message]
2001-05-24 23:16 ` Alan Cox
2001-05-24 23:17 ` David S. Miller
2001-05-25 15:21 ` Jeff Hartmann
2001-05-25 5:19 ` Greg KH
2001-05-25 17:59 ` Rik van Riel
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=0105241559150L.01510@plugh.sibyte.com \
--to=carlson@sibyte.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=engler@csl.Stanford.EDU \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox