Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Sep 2018 16:45:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 210726] tcp connect() can return invalid EADDRINUSE
Message-ID:  <bug-210726-7501-T8Z69I4xc9@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-210726-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-210726-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210726

--- Comment #14 from Bjoern A. Zeeb <bz@FreeBSD.org> ---
Ok,

trying to summarise to get the exact case right as the suggested patch looks
not quite right.  There are too many (corner) cases to consider.

two jails, same single IP address.

In each jail a program tries to establish a connection and has bound a local
source address or not, but must not have bound a local port number.

On connect() to a local or remote address and port there may be a case that=
 two
applications in two different jails get an implicit bind to the same local =
port
number out of which one succeeds and one fails?  So one connect call succee=
ds
and one fails?


It is not yet fully understood if the same could possibly happen between the
base system and a jail, in which case it is assumed that the connect() insi=
de
the jail would be the one always failing?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210726-7501-T8Z69I4xc9>