We previously claimed that non-page-aligned addresses would return EINVAL, but the address is in fact rounded down to the page boundary. Fixes: dabee6fecc67 ("kern_descrip.c: add fdshare()/fdcopy()")
Details
Details
- Reviewers
kib brooks - Commits
- rG9e36aaf0c24c: munmap.2: Unaligned addresses do not return error
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Hm, this used to be required by POSIX but newer versions allow the implementation not to treat that as an error
Comment Actions
Ideally I'd like to see a note that the use of unaligned addresses is non-portable, but that's probably a separate commit.