svn commit: r265645 - in stable/9: . sys

Alexander Motin mav at FreeBSD.org
Thu May 8 07:56:06 UTC 2014


Author: mav
Date: Thu May  8 07:56:05 2014
New Revision: 265645
URL: http://svnweb.freebsd.org/changeset/base/265645

Log:
  MFC r244015 (by ken):
  Fix the CTL OOA queue dumping code so that it does not hold a mutex
  while doing a copyout.  That can cause a panic, because copyout
  can trigger VM faults, and we can't handle VM faults while holding
  a mutex.
  
  The solution here is to malloc a separate buffer to hold the OOA
  queue entries, so that we don't risk a VM fault while filling up
  the buffer and we don't have to drop the lock.  The other solution
  would be to wire the user's memory while filling their buffer with
  copyout, but that would have been a little more complex.
  
  Also fix a debugging parenthesis issue in ctl_abort_task() pointed
  out by Chuck Tuffli.

Modified:
Directory Properties:
  stable/9/   (props changed)
  stable/9/sys/   (props changed)


More information about the svn-src-stable-9 mailing list