Re: strace causes panic: sleeping thread

From: Kostik Belousov <kostikbel_at_gmail.com>
Date: Tue, 1 May 2007 14:19:02 +0300
On Tue, May 01, 2007 at 12:35:49PM +0200, Dag-Erling Sm?rgrav wrote:
> des_at_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.
> 
> See attached patch.

The procfs PIOCWAIT/PIOCWAIT32 ioctls drop the p_mtx for sleep. Could it be
that p being freed/reused meantime ?

Received on Tue May 01 2007 - 09:19:11 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:09 UTC