From nobody Mon Jul 31 07:49:21 2023 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 4RDr443SfYz4pvCH for ; Mon, 31 Jul 2023 07:49:23 +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 4RDr3k6M4gz3PYV for ; Mon, 31 Jul 2023 07:49: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=1690789763; 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; bh=hhSZpnTOMxnS8LjC22oJfLK+67XpNR6mAVSIk/YUnVo=; b=CQptPPL/nASYsV3OfoTwqGUzX2X/n2yiXtZJ8av1AABT4TFIgp84a98FiNm99VFQcpuuJQ SCmUOnaOG+vK4ZlZkIZh25I9ZbQ3W0QqqsgxgVGnSr7yCvCuUfPjWo037VHHUSZpY4PJI5 TCWTTy3mhg9rhlfivPvaC/17vFWivLVaryHQHwV9qqEPXHufKRUhZYMFjGyb5A15m+w7t7 cPOtHPTNfMDj6bt+H7ALZbH04zYMBoYpUG7TjH7NnYfdIKPwEP+YSEndk2/zyF5s1RxHHk iGw4GCPXipnw/4FrZhk+RMVQjN17Myz5pPNvprkumCDNyeTnL8lNhHzS8r6iqw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690789763; a=rsa-sha256; cv=none; b=lfApGe/o/4ZsRn20S4zFaJk32+jvale7vGobEArz1V2CWLtiRiWlFDsDwtisXSqtPpviye YMRSH1BsC4ZLWifQ0Nk1cHG1MIAQ8zQKGuYj3Qiv44aYnNh31aLDtyNL0spv2wUYUh7UPl HgoeyTtUDNXQczLNlTkvlsmnSnTxYGZyGOhIETt906P1GU8N2zUW+LUOVvXcIIF2ZzhAPk avCH66agdPrwfGZVNWQbsPenl5XBjSjP5dYGxX4Q3RH1wEyIKtJlVrJSpwTN1xwv5eb5/B DPrXvtyVu6V9chaQ7kSb62C/C3jiUt0bUdfra54y2w2hwOAKpcSnXiobrh/0/A== 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 4RDr3j6bLhznZq for ; Mon, 31 Jul 2023 07:49:21 +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 36V7nLVU098408 for ; Mon, 31 Jul 2023 07:49:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 36V7nLow098407 for bugs@FreeBSD.org; Mon, 31 Jul 2023 07:49:21 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 272835] kinit(8) segmentation fault with openssl-3.0 in CURRENT Date: Mon, 31 Jul 2023 07:49:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: Joerg.Pulz@frm2.tum.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272835 Bug ID: 272835 Summary: kinit(8) segmentation fault with openssl-3.0 in CURRENT Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: Joerg.Pulz@frm2.tum.de kinit(8) segfaults after my recent upgrade to CURRENT with OpenSSL-3.0 - FreeBSD 14.0-CURRENT amd64 1400093 #0 main-n264294-09e5d91069d1 Looking at the core dump it happens here: frame #1: 0x000032ea670715c8 libkrb5.so.11`ARCFOUR_string_to_key(context=3D0x000051189c638000, enctype=3DKRB5_ENCTYPE_ARCFOUR_HMAC_MD5, password=3D, salt=3Dk= rb5_salt @ 0x000032ea64595c30, opaque=3D, key=3D0x000051189c6b7fc0) at salt-arcfour.c:84:2 Looking at crypto/heimdal/lib/krb5/salt-arcfour.c it happens when calling openssl's EVP_DigestUpdate(): /* LE encoding */ for (i =3D 0; i < len; i++) { unsigned char p; p =3D (s[i] & 0xff); -> EVP_DigestUpdate (m, &p, 1); p =3D (s[i] >> 8) & 0xff; EVP_DigestUpdate (m, &p, 1); } Running from lldb(1) it seems that I end in crypto/openssl/crypto/evp/diges= t.c in EVP_DigestUpdate() in line 412: 410 /* Code below to be removed when legacy support is dropped. */ 411 legacy: 412 return ctx->update(ctx, data, count); Here ctx->update() is causing the segmentation fault. I'm not an openssl expert and have no clue what ctx->update should be and w= here it is coming from, so I'm at the end of the road here. --=20 You are receiving this mail because: You are the assignee for the bug.=