HomeFreeBSD

unionfs: Improve vnode validation

Description

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

Details

Provenance
jahAuthored on Oct 28 2021, 5:37 AM
Reviewer
kib
Differential Revision
D32629: unionfs: various locking fixes
Parents
rGfb273fe70f8b: unionfs: replace zero-length read check with KASSERT
Branches
Unknown
Tags
Unknown