Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hC5wr-0004b5-HC for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Apr 2019 17:14:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hC5wq-0003Wu-8b for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Apr 2019 17:14:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hC5wp-0003UB-UC for pgsql-hackers@lists.postgresql.org; Thu, 04 Apr 2019 17:14:43 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hC5wm-0007hX-EC for pgsql-hackers@postgresql.org; Thu, 04 Apr 2019 17:14:43 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BB38630BC67C; Thu, 4 Apr 2019 17:14:37 +0000 (UTC) Received: from localhost (ovpn-112-46.rdu2.redhat.com [10.10.112.46]) by smtp.corp.redhat.com (Postfix) with ESMTP id EB7C27F7D0; Thu, 4 Apr 2019 17:14:36 +0000 (UTC) From: Robbie Harwood To: Tom Lane , Stephen Frost Cc: Peter Eisentraut , Alvaro Herrera , David Steele , Joe Conway , Magnus Hagander , Michael Paquier , Nico Williams , PostgreSQL-development Subject: Re: [PATCH v20] GSSAPI encryption support In-Reply-To: <7566.1554391003@sss.pgh.pa.us> References: <1f799b02-d766-0328-45d6-73e5674d0bc2@2ndquadrant.com> <500b1be7-d0aa-96a2-9982-d748609faff5@joeconway.com> <20190403144332.GD6197@tamriel.snowman.net> <7b7035e0-3691-ca63-0957-25d17dc11514@2ndquadrant.com> <5406.1554388830@sss.pgh.pa.us> <20190404144818.GI6197@tamriel.snowman.net> <5945.1554389568@sss.pgh.pa.us> <20190404150054.GJ6197@tamriel.snowman.net> <7566.1554391003@sss.pgh.pa.us> Date: Thu, 04 Apr 2019 13:14:32 -0400 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Thu, 04 Apr 2019 17:14:37 +0000 (UTC) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=-=-= Content-Type: text/plain Tom Lane writes: > Stephen Frost writes: >> * Tom Lane (tgl@sss.pgh.pa.us) wrote: >>> Well, if the caller thinks what is being passed back is an int, >>> it will do a 32-to-64-bit widening, which is almost certainly >>> going to result in a corrupted pointer. > >> Oh, good point. Interesting that it still works then. > > There must be something about the x86_64 ABI that allows this to > accidentally work -- maybe integers are presumed to be sign-extended > to 64 bits by callee not caller? I added some logging and verified > that pgstat.c is seeing the correct string value, so it's working > somehow. > >> I've got a fix for the missing prototypes, I hadn't noticed the issue >> previously due to always building with SSL enabled as well. > > Yeah, I'd just come to the conclusion that it's because I didn't > include --with-openssl, and libpq-be.h's #ifdef nest doesn't expect > that. > > BTW, the kerberos test suite takes nearly 4 minutes for me, is > it supposed to be so slow? My guess is entropy problems as well. If available, configuring /dev/urandom passthrough from the host is a generally helpful thing to do. My (Fedora, Centos/RHEL 7+) krb5 builds use getrandom() for entropy, so they shouldn't be slow; I believe Debian also has started doing so recently as well. I don't know what other distros/OSs do for this. Thanks, --Robbie --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEA5qc6hnelQjDaHWqJTL5F2qVpEIFAlymO3gACgkQJTL5F2qV pEJQ/A//dH9AuCWZ+q0hWF9Dh1v3pxTd+s/oPDFe4mR+IBZ2jrS9Mt1Q8o+l+UDQ eW1PFkvlVFR9LoAeQrOZyXYVDchuUEu3jXW21Y6TsaA2Tx1ZkXrLNZucEBUMUQ0O vW0WnZWJ4zY6mV5KmnqpjTihOSnC7QTyer5m8LtvFH08xR6/SmNyfW6wO8P/YGqO 1LMl82aM6DUcaCrsNI/tf2NvQMC3OZmVOVa9biQ1vQGG2bpX0JnE3V+0MfwD4+nZ 63qzZx5H149TY2056EBgnfybpTyECEDctWqqrs5pe1PspwegwK9dX+BjNk+yz9Rn KZAH4b3YRaks68N3Sc5ICrVuNoToHM7g6B8VEzC02/zHbizFhEc9SxwdmwLMJ6vI TCfrjF4u/KiCfR+0N8JnlT1qfzAowkdVQEV4WVw+He67P6c0Q0u462X91hMOdvyp 5tdcvbRZiOlpzfT+9hmnJo4/Z8LP+Xf6PduBAUt3F7ZE69He8tKv2tJFS+ewSkYb EQRKySkfA72yaXRtbbHqZcY1hc7hcVlLhXBvMPY6CmYahj9SMzxVkWenCk2JtbBX mwjUgBd6xFvix2kx2hSpjU+/Yovfe9i1/zuXoDoYMsCvFf/VjZKxzThvVaVXHcil v8srxMM0GHU4h8yu9no/upTg4HS6MXjdkBdzGlkGHCwjhTsDCfQ= =kMiL -----END PGP SIGNATURE----- --=-=-=--