HomeFreeBSD

Fix the race while waiting for coveredvp lock during unmount. The vnode may
rS162407Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Fix the race while waiting for coveredvp lock during unmount. The vnode may
be recycled during the sleep, wrap the vn_lock with vhold/vdrop.
Check that coveredvp still points to the same mp after sleep (needed
because sleep dropped Giant).
Move check for user rights for unmount after coveredvp lock is obtained.

Tested by: Peter Holm
Reviewed by: tegge
Approved by: kan (mentor)
MFC after: 2 weeks

Details

Provenance
kibAuthored on
Parents
rS162406: MFC: Fix a panic when SIOCSIFFLAGS is called with a NULL argument.
Branches
Unknown
Tags
Unknown

Event Timeline