login
Header Space

 
 

Re: File corruption when using kernels 2.6.18+

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pekka Enberg <penberg@...>
Cc: Neil Romig <neil@...>, <linux-kernel@...>, <hyoshiok@...>, Andrew Morton <akpm@...>
Date: Wednesday, October 3, 2007 - 3:22 pm

On Wed, 3 Oct 2007, Pekka Enberg wrote:


I doubt it's a CPU bug. It's more likely a chipset or motherboard bug 
around the CPU. The patterns for the original "cp" corruption that Neil 
posted seem to be:

	   File offset		correct		corrupt
	 decimal      hex
	======== ========
	  642470 0009cda6	'm' 0x6D	'o' 0x6f
	  972198 000ed5a6	'i' 0x69	'a' 0x61
	 1243686 0012fa26	's' 0x73	'c' 0x63
	 1676846 0019962e	't' 0x74	'`' 0x64
	 1907974 001d1d06	' ' 0x20	'(' 0x28
	...

and since it's apparently about using the uncached accesses, it's 
interesting that the low three bits are identical in all those corruptions 
(they also seem to be single-bit errors in the actual byte-value, although 
the bit is not the same). If the external bus is 64 bits (?), that would 
say that it's one particular byte lane that is dodgy.

I would bet that the reason the intel-optimized memcpy triggers this is 
that the non-temporal stores just means that you go out directly on the 
bus, and it probably just shows a weakness in the chipset or bus that 
doesn't show with the normal cacheline accesses.

			Linus
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
File corruption when using kernels 2.6.18+, Neil Romig, (Sun Sep 30, 11:40 am)
Re: File corruption when using kernels 2.6.18+, Chuck Ebbert, (Tue Oct 2, 6:30 pm)
Re: File corruption when using kernels 2.6.18+, Pekka Enberg, (Sun Sep 30, 12:29 pm)
Re: File corruption when using kernels 2.6.18+, Neil Romig, (Tue Oct 2, 5:05 pm)
Re: File corruption when using kernels 2.6.18+, Pekka Enberg, (Wed Oct 3, 1:18 am)
Re: File corruption when using kernels 2.6.18+, Neil Romig, (Wed Oct 3, 2:42 pm)
Re: File corruption when using kernels 2.6.18+, Pekka Enberg, (Wed Oct 3, 2:48 pm)
Re: File corruption when using kernels 2.6.18+, Linus Torvalds, (Wed Oct 3, 3:22 pm)
Re: File corruption when using kernels 2.6.18+, Pekka Enberg, (Wed Oct 3, 3:35 pm)
Re: File corruption when using kernels 2.6.18+, Alan Cox, (Wed Oct 3, 4:30 pm)
Re: File corruption when using kernels 2.6.18+, Neil Romig, (Thu Oct 4, 2:34 pm)
Re: File corruption when using kernels 2.6.18+, Linus Torvalds, (Wed Oct 3, 3:54 pm)
Re: File corruption when using kernels 2.6.18+, Hiro Yoshioka, (Wed Oct 3, 9:11 pm)
speck-geostationary