Bug 17582

Summary: Realtek driver crashes when copying a lot of data via NFS
Product: Base System Reporter: haering <haering>
Component: kernAssignee: Bill Paul <wpaul>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-RELEASE   
Hardware: Any   
OS: Any   

Description haering 2000-03-24 17:40:01 UTC
kernel panic when trying to copy large files via NFS

error message "no memory for tx list" is triggered just before the kernel
crashes

the error message printf-ed in if_rl.c, function rl_encap().

Fix: 

apply the patch from 
http://www.informatik.tu-muenchen.de/~haering/rl_patch.tar.gz
which checks the return value of rl_encap() instead of cheerfully 
ignoring the error ;-) This was a quick hack last night, and *not* a
patch to really get rid of the bug(s) in the driver.
How-To-Repeat: I could crash my system in 5 of 5 cases by copying the XFree86 
package over NFS (ca. 40 MB).

My output of dmesg is in 
http://www.informatik.tu-muenchen.de/~haering/rl_patch.tar.gz
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-03-29 11:06:10 UTC
Responsible Changed
From-To: freebsd-bugs->wpaul

Cool, a network driver PR with a patch!  Bill, this one's yours. 

Comment 2 Bill Paul freebsd_committer freebsd_triage 2000-03-29 21:09:40 UTC
State Changed
From-To: open->closed


I applied a fix of my own in the same vein as your patch (to both -current 
and 4.0-STABLE). There's not much the driver can do if it can't get an mbuf 
for transmission except wait until more mbufs become available. If this 
is happening on a GENERIC kernel, you can try increasing NMBCLUSTERS.