Descriptionproc: fix unlock(&procalloc) race (from 9front)
This one comes from Cinap, for 9front¹ and
seems to affect us as well. His comment:
"problem is, unlock(&procalloc); decrements
up->nlock *after* unlock! proc is on freelist
at this point so another cpu can come in and
use the proc before, zeroing up->nlock.ref!"
¹ http://code.google.com/p/plan9front/source/detail?r=7afbe2c3d65f4aa3dea6aad9f60e479491c4c200
Patch Set 1 #Patch Set 2 : diff -r 147dee9a7fe7 https://code.google.com/p/nix-os/ #Patch Set 3 : diff -r d3ec9fa5fda7 https://code.google.com/p/nix-os/ #MessagesTotal messages: 3
|