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
F152960832: D24584.id.diff
Sat, Apr 18, 8:31 AM
Unknown Object (File)
Tue, Apr 14, 3:12 PM
Unknown Object (File)
Sat, Apr 11, 2:31 PM
Unknown Object (File)
Tue, Apr 7, 9:54 AM
Unknown Object (File)
Mon, Apr 6, 10:10 PM
Unknown Object (File)
Mar 19 2026, 3:28 PM
Unknown Object (File)
Mar 19 2026, 2:23 AM
Unknown Object (File)
Mar 14 2026, 6:01 PM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.