kern/79342: When looking for an unused port number for bind or connect, if low & high port range are equal, kernel can trap in divide by zero error

Mike Silbersack silby at silby.com
Wed Mar 30 12:30:16 PST 2005


The following reply was made to PR kern/79342; it has been noted by GNATS.

From: Mike Silbersack <silby at silby.com>
To: Maxim Konovalov <maxim at macomnet.ru>
Cc: Anjali Kulkarni <anjali at juniper.net>, bug-followup at freebsd.org
Subject: Re: kern/79342: When looking for an unused port number for bind or
 connect, if low & high port range are equal, kernel can trap in divide by
 zero error
Date: Wed, 30 Mar 2005 14:28:15 -0600 (CST)

 On Wed, 30 Mar 2005, Maxim Konovalov wrote:
 
 > It's not perfect because it should turn random port allocation off if
 > the diapason of ports is small but I am not sure yet we need an
 > additional sysctl for that.  Mike, what is your opinion?
 
 If the port range is very small, turning random port allocation off makes 
 sense.  Since we'll have to do a patch either way, we might as well make 
 that change.
 
 Mike "Silby" Silbersack


More information about the freebsd-bugs mailing list