From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Lynch Subject: Re: Memory corruption & SCSI in 2.6.15 Date: Mon, 12 Dec 2005 15:01:55 -0500 Message-ID: <20051212200155.GC19599@localhost.localdomain> References: <1134371606.6989.95.camel@gaston> <439DC9E4.6030508@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from api.pobox.com ([208.210.124.75]:65497 "EHLO thorn.pobox.com") by vger.kernel.org with ESMTP id S932192AbVLLUCD (ORCPT ); Mon, 12 Dec 2005 15:02:03 -0500 Content-Disposition: inline In-Reply-To: <439DC9E4.6030508@us.ibm.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Brian King Cc: Benjamin Herrenschmidt , Andrew Morton , Linux Kernel list , Paul Mackerras , Jens Axboe , Linus Torvalds , SCSI Mailing List Brian King wrote: > Benjamin Herrenschmidt wrote: > >Hi ! > > > >Current -git as of today (that is 2.6.15-rc5 + the batch of fixes Linus > >pulled after his return) was dying in weird ways for me on POWER5. I had > >the good idea to activate slab debugging, and I now see it detecting > >slab corruption as soon as the IPR driver initializes. > > Please try the attached patch. There appears to be a double free going on > in the scsi scan code. There is a direct call to scsi_free_queue and then > the following put_device calls the release function, which also frees > the queue. Tested against 2.6.15-rc5, seems to fix it, thanks. Nathan