Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Feb 2021 00:00:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 253511] vm.pmap.pg_ps_enabled=0 and kern.elf64.aslr.enable=1 panics with integer divide by zero
Message-ID:  <bug-253511-227-V5EzUJ6HvA@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-253511-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-253511-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253511

--- Comment #5 from commit-hook@FreeBSD.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3Dfc6c898ec5f46c730b8f2902c2692549d=
e47d7d6

commit fc6c898ec5f46c730b8f2902c2692549de47d7d6
Author:     Jason A. Harmening <jah@FreeBSD.org>
AuthorDate: 2021-02-15 02:47:22 +0000
Commit:     Jason A. Harmening <jah@FreeBSD.org>
CommitDate: 2021-02-24 00:01:30 +0000

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

    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

    (cherry picked from commit 41032835dc2d489ec7841d7529f74f6389329cd3)

 sys/kern/imgact_elf.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253511-227-V5EzUJ6HvA>