Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jan 2002 14:22:39 -0800 (PST)
From:      Ian Dowse <iedowse@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/nfsserver nfsm_subs.h
Message-ID:  <200201112222.g0BMMdh66532@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
iedowse     2002/01/11 14:22:39 PST

  Modified files:
    sys/nfsserver        nfsm_subs.h 
  Log:
  The macro nfsm_reply() is supposed to allocate a reply in all cases,
  but since the nfs cleanup, it hasn't done so in the case where
  `error' is EBADRPC. Callers of this macro expect it to initialise
  *mrq, and the `nfsmout' exit point expects a reply to be allocated
  if error == 0. When nfsm_reply() was called with error = EBADRPC,
  whatever junk was in *mrq (often a stale pointer to an old reply
  mbuf) would be assumed to be a valid reply and passed to pru_sosend(),
  causing a crash sooner or later.
  
  Fix this by allocating a reply even in the EBADRPC case like we
  used to do. This bug was specific to -current.
  
  Revision  Changes    Path
  1.33      +2 -2      src/sys/nfsserver/nfsm_subs.h

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




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