HomeFreeBSD

ufs_aclcheck(): accurately dereference vp->v_mount

Description

ufs_aclcheck(): accurately dereference vp->v_mount

The argument vnode passed to VOP_ACLCHECK() is not locked, it is not
safe to deref a_vp->v_mount without ensuring that the pointer is
non-null and stable.

Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Provenance
kibAuthored on Thu, Mar 20, 6:10 PM
Parents
rGd7352b2d57e9: ufs_acl.c: style
Branches
Unknown
Tags
Unknown