search for: phold

Displaying 2 results from an estimated 2 matches for "phold".

Did you mean: hold
2003 Jun 30
0
sysctl_out_proc() race in stable w/ patch
...tl_kern_proc() loops through the allproc list writing the results to user memory. If it stalls during the copyout (e.g. the user memory has to take a vm_fault) and the process is ripped out from under it it will go looping into never never land. The solution is very simple, simply PHOLD()/PRELE() the process during the copyout() and in exit1() wait for the lock count to go to 0. The patch below is a hack and cannot be directly applied due to other changes in my tree, but if someone would like to tackle this for 4.x I've provided you with a good start. The...
2003 Aug 11
1
Kernel build fails (RELENG_4_5)
...Mon Aug 11 09:22:08 2003 +++ sys_process.c Mon Aug 11 09:22:28 2003 @@ -335,7 +335,7 @@ case PT_CONTINUE: case PT_DETACH: /* Zero means do not send any signal */ - if (data < 0 || data > _SIG_MAXSIG) + if (uap->data < 0 || uap->data > _SIG_MAXSIG) return EINVAL; PHOLD(p);