All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jesper Juhl <jj@chaosbits.net>
To: Andy Walls <awalls@md.metrocast.net>
Cc: Dan Carpenter <error27@gmail.com>,
	linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org,
	Jarod Wilson <jarod@redhat.com>,
	Jerome Brock <jbrock@users.sourceforge.net>,
	Mauro Carvalho Chehab <mchehab@redhat.com>,
	Gerd Knorr <kraxel@goldbach.in-berlin.de>,
	Jarod Wilson <jarod@wilsonet.com>,
	Greg Kroah-Hartman <gregkh@suse.de>,
	Thomas Reitmayr <treitmayr@yahoo.com>,
	Michal Kochanowicz <mkochano@pld.org.pl>,
	Christoph Bartelmus <lirc@bartelmus.de>,
	Mark Weaver <mark@npsl.co.uk>,
	Ulrich Mueller <ulrich.mueller42@web.de>,
	Stefan Jahn <stefan@lkcc.org>
Subject: Re: [PATCH] staging; lirc, zilog: put_ir_rx may free 'rx' which can lead to double free
Date: Fri, 29 Jul 2011 12:26:51 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LNX.2.00.1107291225560.22532@swampdragon.chaosbits.net> (raw)
In-Reply-To: <f6f0d669-39e8-4435-839d-9c5525cbd8e9@email.android.com>

On Fri, 29 Jul 2011, Andy Walls wrote:

> Dan Carpenter <error27@gmail.com> wrote:
> 
> >On Thu, Jul 28, 2011 at 11:49:51PM +0200, Jesper Juhl wrote:
> >> If calling put_ir_rx(rx, true); in
> >> drivers/staging/lirc/lirc_zilog.c::ir_probe() returns true (1) then
> >it
> >> means that it has freed it's first argument. Subsequently jumping to
> >> 'out_put_xx' will cause us to call put_ir_rx() once more since 'rx'
> >is
> >> not zero - leading to a double free.
> >
> >It would be better to just remove the first call to put_ir_rx().
> >
> >regards,
> >dan carpenter
> 
> Jesper,
> 
> Could you forward your original patch email to me?  I never got it.
> 
> I was the one who added all the new ref counting to lirc_zilog and it was not fun to get right (well at least what I thought was right...).
> 

Sure. I've just forwarded both the original patch mail and the mail with 
the updated version to  Andy Walls <awalls@md.metrocast.net>

-- 
Jesper Juhl <jj@chaosbits.net>       http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.


  reply	other threads:[~2011-07-29 10:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-28 21:49 [PATCH] staging; lirc, zilog: put_ir_rx may free 'rx' which can lead to double free Jesper Juhl
2011-07-29  6:08 ` Dan Carpenter
2011-07-29  9:14   ` Jesper Juhl
2011-07-29 10:03   ` Andy Walls
2011-07-29 10:26     ` Jesper Juhl [this message]
2011-07-31 12:42   ` Andy Walls
2011-07-31 12:49   ` Andy Walls

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=alpine.LNX.2.00.1107291225560.22532@swampdragon.chaosbits.net \
    --to=jj@chaosbits.net \
    --cc=awalls@md.metrocast.net \
    --cc=devel@driverdev.osuosl.org \
    --cc=error27@gmail.com \
    --cc=gregkh@suse.de \
    --cc=jarod@redhat.com \
    --cc=jarod@wilsonet.com \
    --cc=jbrock@users.sourceforge.net \
    --cc=kraxel@goldbach.in-berlin.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lirc@bartelmus.de \
    --cc=mark@npsl.co.uk \
    --cc=mchehab@redhat.com \
    --cc=mkochano@pld.org.pl \
    --cc=stefan@lkcc.org \
    --cc=treitmayr@yahoo.com \
    --cc=ulrich.mueller42@web.de \
    /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.