[Bug 271081] www/firefox: crashes on arm64 with ASLR enabled

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 21 Jan 2024 21:19:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271081

Jesper Schmitz Mouridsen <jsm@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #247141|maintainer-approval?(gecko@ |
              Flags|FreeBSD.org)                |
 Attachment #247141|0                           |1
        is obsolete|                            |

--- Comment #22 from Jesper Schmitz Mouridsen <jsm@FreeBSD.org> ---
Created attachment 247827
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=247827&action=edit
align mmap

From https://reviews.freebsd.org/rS343964 I concluded that MAP_FIXED simply
turns of randomization(?) with aslr enabled. 

With aslr enabled without the MAP_FIXED hack not all pages were aligned causing
calls to TryToAlignChunk which somehow causes failures. I cannot yet explain
why TryToAlignChunk fails. It did not seem to ever get called with aslr
disabled. Thus a second hackish attempt to fix running with aslr enabled on
aarch64, is attached, which tries to ensure alignment to the desired alignment,
if I did not misread the mmap man page. I marked the other attachment obsolete
because the jit part hopefully gets accepted by upstream.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.