Re: Memory corruption with r8169 across several device revisions and kernels

2018-01-23 Thread Oliver Freyermuth
Am 23.01.2018 um 23:13 schrieb Francois Romieu: > > It helps. Can you try the snippet below ? It seems to fix the issue - I could not reproduce memory corruption anymore neither on an Ubuntu 17.10.1 live system (with patched kernel module) nor on my Gentoo system (4.14.12 with your patch applied)

Re: Memory corruption with r8169 across several device revisions and kernels

2018-01-23 Thread Oliver Freyermuth
Am 23.01.2018 um 16:28 schrieb David Miller: > Looking at how these DMA counters are handled, there appears to be a > requirement that the memory buffer is 64-byte aligned. > > [...] > > Therefore the driver needs to allocate "size + (64 - 1)" bytes and do > the 64-byte alignment of the CPU point

Re: Memory corruption with r8169 across several device revisions and kernels

2018-01-22 Thread Oliver Freyermuth
Dear Francois, other r8169 experts, Am 22.01.2018 um 01:09 schrieb Francois Romieu: > Are you able to retrieve the layout ? That is, does it appear to match: > > - r8169 hardware stats DMA buffer ? > TxOk, RxOk, TxErr, RxErr, ... > > - rtnl_link_stats ? > rx_packets, tx_packets, rx_bytes, t

Re: Memory corruption with r8169 across several device revisions and kernels

2018-01-21 Thread Oliver Freyermuth
Am 22.01.2018 um 01:09 schrieb Francois Romieu: > You said: > > Oliver Freyermuth : > [...] >> The values found in overwritten memory match those contained in >> /proc/self/net/dev for the realtek ethernet device. > > Are you able to retrieve the layout ? Th

Re: Memory corruption with r8169 across several device revisions and kernels

2018-01-21 Thread Oliver Freyermuth
Hi, Am 21.01.2018 um 21:48 schrieb Francois Romieu: > Oliver Freyermuth : > [...] > > Is it an AMD based system ? > No, all the systems on which I have observed this up to now are Intel-based. Two Haswell and one Sandy Bridge system. Cheers, Oliver

Memory corruption with r8169 across several device revisions and kernels

2018-01-20 Thread Oliver Freyermuth
Dear network experts, please redirect me if this is the wrong place. I have reproduced the following issue across three devices with different Realtek card revisions and different Distros (Debian 9, Ubuntu 17.04, Gentoo with kernels 4.9, 4.11.3, 4.14.12). It's safely reproducible with at lea