Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Nov 2007 04:55:31 GMT
From:      Kip Macy <kmacy@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 128497 for review
Message-ID:  <200711020455.lA24tVkg076561@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=128497

Change 128497 by kmacy@kmacy:storage:toestack on 2007/11/02 04:54:47

	print the address of the mbuf we're discarding as it may be corrupted from use after free

Affected files ...

.. //depot/projects/toestack/sys/net/if_ethersubr.c#6 edit

Differences ...

==== //depot/projects/toestack/sys/net/if_ethersubr.c#6 (text+ko) ====

@@ -684,7 +684,7 @@
 	etype = ntohs(eh->ether_type);
 
 	if ((m->m_flags & M_PKTHDR) == 0) 	
-		if_printf(ifp, "discard frame w/o packet header\n");
+		if_printf(ifp, "discard frame w/o packet header m=%p\n", m);
 	if (m->m_len < ETHER_HDR_LEN)
 		if_printf(ifp, "discard frame w/o leading ethernet "
 		    "header (len %u pkt len %u)\n",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711020455.lA24tVkg076561>