List Info

Thread: Re: kern/123741: kernel panic due to netgraph mpd




Re: kern/123741: kernel panic due to netgraph mpd
country flaguser name
United States
2008-05-17 04:20:03
The following reply was made to PR kern/123741; it has been
noted by GNATS.

From: Alexander Motin <mavFreeBSD.org>
To: bug-followupFreeBSD.org,  mimielliotgmail.com
Cc:  
Subject: Re: kern/123741: [netgraph] [panic] kernel panic
due to netgraph
 mpd
Date: Sat, 17 May 2008 11:15:52 +0300

 This is a multi-part message in MIME format.
 --------------070906020506060104050902
 Content-Type: text/plain; charset=KOI8-R
 Content-Transfer-Encoding: 7bit
 
 It looks like crash due to unchecked netgraph data items
exhaustion.
 Attached patch should fix this crash, but problem may
remain in some
 other symptoms. It would be good to investigate the reason
of this
 exhaustion. It could be or just high netgraph load or some
resource leak.
 
 -- 
 Alexander Motin
 
 --------------070906020506060104050902
 Content-Type: text/plain;
  name="ng_socket.c.enomem.patch"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="ng_socket.c.enomem.patch"
 
 --- ng_socket.c.prev	2008-03-11 23:58:48.000000000 +0200
 +++ ng_socket.c	2008-05-17 10:36:46.000000000 +0300
  -732,7 +732,8  ng_connect_data(struct sockaddr *nam, st
  
  	sap = (struct sockaddr_ng *) nam;
  	/* The item will hold the node reference. */
 -	item = ng_package_data(NULL, NG_WAITOK);
 +	if ((item = ng_package_data(NULL, NG_WAITOK)) == NULL)
 +		return (ENOMEM);
  
  	if ((error = ng_address_path(NULL, item, 
sap->sg_data, 0)))
  		return (error); /* item is freed on failure */
 
 --------------070906020506060104050902--
_______________________________________________
freebsd-netfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to
"freebsd-net-unsubscribefreebsd.org"

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )