cvs commit: src/sys/kern kern_jail.c

Pawel Jakub Dawidek pjd at
Sun Apr 8 10:46:24 UTC 2007

pjd         2007-04-08 10:46:24 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_jail.c 
  prison_free() can be called with a mutex held. This wasn't a problem until
  I converted allprison_mtx mutex to allprison_lock sx lock. To fix this LOR,
  move prison removal to prison_complete() entirely. To ensure that noone
  will reference this prison before it's beeing removed from the list skip
  prisons with 'pr_ref == 0' in prison_find() and assert that pr_ref has to
  greater than 0 in prison_hold().
  Reported by:    kris
  OK'ed by:       rwatson
  Revision  Changes    Path
  1.68      +16 -11    src/sys/kern/kern_jail.c

More information about the cvs-src mailing list