Date: Wed, 15 Jan 2025 18:10:20 GMT From: Ed Maste <emaste@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 9e36aaf0c24c - main - munmap.2: Unaligned addresses do not return error Message-ID: <202501151810.50FIAKsL000951@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=9e36aaf0c24cf158e83c69c1d2312c000c3c36f3 commit 9e36aaf0c24cf158e83c69c1d2312c000c3c36f3 Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2025-01-15 16:52:58 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2025-01-15 18:09:37 +0000 munmap.2: Unaligned addresses do not return error We previously claimed that non-page-aligned addresses would return EINVAL, but the address is in fact rounded down to the page boundary. Reported by: Harald Eilertsen <haraldei@anduin.net> Reviewed by: brooks Sponsored by: The FreeBSD Foundation Fixes: dabee6fecc67 ("kern_descrip.c: add fdshare()/fdcopy()") Differential Revision: https://reviews.freebsd.org/D48465 --- lib/libsys/munmap.2 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/libsys/munmap.2 b/lib/libsys/munmap.2 index dce76d355c1f..560ed0056260 100644 --- a/lib/libsys/munmap.2 +++ b/lib/libsys/munmap.2 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd June 22, 2017 +.Dd January 15, 2025 .Dt MUNMAP 2 .Os .Sh NAME @@ -54,8 +54,6 @@ will fail if: .Bl -tag -width Er .It Bq Er EINVAL The -.Fa addr -argument was not page aligned, the .Fa len argument was zero or negative, or some part of the region being unmapped is outside the
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501151810.50FIAKsL000951>