Page MenuHomeFreeBSD

vfs_extattr: Allow extattr names up to the full max
ClosedPublic

Authored by cem on Apr 27 2020, 2:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 5, 10:59 AM
Unknown Object (File)
Thu, Mar 5, 7:00 AM
Unknown Object (File)
Wed, Mar 4, 7:42 PM
Unknown Object (File)
Wed, Mar 4, 2:10 PM
Unknown Object (File)
Sat, Feb 14, 12:27 PM
Unknown Object (File)
Mon, Feb 9, 12:35 AM
Unknown Object (File)
Jan 31 2026, 5:52 AM
Unknown Object (File)
Jan 26 2026, 4:21 AM
Subscribers

Details

Summary

Extattr names are allowed to be 255 bytes -- not 254 bytes plus trailing
NUL. Provide a 256 buffer so that copyinstr() has room for the trailing
NUL.

Re-enable test for maximal name lengths.

PR: 208965

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30746
Build 28472: arc lint + arc unit

Event Timeline

cem requested review of this revision.Apr 27 2020, 2:13 AM
cem created this revision.

Cool! Thanks for fixing this, cem.

This revision is now accepted and ready to land.Apr 27 2020, 2:23 AM
This revision was automatically updated to reflect the committed changes.