lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070528195422.GA4927@electric-eye.fr.zoreil.com>
Date:	Mon, 28 May 2007 21:54:22 +0200
From:	Francois Romieu <romieu@...zoreil.com>
To:	Andrew Paprocki <andrew@...iboo.com>
Cc:	netdev@...r.kernel.org
Subject: Re: r8169 in 2.6.18 silently corrupting data, 2.6.22-rc3 link not detected at all

Andrew Paprocki <andrew@...iboo.com> :
[...]
> This struck me as strange, so I checked and it is directly connected
> to the MAC addr of the ethernet card: 00:0c:76:ae:b5:16
> 
> I figured that a newer kernel might fix this issue, so I built
> 2.6.22-rc3 and under that kernel the r8169 device doesn't work at all.
> It never detects a valid link. I insmod'd the driver with debug=16 and
> all I see it printing is "eth0: PHY reset until link up" on a timer.

Ok.

You will not pollute the console much with a single bit of debug.

> I see some patches flying around for r8169.c, but I'm not sure if
> either of these two cases are known/fixed

I am not sure either. With the usual luck, I could bet that an update
will make the alignment issue go away while introducing a link negotiation
regression.

> Also, this is a gigabit NIC on a gig-e switched network, yet mii-tool
> only reports 10mb-hd speed... ?

Auto-negotiation probably failed. Your ethernet cables are fine, aren't they ?

Please:
- send a 'lspci -vvx' of the host
- try 2.6.22-rc3 +
  http://www.fr.zoreil.com/people/francois/misc/20070527-2.6.22-rc3-r8169.patch
- send a complete dmesg (2.6.18 and 2.6.22-rc3 patched)
- send 'mii-tool -vv' and 'ethtool -S' for a patched 2.6.22-rc3
- send .config (one never knows...)

[...]
> # ethtool -S eth0
> NIC statistics:
>     tx_packets: 4397
>     rx_packets: 6701
>     tx_errors: 1
>     rx_errors: 999
>     rx_missed: 0
>     align_errors: 25770
                    ^^^^^
~2/3 of misaligned packets. Wow. Same thing with both interfaces ?

If the patched kernel does not detect the link, restart autonegotiation
with mii-tool.

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ