[Bug 208965] extattr(2) doesn't allow attribute names of length EXTATTR_MAXNAMELEN

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu May 14 03:02:06 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208965

--- Comment #4 from commit-hook at freebsd.org ---
A commit references this bug:

Author: cem
Date: Thu May 14 03:01:24 UTC 2020
New revision: 361021
URL: https://svnweb.freebsd.org/changeset/base/361021

Log:
  vfs_extattr: Allow extattr names up to the full max

  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
  Reported by:  asomers
  Reviewed by:  asomers
  Differential Revision:        https://reviews.freebsd.org/D24584

Changes:
  head/sys/kern/vfs_extattr.c
  head/usr.sbin/extattr/tests/extattr_test.sh

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-amd64 mailing list