Displaying 1 result from an estimated 1 matches for "prele".
Did you mean:
prege
2003 Jun 30
0
sysctl_out_proc() race in stable w/ patch
...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 problem...