Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Dec 2023 12:21:50 +0000
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        freebsd-arm@freebsd.org
Subject:   Re: firefox broken on arm64
Message-ID:  <CAFDf7U%2Bs-yNUSivER2wtOFqZ95ap8w8FH9k-A16dk4TDDb4NFg@mail.gmail.com>
In-Reply-To: <7daaaade-955d-4678-bec4-a34a196b27b7@FreeBSD.org>
References:  <9518dc38-e44b-42ae-bf87-6039ac278ac8@FreeBSD.org> <ddce2c12-c006-42d0-9441-306c89b91adb@FreeBSD.org> <ZWw-bSo4b1bKYxeF@int21h> <46c52d37-36ec-45fc-8098-1029996c717c@FreeBSD.org> <27c55e4e-21d2-44f7-9436-95fa1e5b4722@FreeBSD.org> <7daaaade-955d-4678-bec4-a34a196b27b7@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000003c98be060cb3ae72
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello Jesper,

I've applied your reversed patch and used makepatch into a ready to use
patch:
https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D247095

thanks

Jesper Schmitz Mouridsen <jsm@freebsd.org> escreveu no dia s=C3=A1bado,
16/12/2023 =C3=A0(s) 22:08:

>
>
> On 10.12.2023 14.08, Jesper Schmitz Mouridsen wrote:
> >
> >
> > On 03.12.2023 11.59, Jesper Schmitz Mouridsen wrote:
> >>
> >>
> >> On 03.12.2023 09.38, void wrote:
> >>> On Sun, Dec 03, 2023 at 08:34:21AM +0100, Jesper Schmitz Mouridsen
> >>> wrote:
> >>>>
> >>>> Just build firefox-esr-115.5.0_1,1  and firefox-116.0.3_1,2 the
> >>>> first runs with aslr disabled, the latter signals 4.
> >>>>
> >>>> Any suggestions on what is going on are appreciated.
> >>>
> >>> What's the uname -aKU ?
> >>
> >> FreeBSD generic 14.0-RELEASE FreeBSD 14.0-RELEASE #0
> >> releng/14.0-n265380-f9716eee8ab4: Fri Nov 10 09:12:14 UTC 2023
> >> root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERI=
C
> arm64 1400097 1400097
> >>
> >>   did you build from ports or poudriere?
> >>  From ports.
> >>
> >> If the
> >>> latter, what's the /etc/make.conf contain?
> >>>
> >>> Please post sysctl -a | grep aslr
> >>>
> >>
> >> kern.elf32.aslr.shared_page: 0
> >> kern.elf32.aslr.stack: 1
> >> kern.elf32.aslr.honor_sbrk: 0
> >> kern.elf32.aslr.pie_enable: 0
> >> kern.elf32.aslr.enable: 0
> >> kern.elf64.aslr.shared_page: 1
> >> kern.elf64.aslr.stack: 1
> >> kern.elf64.aslr.honor_sbrk: 0
> >> kern.elf64.aslr.pie_enable: 1
> >> kern.elf64.aslr.enable: 1
> >> vm.aslr_restarts: 256
> >>
> >> I did the esr build to test the build setup, since also the pkg in the
> >> official pkg repo behaves the same i.e the one before 115.5 since
> >> 115.5 did not hit the pkg repo yet, which works without aslr (set by
> >> proccontrol) So unless 116 introduces something which requires sysctl
> >> changes for the building tool chain while building my test should be
> >> valid.
> >>
> >> Thanks
> >>
> >> /jsm
> >>
> >>
> > Hi
> > Just FYI
> > I have managed to cross-compile firefox115-esr on amd64 to aaarhc64 so
> > that takes me ~20 min compute time to compile as opposed to 5-7 hours o=
n
> > my arm boards... I think it broke somewhere between 115 and 116, but no=
w
> > bisecting is doable to the extend the port patches allows. Can someone
> > btw tell me hove the libwebrtc patches are generated..?
> >
> I build and bisected with --disable-webrtc so I did not need the patches
> for that..
> It breaks here:
> changeset:   743155:5c5cf716aa0b
> user:        Jan de Mooij <jdemooij@mozilla.com>
> date:        Wed Jun 07 16:34:51 2023 +0000
> summary:     Bug 1835876 part 2 - Disable code write protection in
> content processes. r=3Dnbp
>
> [root@freebsd2 /tmp3/bisect/mozilla-unified]# hg log -r 743154
> changeset:   743154:028f981600d7
> user:        Jan de Mooij <jdemooij@mozilla.com>
> date:        Wed Jun 07 16:34:51 2023 +0000
> summary:     Bug 1835876 part 1 - Remove unused
> ProtectionSetting::Protected. r=3Dnbp
>
> Related to w^x.. I can only make it work by reverting the whole of the
> two above commits...
> (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271081#c7) Still
> disabling aslr is required
> /Jsm
>
>

--=20
Nuno Teixeira
FreeBSD Committer (ports)

--0000000000003c98be060cb3ae72
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello Jesper,</div><div><br></div><div>I&#39;ve appli=
ed your reversed patch and used makepatch into a ready to use patch:<br></d=
iv><div><a href=3D"https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D24=
7095">https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D247095</a></div=
><div><br></div><div>thanks<br></div></div><br><div class=3D"gmail_quote"><=
div dir=3D"ltr" class=3D"gmail_attr">Jesper Schmitz Mouridsen &lt;<a href=
=3D"mailto:jsm@freebsd.org">jsm@freebsd.org</a>&gt; escreveu no dia s=C3=A1=
bado, 16/12/2023 =C3=A0(s) 22:08:<br></div><blockquote class=3D"gmail_quote=
" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);=
padding-left:1ex"><br>
<br>
On 10.12.2023 14.08, Jesper Schmitz Mouridsen wrote:<br>
&gt; <br>
&gt; <br>
&gt; On 03.12.2023 11.59, Jesper Schmitz Mouridsen wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 03.12.2023 09.38, void wrote:<br>
&gt;&gt;&gt; On Sun, Dec 03, 2023 at 08:34:21AM +0100, Jesper Schmitz Mouri=
dsen <br>
&gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Just build firefox-esr-115.5.0_1,1=C2=A0 and firefox-116.0=
.3_1,2 the <br>
&gt;&gt;&gt;&gt; first runs with aslr disabled, the latter signals 4.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Any suggestions on what is going on are appreciated.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; What&#39;s the uname -aKU ?<br>
&gt;&gt;<br>
&gt;&gt; FreeBSD generic 14.0-RELEASE FreeBSD 14.0-RELEASE #0 <br>
&gt;&gt; releng/14.0-n265380-f9716eee8ab4: Fri Nov 10 09:12:14 UTC 2023 <br=
>
&gt;&gt; root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GE=
NERIC arm64 1400097 1400097<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0=C2=A0did you build from ports or poudriere?<br>
&gt;&gt; =C2=A0From ports.<br>
&gt;&gt;<br>
&gt;&gt; If the<br>
&gt;&gt;&gt; latter, what&#39;s the /etc/make.conf contain?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Please post sysctl -a | grep aslr<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; kern.elf32.aslr.shared_page: 0<br>
&gt;&gt; kern.elf32.aslr.stack: 1<br>
&gt;&gt; kern.elf32.aslr.honor_sbrk: 0<br>
&gt;&gt; kern.elf32.aslr.pie_enable: 0<br>
&gt;&gt; kern.elf32.aslr.enable: 0<br>
&gt;&gt; kern.elf64.aslr.shared_page: 1<br>
&gt;&gt; kern.elf64.aslr.stack: 1<br>
&gt;&gt; kern.elf64.aslr.honor_sbrk: 0<br>
&gt;&gt; kern.elf64.aslr.pie_enable: 1<br>
&gt;&gt; kern.elf64.aslr.enable: 1<br>
&gt;&gt; vm.aslr_restarts: 256<br>
&gt;&gt;<br>
&gt;&gt; I did the esr build to test the build setup, since also the pkg in=
 the <br>
&gt;&gt; official pkg repo behaves the same i.e the one before 115.5 since =
<br>
&gt;&gt; 115.5 did not hit the pkg repo yet, which works without aslr (set =
by <br>
&gt;&gt; proccontrol) So unless 116 introduces something which requires sys=
ctl <br>
&gt;&gt; changes for the building tool chain while building my test should =
be <br>
&gt;&gt; valid.<br>
&gt;&gt;<br>
&gt;&gt; Thanks<br>
&gt;&gt;<br>
&gt;&gt; /jsm<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt; Hi<br>
&gt; Just FYI<br>
&gt; I have managed to cross-compile firefox115-esr on amd64 to aaarhc64 so=
 <br>
&gt; that takes me ~20 min compute time to compile as opposed to 5-7 hours =
on <br>
&gt; my arm boards... I think it broke somewhere between 115 and 116, but n=
ow <br>
&gt; bisecting is doable to the extend the port patches allows. Can someone=
 <br>
&gt; btw tell me hove the libwebrtc patches are generated..?<br>
&gt; <br>
I build and bisected with --disable-webrtc so I did not need the patches <b=
r>
for that..<br>
It breaks here:<br>
changeset:=C2=A0 =C2=A0743155:5c5cf716aa0b<br>
user:=C2=A0 =C2=A0 =C2=A0 =C2=A0 Jan de Mooij &lt;<a href=3D"mailto:jdemooi=
j@mozilla.com" target=3D"_blank">jdemooij@mozilla.com</a>&gt;<br>
date:=C2=A0 =C2=A0 =C2=A0 =C2=A0 Wed Jun 07 16:34:51 2023 +0000<br>
summary:=C2=A0 =C2=A0 =C2=A0Bug 1835876 part 2 - Disable code write protect=
ion in <br>
content processes. r=3Dnbp<br>
<br>
[root@freebsd2 /tmp3/bisect/mozilla-unified]# hg log -r 743154<br>
changeset:=C2=A0 =C2=A0743154:028f981600d7<br>
user:=C2=A0 =C2=A0 =C2=A0 =C2=A0 Jan de Mooij &lt;<a href=3D"mailto:jdemooi=
j@mozilla.com" target=3D"_blank">jdemooij@mozilla.com</a>&gt;<br>
date:=C2=A0 =C2=A0 =C2=A0 =C2=A0 Wed Jun 07 16:34:51 2023 +0000<br>
summary:=C2=A0 =C2=A0 =C2=A0Bug 1835876 part 1 - Remove unused <br>
ProtectionSetting::Protected. r=3Dnbp<br>
<br>
Related to w^x.. I can only make it work by reverting the whole of the <br>
two above commits... <br>
(<a href=3D"https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271081#c7" =
rel=3D"noreferrer" target=3D"_blank">https://bugs.freebsd.org/bugzilla/show=
_bug.cgi?id=3D271081#c7</a>) Still <br>
disabling aslr is required<br>
/Jsm<br>
<br>
</blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre=
fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"l=
tr"><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committ=
er (ports)</span></div></div>

--0000000000003c98be060cb3ae72--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7U%2Bs-yNUSivER2wtOFqZ95ap8w8FH9k-A16dk4TDDb4NFg>