Page MenuHomeFreeBSD

p9fs: fix use-after-free when p9fs_vget_common fails
Needs ReviewPublic

Authored by njain15_protonmail.com on Tue, Sep 8, 5:37 AM.

Details

Reviewers
kib
Summary

Some callers of p9fs_vget_common (ex. p9fs_lookup) clunk the new fid as part of their error cleanup procedure. However, during certain points of the vnode creation, failure already reclaims the node. This causes double clunking of the VFID, which can lead to a panic.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped