Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n4iNM-0003ci-L7 for pgsql-general@arkaria.postgresql.org; Tue, 04 Jan 2022 11:53:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n4iNL-0003JJ-EL for pgsql-general@arkaria.postgresql.org; Tue, 04 Jan 2022 11:53:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n4iNJ-0003J2-JY for pgsql-general@lists.postgresql.org; Tue, 04 Jan 2022 11:53:11 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n4iNF-0005GO-RU for pgsql-general@lists.postgresql.org; Tue, 04 Jan 2022 11:53:09 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 940545C019F; Tue, 4 Jan 2022 06:53:01 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 04 Jan 2022 06:53:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=lmpejlGLvfbtv0htup/cR7rL4Qm tgfisfQAQ1LTg2m4=; b=mLuA38bg71BHW/4rB7yCkeMV6KJOZDmd5PaUvafcWcO sZ5ph5XmjpBCQlG+gjU+0m5Ebwsq+oTvbwfDrRVmUZd3C1zxRAbk9duDTSGCIj5M Eo46Wt0+2Aox3k+2HVmj4bv19UNf8qNeipjS2WBHDlPbc/4v33h2xpOw/ma6nc4f Gsaiu9PfuHdPxVLYKK3RL0B5hHUhlZcKVpulJeYnr6SPENCiaDbG960tmxMPRYsH kq38XoJ03LkoDpd6sh43/NPWxMdG5ktlvdQPqXRMr4kGvBgJ5u7mJzcWKMbdCc/Y O22/e2Z2LU4d2vK0wkxl5SAsScJbE7BWvVNawbcyVLQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=lmpejl GLvfbtv0htup/cR7rL4QmtgfisfQAQ1LTg2m4=; b=IjGSNJNfADY7zXgNhfsKkR L3ON3yyUVhi2cO3JWKAgQCL+LbWvqFRhz6fssTE/Kadrl3hWDwMgiuvrjmS79OH7 UWtE0mek36zEbz1fxLJiHyOT0W+y6ojWr81e1AraM+2Z+souxfYH9/oNklFpZvvC 5TpdjLTIuXzfsVATGzSIbCoxTu88vWaAU4JDi0GzpshKD/QmsBBBhH0y/HyXSjZl tj9tSkV6q7rRS8GmZK/KXbOAAsZLDP/ndy0tcxu6DiIX9OCT3twJgB7GCRMa5rf6 rOxrawRvYtH1F+4+LHae4mGp0esSXVGe6MaASOyObUzNolw4/6AIbhBaSCHQH/SQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudeffedgfeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpeffhf fvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhu ihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrh hnpedvgeduuefhtdeuleettdevjeehheeiveeuieegleetgeeljeelieeuieehgeevhfen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthh grvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 4 Jan 2022 06:52:59 -0500 (EST) Date: Tue, 4 Jan 2022 20:52:56 +0900 From: Michael Paquier To: Christoph Moench-Tegeder Cc: Michael =?iso-8859-1?Q?M=FChlbeyer?= , "pgsql-general@lists.postgresql.org" Subject: Re: md5 issues Postgres14 on OL7 Message-ID: References: <89B7F072-5BBE-4C92-903E-D83E865D9367@trivadis.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5QwP7A4f/JNjqReO" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --5QwP7A4f/JNjqReO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Dec 20, 2021 at 03:22:31PM +0100, Christoph Moench-Tegeder wrote: > Active FIPS mode (/proc/sys/crypto/fips_enabled => 1) on the server does > produce this behaviour. Most likely, this is a build linked with OpenSSL? The way MD5 hashes are computed in Postgres has largely changed in 14, and the code has been refactored so as we rely on the EVP APIs from OpenSSL when building with --with-ssl=openssl, having as direct consequence to allocate a bit more memory every time a hash is computed. My guess is that this comes from pg_cryptohash_create() in cryptohash_openssl.c, with a complain coming from OpenSSL's EVP_MD_CTX_create(), but there are other palloc() calls in this area as well. -- Michael --5QwP7A4f/JNjqReO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmHUNRcACgkQnvQgOdby QH07RA/6A07hk/sAdAIzV1DoA2Qnpwp0904Zc9xKIQSrCmbUVinNookviVcFr3k/ Ikxq69kWRmLMnyhRVkV1w4yjy6v1a+FPejJZ/Uhi6oq175aKGV9HK+e2v3VVG2Ae mBFyF8aEnBspgKpzQnye35LiicZ61UWSQPrnQJoccGbt2ofmBDz9MYzNn1N0khnw PqUJxDH/D+yixy7GYy+RAQk3PE4Hc2DlYRDGIUbbs8va6XkbC2kTrge67SFFUG4U hZ0RxyIwAQN//Q/S19+5TB1nLk8W/SK1d4xU2wEthzG5zpaSHcaIkRMfeF8MPXd5 Z3NP1AGqPahQ7VgJmhVzBj6YU+AeJVWRYOA1dtgl81uPSLJEo774KrCInTfckzcp S/xcf9krjTgspoAJYAFKdw0c5bnZpSb/Hd7QD02Ltq6lBSBBUMEO3iOvXpbTXh5Y cvs3dTICuX813nIvbGC/LiGA+e51KxTNSxxsJx3nINdgJxADEGntm2WJRQpDDJzR i+WpnhUr4v3MNuRg0dqlMdw1objDj1mLFRzQJVoitrCdf2zzA22zl5T7CHdnC4Gf MEtQ3o1tkgXintV7Kpf4nAt95xYsiMOiOx3/EMfe+EnXEnNRzN1J8Bd4jOBs3nKF vbTUjVEPWNqqVVbTqKE3OJX9Pni8zPkmYrNPpxECjyjh3K8Pyoo= =qHzb -----END PGP SIGNATURE----- --5QwP7A4f/JNjqReO--