https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=169608

--- Comment #3 from Konstantin Belousov <k...@freebsd.org> ---
(In reply to Glenn Weinberg from comment #2)
What happens is (all arithmetic is done using unsigned native register size):
- we truncate the base address down to the page boundary
- size is increased by the truncated amount
- size is rounded up to the page boundary
- if base + size < base, we decline
- base is set to max(min user address, base)
- end is set to min(max user address, base + size)
- base > end, base = end

I think that corner cases of this algorithm are put in stone after 30 years of
FreeBSD history.  In particular, I do not think we can remove the automatic
realignment.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to