Date: Tue, 1 May 2007 14:19:02 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: Dag-Erling Sm?rgrav <des@des.no> Cc: freebsd-current@freebsd.org, Stefan Ehmann <shoesoft@gmx.net> Subject: Re: strace causes panic: sleeping thread Message-ID: <20070501111902.GA2441@deviant.kiev.zoral.com.ua> In-Reply-To: <86tzuwrfui.fsf@dwp.des.no> References: <200704281128.44077.shoesoft@gmx.net> <20070428115503.GM2441@deviant.kiev.zoral.com.ua> <86y7k8rgc4.fsf@dwp.des.no> <86tzuwrfui.fsf@dwp.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
--DQpa7ozeLWh50je8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 01, 2007 at 12:35:49PM +0200, Dag-Erling Sm?rgrav wrote: > des@des.no (Dag-Erling Sm?rgrav) writes: > > procfs_ioctl() needs the process to be locked; pn_ioctl() verifies > > that this is the case before calling it. The correct fix is not to > > unlock the process before calling procfs_ioctl(), but to remove the > > latter's redundant PROC_LOCK() / PROC_UNLOCK() calls. >=20 > See attached patch. The procfs PIOCWAIT/PIOCWAIT32 ioctls drop the p_mtx for sleep. Could it be that p being freed/reused meantime ? --DQpa7ozeLWh50je8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGNyImC3+MBN1Mb4gRAvSpAKCxsNVuN4V3MkeVZXuJkL6d1QtHowCfWM3x UxWw3VO5nGN9USJaX546pAk= =ExWq -----END PGP SIGNATURE----- --DQpa7ozeLWh50je8--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070501111902.GA2441>