From nobody Sun Jul 24 21:30:09 2022 X-Original-To: bugs@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 4LrbtV4VQGz4Xbnk for ; Sun, 24 Jul 2022 21:30:10 +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 4LrbtV3V6Xz3nTD for ; Sun, 24 Jul 2022 21:30:10 +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 4LrbtV2ZJrzYTs for ; Sun, 24 Jul 2022 21:30:10 +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 26OLUAUZ066133 for ; Sun, 24 Jul 2022 21:30:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26OLUApC066132 for bugs@FreeBSD.org; Sun, 24 Jul 2022 21:30:10 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262378] emulators/wine-devel won't start on CURRENT due to ASLR changes Date: Sun, 24 Jul 2022 21:30:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: se@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658698210; 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=LozkisFSVA20XwAPwBkDEZZ5pj4g2ej1H+QG4ztTgOs=; b=yKNHqmnbyr7Vbpt5GvCkkZutnQtR8dZ5ZUj1UMSZ2WkmqKDn7OJbmXOZyD4NqJ98q9XZ4R fwJpfjav0QZI0K8tM9O8BAPmhSsCBm2gTQ+/j03soFqoKY6lUiNz3N2HupY7GmFkD8NBW7 9+eKFcO8p2PVLp4/3buHWTDDfX8ENAgDd60R/sYbntS3vUvQ5TW/6BiIhE0BQ5Oa3nxmOS nw8vbqeo8x3HGXmGeWp3xkDi+IpiGZspMio3XT5MNgvSmVDf4ORJ7HahyP6xaSOUATP327 K5jvqOoCpDUQYtMsDpNgp1afJTP8rf6/UtCVT7Nuy4pj5puCDIMKBDsUVrvPQg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658698210; a=rsa-sha256; cv=none; b=RZQkLl7wGAJAb/PLilBPgQjY4UXxY9Fn/KpeBVO2h9xtW3py1FLtRsndwsplY79D1hf2W5 /fxZTokPKTBTJ2zpCDmYgeRGWq5IEqvB/X/8+SHkuwHiovXmF+VnK1RtLPBFNYG7ksSbrT YizWXKJCcuTPw6pKopjRTlMntAsOypRokBR6VMG8vhNsKCnug4Xsw+R9jbYepiRBhoK2it rWioLwZ/CQ48MebAHnTMyOsKbCY5zMkb/WtBcvy47reBxUXGpvx58HBZDsKOOWZAe5ggP5 n3w5nA3uKYHi8CH3Ik7qrPRlkq6Td7d+5A9xUvcbFZANtQa8dT2y5zluSQK8wQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262378 Stefan E=C3=9Fer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Progress |Closed Resolution|--- |FIXED --- Comment #14 from Stefan E=C3=9Fer --- (In reply to Alexander Vereeken from comment #13) Thank you for reminding me that there are other Wine ports that have the sa= me rum-time issue with ASLR: I have applied the same elfctl -noalsr fixup to the binaries created by the emulators/wine and emulators/wine-proton ports. Disabling ASLR on the Wine binaries is only a work-around, but the correct = fix is much more complex and requires a new function to be implemented to provi= de suitable mapping addresses to be used by Wine when it allocates memory. I have looked at the code that has been implemented to solve this issue on macOS, and it is not directly applicable to FreeBSD - therefore selectively exempting the Wine binaries from ASLR is the much quicker solution to a pressing problem ... I'll close this PR, since the issue has been dealt with (admittedly in a=20 sub-optimal way, but the macOS patch mentioned in comment 12 does the same thing in a slightly different way). If you think that disabling ASLR is not good enough, then feel free to open= a feature request PR for the missing functionality that would allow ASLR to be enabled for Wine on FreeBSD. --=20 You are receiving this mail because: You are the assignee for the bug.=