Re: [Bug 14563] SCSI tape driver: Spurious EIO and kernel BUG

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 17 Nov 2009, linux-kernel@xxxxxxxxxxxx wrote:

> FUJITA Tomonori wrote:
> >>> Performing tape backups using amanda 2.6.0-p2 [using 512kB block size] leads to
> >>> spurious 'EIO' errors when writing to the tape; most of the time a kernel BUG
> >>> is hit shortly thereafter.
> >>>
> >> Can you try this with debugging enabled in st? (Edit st.c to
> >> '#define DEBUG 1' and recompile the module.) This might give more 
> >> information about the source of the EIO and the code path it uses.
> > 
> > Sorry about that bug.
> > 
> > Looks like that st drivers messes up memory management but the log
> > doesn't give enough information.
> > 
> > As Kai suggested, please enable the debug option and send the new log.
> 
> I've attached the relevant information to
> http://bugzilla.kernel.org/show_bug.cgi?id=14563
> 
Thanks for the logs. I was hoping that they would show why that EIO 
happens. However, they do give other probably useful information.

I don't have enough energy tonight to experiment (sleep deprived ;-) but I 
have looked at the output and may have found something. The buffer size 
516096 B = 504 kB = 126 * 4096 looks suspicious, especially with 512 kB 
fixed blocks. In this case the buffer should be at least one block. This 
is given to enlarge_buffer() as argument.

Looking at enlarge_buffer(), it seems to me that if the allocation loop 
near the end fails with segs < max_segs before got > new_size, we have a 
bug: the allocation actually fails but it is returned as success. However, 
I don't have any explanation why this would happen.

I will continue tomorrow (after work).

Kai

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux