From owner-freebsd-current Wed Mar 22 17:49:38 2000 Delivered-To: freebsd-current@freebsd.org Received: from fgwmail6.fujitsu.co.jp (fgwmail6.fujitsu.co.jp [192.51.44.36]) by hub.freebsd.org (Postfix) with ESMTP id 1D6AC37B719 for ; Wed, 22 Mar 2000 17:49:36 -0800 (PST) (envelope-from shin@nd.net.fujitsu.co.jp) Received: from m2.gw.fujitsu.co.jp by fgwmail6.fujitsu.co.jp (8.9.3/3.7W-MX0002-Fujitsu Gateway) id KAA08441; Thu, 23 Mar 2000 10:49:29 +0900 (JST) (envelope-from shin@nd.net.fujitsu.co.jp) Received: from chisato.nd.net.fujitsu.co.jp by m2.gw.fujitsu.co.jp (8.9.3/3.7W-0003-Fujitsu Domain Master) id KAA00909; Thu, 23 Mar 2000 10:49:27 +0900 (JST) Received: from localhost (dhcp7173.nd.net.fujitsu.co.jp [10.18.7.173]) by chisato.nd.net.fujitsu.co.jp (8.8.5+2.7Wbeta5/3.3W8chisato-970826) with ESMTP id KAA29865; Thu, 23 Mar 2000 10:49:26 +0900 (JST) To: imp@village.org Cc: ilmar@ints.ru, nms@otdel-1.org, freebsd-current@FreeBSD.ORG Subject: Re: -current sudden panics :( In-Reply-To: <200003222201.PAA33948@harmony.village.org> References: <200003222201.PAA33948@harmony.village.org> X-Mailer: Mew version 1.94 on Emacs 20.4 / Mule 4.0 (HANANOEN) X-Prom-Mew: Prom-Mew 1.93.4 (procmail reader for Mew) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000323105025W.shin@nd.net.fujitsu.co.jp> Date: Thu, 23 Mar 2000 10:50:25 +0900 From: Yoshinobu Inoue X-Dispatcher: imput version 990905(IM130) Lines: 40 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, > : This is driver for ed(ne2000) cards. I have realtek(rl driver). I took a > : look at his source and didn't find such strings. There is comment there > : about cutting off mbuf header before passing it to ether_input - what's > : this? > > I applied a similar patch to the end of the rl packet handling > routine. It didn't solve my arp crashes, however. It is almost as > if sometimes the rl driver passes a packet to ether_input and then > does bad things to it behind the scenes... I've not had a lot of time > to try to track down why this does what it does. > > Warner I would like to narrow down the problem more and could you please try if this patch stop the problem or not? (The m_pullup() is recently added to if_rl.c. It should not be harmful, but I suspect that this might have invoked another hidden bug.) Yoshinobu Inoue Index: if_rl.c =================================================================== RCS file: /home/ncvs/src/sys/pci/if_rl.c,v retrieving revision 1.38 diff -u -r1.38 if_rl.c --- if_rl.c 1999/12/28 06:04:29 1.38 +++ if_rl.c 2000/03/23 01:35:02 @@ -1130,7 +1130,8 @@ m_adj(m, RL_ETHER_ALIGN); m_copyback(m, wrap, total_len - wrap, sc->rl_cdata.rl_rx_buf); - m = m_pullup(m, sizeof(struct ether_header)); + if (m->m_len < sizeof(struct ether_header)) + m = m_pullup(m, sizeof(struct ether_header)); if (m == NULL) { printf("rl%d: m_pullup failed", sc->rl_unit); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message