Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jun 2002 14:53:08 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/nfsclient nfs.h nfs_bio.c nfs_socket.c nfs_vnops.c
Message-ID:  <200206282153.g5SLr8OU023931@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2002/06/28 14:53:08 PDT

  Modified files:
    sys/nfsclient        nfs.h nfs_bio.c nfs_socket.c nfs_vnops.c 
  Log:
  In namei(), we use a NULL thread for uio_td when doing a VOP_READLINK().
  nfs_readlink() calls nfs_bioread() which passes in uio_td as the thread
  argument to nfs_getcacheblk().  In nfs_getcacheblk() we dereference the
  thread pointer to get a process pointer to pass to nfs_sigintr().  This
  obviously results in a panic. :)
  
  Rather than change nfs_getcacheblk() to check if the thread pointer is
  NULL when calling nfs_sigintr() like other callers do, change
  nfs_sigintr() to take a thread as the last argument instead of a
  process so none of the callers have to care if the thread is NULL or not.
  
  Revision  Changes    Path
  1.70      +1 -1      src/sys/nfsclient/nfs.h
  1.108     +4 -4      src/sys/nfsclient/nfs_bio.c
  1.82      +8 -9      src/sys/nfsclient/nfs_socket.c
  1.183     +2 -2      src/sys/nfsclient/nfs_vnops.c

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?200206282153.g5SLr8OU023931>