Date: Mon, 27 Apr 2020 02:02:55 +0000 From: bugzilla-noreply@freebsd.org To: amd64@FreeBSD.org Subject: [Bug 208965] extattr(2) doesn't allow attribute names of length EXTATTR_MAXNAMELEN Message-ID: <bug-208965-17361-SUVfClPEqz@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-208965-17361@https.bugs.freebsd.org/bugzilla/> References: <bug-208965-17361@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208965 --- Comment #2 from Conrad Meyer <cem@freebsd.org> --- I believe this is due to copyinstr(), which works with NUL-terminated strin= gs (and lengths), while the stack buffer in sys_extattr_set_fd(), etc, are only sized to EXTATTR_MAXNAMELEN. To fix this I think we just need to size the buffers one larger to allow for the trailing NUL copyinstr expects. --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208965-17361-SUVfClPEqz>