freebsd-dev/sys/nfsclient
Attilio Rao a3c14ce5d9 namei() can call underlying nfs_readlink() passing a struct uio pointer
owned by a NULL owner. This will lead consequent VOP_ISLOCKED() present
into nfs_upgrade_vnlock() to panic as it only acquire curthread now.
Fix nfs_upgrade_vnlock() and nfs_downgrade_vnlock() in order to not use
more the struct thread pointer passed as argument (as it is really nomore
required there as vn_lock() and VOP_UNLOCK doesn't get the lock more).
Using curthread, in place, doesn't get ambiguity as LK_EXCLOTHER should
be handled as a "not locked" request by both functions.

Reported by: kris
Tested by: kris
Reviewed by: ups
2008-02-09 20:13:19 +00:00
..
bootp_subr.c Remove the now-unused NET_{LOCK,UNLOCK,ASSERT}_GIANT() macros, which 2007-08-06 14:26:03 +00:00
krpc_subr.c Remove the now-unused NET_{LOCK,UNLOCK,ASSERT}_GIANT() macros, which 2007-08-06 14:26:03 +00:00
krpc.h
nfs_bio.c namei() can call underlying nfs_readlink() passing a struct uio pointer 2008-02-09 20:13:19 +00:00
nfs_diskless.c consolidate parsing of nfs root mount options in one place 2006-12-06 02:15:25 +00:00
nfs_lock.c Attempt to rationalize NFS privileges: 2007-04-21 18:11:19 +00:00
nfs_lock.h For reasons unknown, the nfs locking code used a fifo to send requests to 2004-12-06 08:31:32 +00:00
nfs_nfsiod.c Rename the kthread_xxx (e.g. kthread_create()) calls 2007-10-20 23:23:23 +00:00
nfs_node.c Cleanup lockmgr interface and exported KPI: 2008-01-24 12:34:30 +00:00
nfs_socket.c The previous revision broke the case of reconnecting to a TCP NFS server 2008-01-11 23:57:39 +00:00
nfs_subs.c namei() can call underlying nfs_readlink() passing a struct uio pointer 2008-02-09 20:13:19 +00:00
nfs_vfsops.c Conver all explicit instances to VOP_ISLOCKED(arg, NULL) into 2008-02-08 21:45:47 +00:00
nfs_vnops.c - Introduce the function lockmgr_recursed() which returns true if the 2008-01-19 17:36:23 +00:00
nfs.h NFS MP scaling changes. 2007-10-12 19:12:21 +00:00
nfsargs.h Fix a serious deadlock with the NFS client. Given a large enough 2005-06-10 23:50:41 +00:00
nfsdiskless.h consolidate parsing of nfs root mount options in one place 2006-12-06 02:15:25 +00:00
nfsm_subs.h fix a problem with XID re-use when a server returns NFSERR_JUKEBOX. 2005-11-21 18:39:18 +00:00
nfsmount.h NFS MP scaling changes. 2007-10-12 19:12:21 +00:00
nfsnode.h namei() can call underlying nfs_readlink() passing a struct uio pointer 2008-02-09 20:13:19 +00:00
nfsstats.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nlminfo.h - Fix leak of struct nlminfo on process exit. 2005-10-26 07:18:37 +00:00