Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Mar 2011 20:36:42 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern kern_ktrace.c
Message-ID:  <201103052037.p25Kb3XE003769@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
dchagin     2011-03-05 20:36:42 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_ktrace.c 
  Log:
  SVN rev 219311 on 2011-03-05 20:36:42Z by dchagin
  
  Partially reworked r219042.
  The reason for this is a bug at ktrops() where process dereferenced
  without having a lock. This might cause a panic if ktrace was runned
  with -p flag and the specified process exited between the dropping
  a lock and writing sv_flags.
  
  Since it is impossible to acquire sx lock while holding mtx switch
  to use asynchronous enqueuerequest() instead of writerequest().
  
  Rename ktr_getrequest_ne() to more understandable name [1].
  
  Requested by:   jhb [1]
  
  MFC after:      1 Week
  
  Revision  Changes    Path
  1.140     +21 -29    src/sys/kern/kern_ktrace.c



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