From nobody Thu Dec 30 15:37:44 2021 X-Original-To: gecko@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 674BE191EEA5 for ; Thu, 30 Dec 2021 15:37:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JPspy2CNxz3smh for ; Thu, 30 Dec 2021 15:37:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1021D1B20B for ; Thu, 30 Dec 2021 15:37:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1BUFbjhV016213 for ; Thu, 30 Dec 2021 15:37:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BUFbi5P016212 for gecko@FreeBSD.org; Thu, 30 Dec 2021 15:37:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: gecko@FreeBSD.org Subject: [Bug 239873] www/firefox and mail/thunderbird don't like the new ASLR "stackgap" feature Date: Thu, 30 Dec 2021 15:37:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Gecko Rendering Engine issues List-Archive: https://lists.freebsd.org/archives/freebsd-gecko List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-gecko@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640878666; 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=UTzPasn/oxoUWL2tL0h/pAjITBYucThNDQ9b6Y28fxQ=; b=qOYahDlJJ3X63UsbhKjo86YP3YEmtwp7SXfAF1kC/p+HE1dAgogLEjtKRLzCcfmvwxxaIA Qo0aSfb0VJdp61Jy6cQpJl89EnI4VGeTo+gnbxKfAC9vl6n8w07hQni9XUOmB+Zo3EqbRH NatQXVv9+u8QQs+Q2bdNbMFazw+g2dWA1tCSxZkSsKHwDZy9sggNFjGUEHfpzQFELEnKEk nrRBCZOq91y4MqHgQGEirFOnzIdpM1HDAgvCv/EbOqc6IplHoT6hIpYBC8MjJljrIec2kP Kd1OGTYP9q/ZmxTaOo04i+UO/+4PqOl/Wu977I9lQw28tK8thpA5H/XQ+f/6BQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640878666; a=rsa-sha256; cv=none; b=dT5V+UXZI6fHnByHy11yMAc3fO+WS0cRCrLgpobnGIDxlRfhoDFX37bXidJHcQ8A3y5uWa nZeFrhgk2LTQKWoGrfsJP4FXJP/paeqKf/DCexziAaTUUnInb03bKhJpaTaZBwIw0L+Lq9 PO6/kRp9/imHzSpWQJh8yq90GlFOZO48MGJD6B/Rlt4p2Z8JW2JRcs/di/aTsu0UouRegJ Mi/5NLA8m6L6h2xKnst9a3DZbiY/Pf7CPVLTAW7LgMAtG3BZZtmig2fCsvFXnbg2OrCTLr KyHVRYea+GrxoHLqGyWq75re6nhgMvEx1CwETg36Unx28m7ag+vgO1MhLfF9YQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239873 --- Comment #20 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dd8247df24c1d3bacadd60a6633d76fb6c= b56fd0e commit d8247df24c1d3bacadd60a6633d76fb6cb56fd0e Author: Dawid Gorecki AuthorDate: 2021-10-13 19:06:05 +0000 Commit: Marcin Wojtas CommitDate: 2021-12-30 15:25:25 +0000 libthr: Use kern.stacktop for thread stack calculation. Use the new kern.stacktop sysctl to retrieve the address of stack top instead of kern.usrstack. kern.usrstack does not have any knowledge of the stack gap, so this can cause problems with thread stacks. Using kern.stacktop sysctl should fix most of those problems. kern.usrstack is used as a fallback when kern.stacktop cannot be read. Rename usrstack variables to stacktop to reflect this change. Fixes problems with firefox and thunderbird not starting with stack gap enabled. PR: 239873 Reviewed by: kib Obtained from: Semihalf Sponsored by: Stormshield MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D31898 (cherry picked from commit 78df56ccfcb40013a3e6904bd6d39836220c3550) lib/libthr/thread/thr_init.c | 19 +++++++++++-------- lib/libthr/thread/thr_private.h | 2 +- lib/libthr/thread/thr_stack.c | 22 ++++++++++++---------- 3 files changed, 24 insertions(+), 19 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=