Page MenuHomeFreeBSD

Fix divide-by-zero panic when ALSR is enabled and superpages disabled
ClosedPublic

Authored by jah on Feb 15 2021, 3:08 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 14, 2:26 AM
Unknown Object (File)
Mon, Sep 7, 5:09 PM
Unknown Object (File)
Mon, Aug 17, 3:55 PM
Unknown Object (File)
Aug 10 2026, 9:41 AM
Unknown Object (File)
Aug 9 2026, 7:38 PM
Unknown Object (File)
Aug 9 2026, 7:37 PM
Unknown Object (File)
Aug 5 2026, 7:01 AM
Unknown Object (File)
Aug 5 2026, 2:45 AM
Subscribers

Details

Summary

When locating the anonymous memory region for a vm_map with ASLR
enabled, we try to keep the slid base address aligned on a superpage
boundary to minimize pagetable fragmentation and maximize the potential
usage of superpage mappings. We can't (portably) do this if superpages
have been disabled by loader tunable and pagesizes[1] is 0, and it
would be less beneficial in that case anyway.

PR: 253511
Reported by: johannes@jo-t.de
MFC after: 1 week

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 37008
Build 33897: arc lint + arc unit