freebsd-dev/sys/cddl/contrib/opensolaris/uts/common
Davide Italiano 2f9e29745c Fix a panic in zfs_rename().
this is due to a wrong dereference of a vnode when it's not locked and
can be (potentially) recycled. 'sdvp' cannot be locked on zfs_rename()
entry point because the VFS can't be sure that this scenario is
LOR-free (it might violate the parent->child lock acquisition rule).
Dereference 'tdvp' instead, which is already locked on entry, and access
'sdvp' fields only when it's safe, i.e. under ZFS_ENTER scope.

While at it, remove the usage of VOP_REALVP, as long as this is a NOP
on FreeBSD.

Discussed with:	avg
Reviewed by:	pjd
2014-04-13 01:15:37 +00:00
..
ctf
dtrace MFV r258379; 2014-04-02 15:32:44 +00:00
fs Fix a panic in zfs_rename(). 2014-04-13 01:15:37 +00:00
os Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
sys Add property and sysctl to control how ZVOLs are exposed to OS. 2014-04-05 13:01:44 +00:00
zmod
Makefile.files MFV r260154 + 260182: 2014-01-02 07:34:36 +00:00