From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: Use-after-free in ata_qc_issue Date: Sun, 22 Sep 2013 17:47:33 -0400 Message-ID: <20130922214733.GB27616@mtj.dyndns.org> References: <20130922163913.GE28571@htj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-ide-owner@vger.kernel.org To: Dmitry Vyukov Cc: linux-ide@vger.kernel.org, Andrey Konovalov , Kostya Serebryany , Marc C , aaron.lu@intel.com, linux-scsi , "James E.J. Bottomley" List-Id: linux-scsi@vger.kernel.org Hello, On Sun, Sep 22, 2013 at 11:59:53AM -0700, Dmitry Vyukov wrote: > I've noticed that free happens in scsi_error_handler thread, so maybe > a timeout or some other error condition is involved here. > It is possible that timeout happens while the request is still being > in process of submitting (in ata_scsi_queuecmd)? Yeah, could be. IIRC, there's still race condition in block / scsi timeout handling. Hmmm... -- tejun