Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Feb 2003 00:43:27 -0800 (PST)
From:      Hartmut Brandt <harti@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_condvar.c kern_synch.c
Message-ID:  <200302270843.h1R8hRaI061026@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
harti       2003/02/27 00:43:27 PST

  Modified files:
    sys/kern             kern_condvar.c kern_synch.c 
  Log:
  When a process has been waiting on a condition variable or mutex the
  td_wmesg field in the thread structure points to the description string of
  the condition variable or mutex. If the condvar or the mutex had been
  initialized from a loadable module that was unloaded in the meantime,
  td_wmesg may now point to invalid memory. Retrieving the process table now
  may panic the kernel (or access junk). Setting the td_wmesg field to NULL
  after unblocking on the condvar/mutex prevents this panic.
  
  PR:             kern/47408
  Approved by:    jake (mentor)
  
  Revision  Changes    Path
  1.37      +1 -0      src/sys/kern/kern_condvar.c
  1.213     +2 -0      src/sys/kern/kern_synch.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-src" in the body of the message




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