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

2024-01-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271081

--- Comment #23 from Nuno Teixeira  ---
(In reply to Jesper Schmitz Mouridsen from comment #22)

While jit patch isn't included upstream, we need to apply:

https://bugs.freebsd.org/bugzilla/attachment.cgi?id=247827

+

patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp

--- js/src/jit/arm64/vixl/MozCpu-vixl.cpp.orig  2023-12-11 20:42:06 UTC
+++ js/src/jit/arm64/vixl/MozCpu-vixl.cpp

-#elif defined(__aarch64__) && (defined(__linux__) || defined(__android__))
+#elif defined(__aarch64__) && (defined(__linux__) || defined(__android__)||
defined(__FreeBSD__))

Right?

Cheers

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


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

2024-01-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271081

--- Comment #24 from Jesper Schmitz Mouridsen  ---
(In reply to Nuno Teixeira from comment #23)
Perfectly right I was hoping for a quick upstream commit..

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


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

2024-01-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271081

Jesper Schmitz Mouridsen  changed:

   What|Removed |Added

 Attachment #247827|0   |1
is obsolete||

--- Comment #25 from Jesper Schmitz Mouridsen  ---
Created attachment 247860
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=247860&action=edit
use MAP_ALIGNED instead of relocating

I still cannot find the difference between amd64 and arm64, but TryToAlignChunk
very often fails on both platforms apparently because aslr randomizes the
requested aligned addresses in a way so they are no longer aligned as desired,
so my idea is to use MAP_ALIGNED instead of trying to relocate. Thoughts?

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