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)
Feb 17 2024, 9:32 PM
Unknown Object (File)
Feb 12 2024, 4:15 PM
Unknown Object (File)
Dec 20 2023, 4:54 AM
Unknown Object (File)
Dec 20 2023, 4:07 AM
Unknown Object (File)
Dec 14 2023, 8:19 PM
Unknown Object (File)
Oct 9 2023, 11:09 AM
Unknown Object (File)
Sep 1 2023, 9:34 PM
Unknown Object (File)
Sep 1 2023, 9:34 PM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable