]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
unionfs: Improve vnode validation
authorJason A. Harmening <jah@FreeBSD.org>
Thu, 28 Oct 2021 05:37:48 +0000 (22:37 -0700)
committerJason A. Harmening <jah@FreeBSD.org>
Sat, 6 Nov 2021 14:08:34 +0000 (07:08 -0700)
commit5f73b3338ee10ea843da3ae8b241320b8293a35b
tree4ff1827336d9c49ca25d641dfd59147c61bfd215
parentfb273fe70f8be66bb946c5a2ea1e53042bbada48
unionfs: Improve vnode validation

Instead of validating that a vnode belongs to unionfs only when the
caller attempts to extract the upper or lower vnode pointers, do this
validation any time the caller tries to extract a unionfs_node from
the vnode private data.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D32629
sys/fs/unionfs/union.h
sys/fs/unionfs/union_subr.c