From nobody Sun Dec 17 14:08:59 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4StPvd4sBBz53gxd for ; Sun, 17 Dec 2023 14:09:01 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4StPvd2XLzz4Wj3; Sun, 17 Dec 2023 14:09:01 +0000 (UTC) (envelope-from jsm@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702822141; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+rvTKXohCLIYWjRylRF1Nr2AOfpa5uN2WsefBTcVXas=; b=axEy8FMpdeUYe9yO1TYmF9TElkyr4NSo3sH/3ALBZ3VUdzw4gT2+d3Su2puPCr02b1wvtH 35ntt6K4kmg4ZGYaSHUHdfzj3AHCgQ+j2LaW6kY4jRt0suMlW9PURkGHQmw+8ISPABCMrX YwSrEJpStH5rN9VwUVxCiZqiJRL6vInjKLTT47j+lEPzDoJB2lhu6qG0kke080gX8D5Zx5 wPw9bHnQ4l1dqsDXpz3dvctV7YGjGtcYtNyThwTlXaOdroZetLuF5FEo2WkkPNzfI3QOVO g/GdlrVOw/zJDBtt9t/Dm6pClDYK4fhVSLP9g2yVL234QuCVfv/Lz1JQxXKlaA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702822141; a=rsa-sha256; cv=none; b=EIs04MfkQgEa73tJH/Z+IIUTwvRxxlxJdlqBTXm/0AxXU7V3X3o3PnCv0lWB/kwpRL43Dn t+xOGg/M7O6FA7utYQ8HL7jhEshph4TvSGj3A+jezfqKz4N218yNxTGE9P6/fVsGRD8Bm1 aHi7ybEtAQieI9ywQn2YClZ+GAQYOzTXNrdYza9Qxsf+iawhHh2zjR2/mXZ3qcF1DX5IbC JLys8mgWKD/hRuPTPjiq9s3XKEIQPvphkyGfyPzbSZb0/Pbn7jcdrnl4CN4MKliiUFnIfl UKosNjeqoBfs5XlGx4TpnRhyKvdWXX2ZP//XC/Gm95/hDI0hhQA59lXN3D+Pxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702822141; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+rvTKXohCLIYWjRylRF1Nr2AOfpa5uN2WsefBTcVXas=; b=DLteoasNzN2UwxR9kj7VaJjqUFDK3lswqb4YXXGW7Tf/ewXh6rIP9kcRPu0WnhyODFEcWi J8bN29tU+FZa9rBi8Fq+48VI4ha+qtV6u993bD4qfCv08XS4AKts7WEY7qpCX4RBMx5k7k oakwOWPzF3cHBKgl44elR4ozwScsxs9I1MC/DEvsyf4epVCqd4j3DqQcXcGDZdOS7+VtYL NN/2J5DNqQCKBf/ZIDn1h2MkP3s39gNSWIFsC2EbkwslBYpkNBNgxSsApa04E8tRoJeGE3 HuVq15m+R8lJI1FMvf6PTCHh4rknvBr8zhDaH5ZBO0YcioDBUNs6JJbmgu3F+g== Received: from [192.168.1.5] (mail.northatlanticmusicsupplies.com [212.237.182.202]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: jsm) by smtp.freebsd.org (Postfix) with ESMTPSA id 4StPvc63ygz1Bfl; Sun, 17 Dec 2023 14:09:00 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Message-ID: Date: Sun, 17 Dec 2023 15:08:59 +0100 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: firefox broken on arm64 Content-Language: en-US To: Nuno Teixeira , freebsd-arm@freebsd.org References: <9518dc38-e44b-42ae-bf87-6039ac278ac8@FreeBSD.org> <46c52d37-36ec-45fc-8098-1029996c717c@FreeBSD.org> <27c55e4e-21d2-44f7-9436-95fa1e5b4722@FreeBSD.org> <7daaaade-955d-4678-bec4-a34a196b27b7@FreeBSD.org> From: Jesper Schmitz Mouridsen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Also see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271081#c11 On 17.12.2023 13.21, Nuno Teixeira wrote: > 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=247095 > > > thanks > > Jesper Schmitz Mouridsen > > escreveu no dia sábado, 16/12/2023 à(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/GENERIC 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 on > > my arm boards... I think it broke somewhere between 115 and 116, > but now > > 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 > > date:        Wed Jun 07 16:34:51 2023 +0000 > summary:     Bug 1835876 part 2 - Disable code write protection in > content processes. r=nbp > > [root@freebsd2 /tmp3/bisect/mozilla-unified]# hg log -r 743154 > changeset:   743154:028f981600d7 > user:        Jan de Mooij > > date:        Wed Jun 07 16:34:51 2023 +0000 > summary:     Bug 1835876 part 1 - Remove unused > ProtectionSetting::Protected. r=nbp > > 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=271081#c7 > ) Still > disabling aslr is required > /Jsm > > > > -- > Nuno Teixeira > FreeBSD Committer (ports)