HomeFreeBSD

vfs: fix vhold race in mnt_vnode_next_lazy_relock

Description

vfs: fix vhold race in mnt_vnode_next_lazy_relock

vdrop can set the hold count to 0 and wait for the ->mnt_listmtx held by
mnt_vnode_next_lazy_relock caller. The routine incorrectly asserted the
count has to be > 0.

Reported by: pho
Tested by: pho

Details

Provenance
mjgAuthored on Feb 11 2020, 6:19 PM
Parents
rGb4426a7175a3: Add missing EPOCH(9) wrapper in ipfw(8).
Branches
Unknown
Tags
Unknown

Event Timeline