Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Apr 2003 13:33:11 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netinet tcp_subr.c
Message-ID:  <200304102033.h3AKXB0I018166@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2003/04/10 13:33:11 PDT

  FreeBSD src repository

  Modified files:
    sys/netinet          tcp_subr.c 
  Log:
  Remove a potential panic condition introduced by reduced TCP wait
  state.  Those changed attempted to work around the changed invariant
  that inp->in_socket was sometimes now NULL, but the logic wasn't
  quite right, meaning that inp->in_socket would be dereferenced by
  cr_canseesocket() if security.bsd.see_other_uids, jail, or MAC
  were in use.  Attempt to clarify and correct the logic.
  
  Note: the work-around originally introduced with the reduced TCP
  wait state handling to use cr_cansee() instead of cr_canseesocket()
  in this case isn't really right, although it "Does the right thing"
  for most of the cases in the base system.  We'll need to address
  this at some point in the future.
  
  Pointed out by: dcs
  Obtained from:  TrustedBSD Project
  Sponsored by:   DARPA, Network Associates Laboratories
  
  Revision  Changes    Path
  1.159     +15 -5     src/sys/netinet/tcp_subr.c



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