amd64/122970: RealTek 8168/8111B couses system crash

Bartosz Nowicki b.nowicki at admin.net.pl
Mon Apr 21 19:10:01 UTC 2008


>Number:         122970
>Category:       amd64
>Synopsis:       RealTek 8168/8111B couses system crash
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-amd64
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 21 19:10:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Bartosz Nowicki
>Release:        7.0-STABLE
>Organization:
Admin.net.pl
>Environment:
FreeBSD ps.polskiswiat.com 7.0-STABLE FreeBSD 7.0-STABLE #3: Fri Apr 18 00:26:46 UTC 2008     root at ps.polskiswiat.com:/usr/obj/usr/src/sys/polskiswiat  amd64

>Description:
Network driver causes strange behaviour.

Symptoms are:

- connection drops after too large packet. For example ps ax command under ssh throws user from console exactly after PID 30.
- files served over HTTP are cut down to random length
- server hangs randomly
- network card seeds random sourced mac packages
- strange logs output:

Apr 21 13:02:44 ps kernel: a
Apr 21 13:03:16 ps kernel: f
Apr 21 13:17:45 ps kernel: c
Apr 21 13:17:45 ps kernel: .
Apr 21 13:18:00 ps kernel: c
Apr 21 13:25:23 ps kernel: 
Apr 21 13:25:25 ps kernel: .
Apr 21 13:25:26 ps kernel: 5
Apr 21 13:25:27 ps kernel: 
Apr 21 13:25:36 ps kernel: 8
Apr 21 13:25:47 ps kernel: t
Apr 21 13:26:26 ps kernel: 9
Apr 21 13:33:59 ps kernel: P
Apr 21 13:35:54 ps kernel: i
Apr 21 13:41:57 ps kernel: 1
Apr 21 13:44:16 ps kernel: <<11101>i0pf>wi:p f5w0:0  5A0c0c eApct cTeCpPt 7 8T.C4P7 .7458.6.:4870. 4859..62:3810 .6260.31.110.72:06320.7200 6ou:t4 9v5i4a2  roeu0t
Apr 21 13:44:16 ps kernel: 
Apr 21 13:44:33 ps kernel: 0
Apr 21 13:44:33 ps kernel: o
Apr 21 13:46:34 ps kernel: 
Apr 21 13:47:16 ps kernel: 
Apr 21 13:47:16 ps kernel: 0
Apr 21 13:47:34 ps kernel: 0
Apr 21 13:47:35 ps kernel: <1<101>10i>ippffww::  550000  AAcccceepptt  TTCCPP  7788..4477..4455..66::808 06 66.61.11.12.0220.22.0260:65:04098960 6o uotu tv ivai ar e0r
Apr 21 13:47:35 ps kernel: e
Apr 21 13:47:35 ps kernel: 0
Apr 21 13:47:53 ps kernel: .
Apr 21 13:47:53 ps kernel: 7
Apr 21 13:47:53 ps kernel: 4
Apr 21 13:52:11 ps kernel: 1
Apr 21 13:53:34 ps kernel: 2
Apr 21 13:54:11 ps kernel: 

Hardware causing this problems is :

re0: <RealTek 8168/8111B PCIe Gigabit Ethernet> port 0xd800-0xd8ff mem 0xfeaff000-0xfeafffff irq 19 at device 0.0 on pci2
rgephy0: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus0
Apr 21 14:25:16 ps kernel: rgephy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
re0: Ethernet address: 00:1d:92:63:3e:2f
re0: [FILTER]
re0: [FILTER]


We tried to patch driver with HEAD patch as in this thread - http://groups.google.com.ua/group/lucky.freebsd.amd64/browse_thread/thread/b40f82fe8632bb54 , with no success. Machine have to be rebooted every day to keep everything in proper place.

Hadrware is working fine, worked under linux before without any glitches.
>How-To-Repeat:
Install 64 bit 7.0-STABLE on AMD Athlon(tm) 64 X2 Dual Core Processor 6000 with RealTek 8168 network card. Use 100 mbit connection, use it as a web server for a day (with low or moderate traffic). 
After a day try to use SSH. Download some jpgs from webserver - it will be closer to /dev/urandom not jpeg (no header, 22kb downloaded file instead of 70 kb original one) and so on.
>Fix:
Problem MIGHT be fixed using this patch http://people.freebsd.org/~yongari/re/re.HEAD.patch  (or these two patches http://people.freebsd.org/~yongari/re/if_re.c + http://people.freebsd.org/~yongari/re/if_rlreg.h)  but it doesn't work in our case.


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-amd64 mailing list