The branch main has been updated by emaste:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=9e36aaf0c24cf158e83c69c1d2312c000c3c36f3

commit 9e36aaf0c24cf158e83c69c1d2312c000c3c36f3
Author:     Ed Maste <ema...@freebsd.org>
AuthorDate: 2025-01-15 16:52:58 +0000
Commit:     Ed Maste <ema...@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 <haral...@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

Reply via email to