Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Apr 2004 00:32:30 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Ryan Sommers <ryans@gamersimpact.com>
Cc:        current@freebsd.org
Subject:   Re: Panic from bad length parameter in bind (Possible DOS attack)
Message-ID:  <20040403223230.GC613@darkness.comp.waw.pl>
In-Reply-To: <49165.65.103.5.228.1081027268.squirrel@www2.neuroflux.com>
References:  <49165.65.103.5.228.1081027268.squirrel@www2.neuroflux.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--lMM8JwqTlfDpEaS6
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Apr 03, 2004 at 02:21:08PM -0700, Ryan Sommers wrote:
+> Whenever I supply a length of 4 as the final bind parameter I get the
+> following panic. Looks like bind returns fine, however, when the program
+> exits it stumbles over some mutex associated with the descriptor. The
+> mutex passed to mtx_destroy() has MTX_RECURSED set. I attempted to find
+> where the call to bind was clobbering the mutex but couldn't. I attached
+> the simple program to exploit this. I was able to do it as a regular use=
r.

Yes, could you try this patch:

	http://people.freebsd.org/~pjd/patches/tcp_usrreq.c.patch

--=20
Pawel Jakub Dawidek                       http://www.FreeBSD.org
pjd@FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!

--lMM8JwqTlfDpEaS6
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAbzt+ForvXbEpPzQRAsqtAJ4ictPclPyW5vZWENyEJo3ipiGzbQCgp58h
Te/ADQaxPkVzM/0JNPapyAs=
=uVJG
-----END PGP SIGNATURE-----

--lMM8JwqTlfDpEaS6--



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