Got the crash dump... now what?

Matthew Dillon dillon at apollo.backplane.com
Fri Dec 17 13:19:41 PST 2004


:Yes.  Shutting down or rebooting.  Sorry I forgot to mention that detail.
:
:jm

    That's what I thought.  Ok, this patch should stop the panics from 
    occuring, I'll commit it over the weekend.

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>

Index: ip_input.c
===================================================================
RCS file: /cvs/src/sys/netinet/ip_input.c,v
retrieving revision 1.37
diff -u -r1.37 ip_input.c
--- ip_input.c	30 Nov 2004 19:21:26 -0000	1.37
+++ ip_input.c	17 Dec 2004 21:16:04 -0000
@@ -747,6 +747,8 @@
 	 */
 	if (m->m_pkthdr.rcvif->if_flags & IFF_BROADCAST) {
 		TAILQ_FOREACH(ifa, &m->m_pkthdr.rcvif->if_addrhead, ifa_link) {
+			if (ifa->ifa_addr == NULL) /* shutdown/startup race */
+				continue;
 			if (ifa->ifa_addr->sa_family != AF_INET)
 				continue;
 			ia = ifatoia(ifa);





More information about the Kernel mailing list