Page MenuHomeFreeBSD

fusefs: fix error handling when reading a directory's sticky bit
ClosedPublic

Authored by asomers on Jun 14 2026, 5:41 PM.
Tags
None
Referenced Files
F172387223: D57588.id179745.diff
Fri, Sep 18, 3:33 AM
Unknown Object (File)
Thu, Sep 10, 2:53 AM
Unknown Object (File)
Sat, Sep 5, 8:35 AM
Unknown Object (File)
Fri, Sep 4, 2:31 PM
Unknown Object (File)
Aug 12 2026, 7:40 PM
Unknown Object (File)
Aug 12 2026, 6:59 PM
Unknown Object (File)
Aug 12 2026, 5:03 PM
Unknown Object (File)
Aug 10 2026, 10:11 AM
Subscribers

Details

Summary

When trying to delete or rename a file, fuse_vnop_lookup must check
whether its parent directory's sticky bit is set. Realistically, the
parent directory's attributes will almost always be cached. But it's
possible that they won't be, and in that case we must send a new
FUSE_GETATTR request to the server. If that request fails for some
reason, then we must fail the lookup. Prior to this change fusefs would
ignore failure of that request.

Reported by: Yuxiang Yang, Yizhou Zhao, Ao Wang, Xuewei Feng, Qi Li,

and Ke Xu of Tsinghua University

MFC after: 2 weeks

Test Plan

Test case added

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 73873
Build 70756: arc lint + arc unit