Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 May 2014 07:56:06 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r265645 - in stable/9: . sys
Message-ID:  <201405080756.s487u61h071802@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405080756.s487u61h071802>