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)
Tue, Mar 25, 8:06 AM
Unknown Object (File)
Tue, Mar 25, 8:04 AM
Unknown Object (File)
Tue, Mar 18, 12:04 AM
Unknown Object (File)
Thu, Mar 13, 10:14 PM
Unknown Object (File)
Mar 11 2025, 12:28 PM
Unknown Object (File)
Jan 24 2025, 5:06 PM
Unknown Object (File)
Jan 18 2025, 9:35 PM
Unknown Object (File)
Dec 3 2024, 8:53 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.