[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100315134526.0b2e3637.akpm@linux-foundation.org>
Date: Mon, 15 Mar 2010 13:45:26 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Dan Carpenter <error27@...il.com>
Cc: Adaptec OEM Raid Solutions <aacraid@...ptec.com>,
"James E.J. Bottomley" <James.Bottomley@...e.de>,
Yang Hongyang <yanghy@...fujitsu.com>,
OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>,
Alan Cox <alan@...ux.intel.com>, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [patch] dpt_i20: several use after free issues
On Mon, 15 Mar 2010 11:26:56 +0300
Dan Carpenter <error27@...il.com> wrote:
> adpt_i2o_delete_hba() calls kfree() so we have to save "pHba->next"
> before calling it. Also inside adpt_i2o_delete_hba() itself, there
> was another use after free bug which I fixed by moving the kfree()
> down a line.
erk. This code should be crashing most gruesomely. I wonder why it
doesn't.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists