freebsd-dev/sys/fs
Konstantin Belousov 3a3450eda6 tmpfs_rename(): use tmpfs_access_locked instead of VOP_ACCESS()
Protect the call with the node lock. We cannot lock the fvp vnode
sleepable there, because we already own other participating vnode's
locks. Taking it without sleeping require unwinding the whole locking
state in one more place.

Note that the liveness of the node is guaranteed by the lock on the
parent directory vnode.

Reported and tested by:	pho
Fixes:	cbac1f3464956185cf95955344b6009e2cc3ae40ESC
Reviewed by:	markj, mjg
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D38557
2023-02-14 01:16:38 +02:00
..
autofs vfs: add the concept of vnode state transitions 2022-12-26 17:35:12 +00:00
cd9660 Stop cleaning MNT_LOCAL on unmount 2023-01-14 20:28:11 +02:00
cuse cuse(3): Cosmetic change about testing boolean values. 2022-10-04 13:51:06 +02:00
deadfs vn_open(): If the vnode is reclaimed during open(2), do not return error. 2021-02-12 03:02:20 +02:00
devfs vfs: add the concept of vnode state transitions 2022-12-26 17:35:12 +00:00
ext2fs Fix block bitmap end position computation 2023-01-29 11:11:02 +03:00
fdescfs vfs: add the concept of vnode state transitions 2022-12-26 17:35:12 +00:00
fifofs fifofs: ansify 2023-02-07 23:18:51 +00:00
fuse vfs: add the concept of vnode state transitions 2022-12-26 17:35:12 +00:00
mntfs vfs: add the concept of vnode state transitions 2022-12-26 17:35:12 +00:00
msdosfs msdosfs deextend: validate pages of the partial buffer 2023-02-14 00:29:42 +02:00
nfs nfsd: Continue adding macros so nfsd can run in a vnet prison 2023-02-13 15:07:17 -08:00
nfsclient nfscl: Fix interaction between mmap'd and VOP_WRITE file updates 2023-02-08 14:25:01 -08:00
nfsserver nfsd: Continue adding macros so nfsd can run in a vnet prison 2023-02-13 15:07:17 -08:00
nullfs nullfs: ansify 2023-02-07 23:22:27 +00:00
procfs vm_pager: Remove references to KVME_TYPE_DEFAULT in the kernel 2022-07-17 07:09:48 -04:00
pseudofs vfs: add the concept of vnode state transitions 2022-12-26 17:35:12 +00:00
smbfs smbfs: ansify 2023-02-07 23:35:11 +00:00
tarfs tarfs: Fix deadlock between descent and ascent in tarfs_lookup(). 2023-02-10 17:19:45 +00:00
tmpfs tmpfs_rename(): use tmpfs_access_locked instead of VOP_ACCESS() 2023-02-14 01:16:38 +02:00
udf udf: ansify 2023-02-07 23:24:24 +00:00
unionfs vfs: add the concept of vnode state transitions 2022-12-26 17:35:12 +00:00