Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jan 2007 16:24:23 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern uipc_usrreq.c
Message-ID:  <200701121624.l0CGON76022659@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2007-01-12 16:24:23 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/kern             uipc_usrreq.c 
  Log:
  MFC: Close a race between enumerating UNIX domain socket pcb structures via
  sysctl and socket teardown.  Note that we engage in a bit of trickery to
  preserve the ABI of 'struct unpcb' in 6.x.  We change the UMA zone to hold
  a 'struct unpcb_wrapper' which holds a 6.x 'struct unpcb' followed by the
  new reference count needed for handling the race.  We then cast 'struct
  unpcb' pointers to 'struct unpcb_wrapper' pointers when we need to access
  the reference count.
  
  Submitted by:   ups (including the ABI trickery)
  
  Revision   Changes    Path
  1.155.2.8  +36 -7     src/sys/kern/uipc_usrreq.c



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