From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shaohua Li Subject: Re: raid5 trim OOPS / use after free? Date: Sat, 19 Oct 2013 06:54:49 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT Return-path: In-Reply-To: Content-Language: en-US Content-ID: <728EDE8D2C412D4AA13ADC8CA2778AAF@fusionio.com> Sender: linux-raid-owner@vger.kernel.org To: Jes Sorensen , "stan@hardwarefreak.com" Cc: "linux-raid@vger.kernel.org" , NeilBrown , Jeff Moyer List-Id: linux-raid.ids On 10/18/13 2:03 PM, "Jes Sorensen" wrote: >Stan Hoeppner writes: >> On 10/17/2013 4:58 PM, Jes Sorensen wrote: >>> Hi, >>> >>> I have been trying out the trim code in recent kernels and I am >>> consistently seeing crashes with the raid5 trim implementation. >>> >>> I am seeing 3-4 different OOPS outputs which are very different in >>>their >>> output. This makes me suspect this is a memory corruption of use after >>> free problem? >>> >>> Basically I have a system with an AHCI controller and 4 SATA SSD drives >>> hooked up to it. I create a raid5 and then run mkfs.ext4 on it and the >>> fireworks display starts. >>> >>> I first saw this with an older kernel with some backports applied, but >>>I >>> am able to reproduce this with the current top of tree out of Linus' >>> tree. >>> >>> Any ideas? >> >> See a nearly identical problem posted to this list yesterday: >> >> http://www.spinics.net/lists/raid/msg44686.html > >Looks the same - I believe I have seen that variation of the problem as >well. Ok, looks we have some problems with request merge in SCSI. I just posted some patches to linux-raid maillist, please test and report back. Thanks, Shaohua