Re: recent current panic

From: Tim Robbins <tjr_at_freebsd.org>
Date: Thu, 27 Nov 2003 19:31:49 +1100
On Wed, Nov 26, 2003 at 03:00:35PM +0300, ?????? ????????? ?????????? wrote:

> i got a panic on recent -CURRENT:
> 
> # tcpdump -i lo0 port 23 &
> [1] 507
> listening on lo0

This is a known bug; silby_at_ is working to fix "lo" and the rest of the
affected network drivers. See PR kern/59576.

Here's the local patch to if_loop.c I'm using until this gets fixed.
I've patched if_tun.c similarly.

Index: if_loop.c
===================================================================
RCS file: /home/ncvs/src/sys/net/if_loop.c,v
retrieving revision 1.92
diff -u -r1.92 if_loop.c
--- if_loop.c	20 Nov 2003 20:07:37 -0000	1.92
+++ if_loop.c	27 Nov 2003 08:18:33 -0000
_at__at_ -262,6 +262,7 _at__at_
 			 * will only read from the mbuf (i.e., it won't
 			 * try to free it or keep a pointer a to it).
 			 */
+			bzero(&m0, sizeof(m0));
 			m0.m_next = m;
 			m0.m_len = 4;
 			m0.m_data = (char *)&af;
Received on Wed Nov 26 2003 - 23:31:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:31 UTC