Page MenuHomeFreeBSD

vfs: always retain path buffer after lookup
ClosedPublic

Authored by mjg on Sep 12 2022, 11:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 27, 5:17 PM
Unknown Object (File)
Wed, Sep 25, 3:08 PM
Unknown Object (File)
Wed, Sep 25, 7:44 AM
Unknown Object (File)
Sun, Sep 15, 7:11 AM
Unknown Object (File)
Sun, Sep 15, 7:11 AM
Unknown Object (File)
Aug 25 2024, 8:56 PM
Unknown Object (File)
Aug 21 2024, 9:00 PM
Unknown Object (File)
Aug 5 2024, 11:07 PM

Details

Summary

This removes some of the complexity needed to maintain HASBUF and allows for removal of SAVENAME injections by filesystems.

Ultimately both flags get retired.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

mjg requested review of this revision.Sep 12 2022, 11:10 PM
kib added inline comments.
sys/sys/namei.h
163

I believe it is useful to assert that removed flags are not passed to NDINIT() or namei()

This revision is now accepted and ready to land.Sep 13 2022, 7:38 PM

@rmacklem can you give this patch a spin please concerning nfs parts? works for me(tm)

I ran a test cycle for NFS using a main kernel
with this patch committed in it and did not see
any problems.