From nobody Fri Jun 09 10:50:22 2023 X-Original-To: ports-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 4QcyXZ6qtyz4bWQL for ; Fri, 9 Jun 2023 10:50:22 +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 4QcyXZ5mT5z490l for ; Fri, 9 Jun 2023 10:50:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686307822; 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=Bz1ZceyqHxDreD9eL9XgyQuVlzjSmWuG3B47LQEBntk=; b=yqMGYrhRoDpC0LGM/Il6Vrf+uQ04BUYhs8HqeSahxUnHr4aWzLZ/WYrhTZENQKb0HuJFcg mqIyZjFiFYFMEAywUiplsxxJfzZcWSPb7QmkIfWp0pZGS05vZxeBrumtidwWdZ4vT3ysDO k5WzfGvQTdvN34x3CbeK57XchfVMUH88DlSaOaE3Ad0OUMAw+90D7fR4Gum9YvVXF142me Z9igadch3nAt5yXyL5QxxhIBmK2g9Io0Nt8vqQnYacOXJroBrA+iqfViJY/WS9ENIVkPX0 zhkkK9qz0y0jskmL1Ku0TJS6h1J0uZZ7yft6kmEoxFpVcikjOikeycrlsKU+Qg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686307822; a=rsa-sha256; cv=none; b=IQYoTx1gJ0w1nECm4YuCaFw9/+FR14VNgDNAquBpV2HOpXbWqS07lI1HYauUAgVqn8JMXf HfRXoDnwz9iFoAi/H9bn4kEwslSXMFBzuG6aCBo+EVJBOxku3O0pcIMBootv/OF2kjWxcQ uoKhGdKH1pQHNwKEU5bz56l+5nF1SQ2N5rtHIb57TZPzht2RXUmoci+1QbvA/tv2bPINmW NQc0zo/RA9UaeUD3fJBwrESqTwEcGRvD7YqjdpeS4Q3iDtYUAUIVs0PakzRq9/qPrCe2R3 NsiHCkqTQePwVUpImqd4Iwg/hTeBnWnlaxT+wtLpWJ0u8SQXqBe1Gw/XVmRLAw== 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 4QcyXZ4sL4zXkR for ; Fri, 9 Jun 2023 10:50:22 +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 359AoMNj055887 for ; Fri, 9 Jun 2023 10:50:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 359AoMQn055886 for ports-bugs@FreeBSD.org; Fri, 9 Jun 2023 10:50:22 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: ports-bugs@FreeBSD.org Subject: [Bug 271656] [exp-run] with OpenSSL 3.0 in the base system Date: Fri, 09 Jun 2023 10:50:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271656 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dim@FreeBSD.org --- Comment #25 from Dimitry Andric --- (In reply to Antoine Brodin from comment #23) The problem is that BN_ULONG is sometimes defined incorrectly on i386; depending on how the openssl config headers are included, it is sometimes "unsigned long", and sometimes "unsigned long long". For some files it is t= he former, and then the bignum logic tries to shift right with 32 bits, which = is undefined behavior. In particular, the part here: https://github.com/khorben/freebsd-src/blob/khorben/openssl-3.0.9/crypto/op= enssl/include/openssl/configuration.h#L125 : # if !defined(OPENSSL_SYS_UEFI) # undef BN_LLONG /* Only one for the following should be defined */ # define SIXTY_FOUR_BIT_LONG # undef SIXTY_FOUR_BIT # undef THIRTY_TWO_BIT # endif SIXTY_FOUR_BIT_LONG should not be defined on i386, it is normally defined in crypto/bn_conf.h, and I have no idea why openssl tries to define it superflously in configuration.h. In bn_conf.h, the definition is guarded with __LP64__: #ifdef __LP64__ #define SIXTY_FOUR_BIT_LONG #undef SIXTY_FOUR_BIT #undef THIRTY_TWO_BIT #else #undef SIXTY_FOUR_BIT_LONG #undef SIXTY_FOUR_BIT #define THIRTY_TWO_BIT #endif In both files there is some comment about "UEFI builds" so I assume this is= our own customization, and this is not upstream in OpenSSL? --=20 You are receiving this mail because: You are on the CC list for the bug.=