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 ?
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:09 UTC