[lkml]   [2012]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: memcpy() crash on x86-64 (reproducible)
On Mon, Mar 19, 2012 at 11:42 AM, Paulius Zaleckas
<> wrote:
> When dumping registers with 'ethtool -d <interface>' my PC freezes
> (99% reproducible).
> Only hard reset helps. My network card uses r8169 driver.
> It uses memcpy_fromio() to copy PCI space registers to buffer.
> If I change it to simple for(...) cycle with readl() it does NOT crash
> and works as expected.
> This happens with my work PC and the same happens on my colleagues
> identical PC with CPU:
> Intel(R) Core(TM) i7-2700K CPU @ 3.50GHz
> However this crash does not happen on my home PC with AMD Phenom CPU.
> It also has realtek network card and uses the same r8169 driver.
> I know how to compile :) and I am willing to help find and fix this bug.

I have tried different versions of memcpy available in kernel:
__memcpy() - crashes
memcpy_c() - crashes
memcpy_c_e() - works as expected
__inline_memcpy() - works as expected

About crash: actually PC freezes for ~20s, then unfreezes, but
responds very slowly and after ~1min freezes completely.
One time I was able to see dmesg output and there was
backtrace about some process stuck for too long and then
it switched to some different timing source because hpet was

 \ /
  Last update: 2012-03-20 17:21    [W:0.023 / U:3.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site