HomeFreeBSD

munmap.2: Unaligned addresses do not return error

Description

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

(cherry picked from commit 9e36aaf0c24cf158e83c69c1d2312c000c3c36f3)

Details

Provenance
emasteAuthored on Jan 15 2025, 4:52 PM
Reviewer
brooks
Differential Revision
D48465: munmap.2: Unaligned addresses do not return error
Parents
rG0bfbd30663b6: libbsnmptools: avoid uninitialized snmptoolctx->passwd with empty password
Branches
Unknown
Tags
Unknown