pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix bugs in libpq's management of GSS encryption state. 3+ messages / 1 participants [nested] [flat]
* pgsql: Fix bugs in libpq's management of GSS encryption state. @ 2020-07-13 15:58 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2020-07-13 15:58 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix bugs in libpq's management of GSS encryption state. GSS-related resources should be cleaned up in pqDropConnection, not freePGconn, else the wrong things happen when resetting a connection or trying to switch to a different server. It's also critical to reset conn->gssenc there. During connection setup, initialize conn->try_gss at the correct place, else switching to a different server won't work right. Remove now-redundant cleanup of GSS resources around one (and, for some reason, only one) pqDropConnection call in connectDBStart. Per report from Kyotaro Horiguchi that psql would freeze up, rather than successfully resetting a GSS-encrypted connection after a server restart. This is YA oversight in commit b0b39f72b, so back-patch to v12. Discussion: https://postgr.es/m/20200710.173803.435804731896516388.horikyota.ntt@gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/25fe5ac45a736e50d2b85280a3cb0ce169f583f3 Modified Files -------------- src/interfaces/libpq/fe-connect.c | 37 +++++++++---------------------------- 1 file changed, 9 insertions(+), 28 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Fix bugs in libpq's management of GSS encryption state. @ 2020-07-13 15:58 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2020-07-13 15:58 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix bugs in libpq's management of GSS encryption state. GSS-related resources should be cleaned up in pqDropConnection, not freePGconn, else the wrong things happen when resetting a connection or trying to switch to a different server. It's also critical to reset conn->gssenc there. During connection setup, initialize conn->try_gss at the correct place, else switching to a different server won't work right. Remove now-redundant cleanup of GSS resources around one (and, for some reason, only one) pqDropConnection call in connectDBStart. Per report from Kyotaro Horiguchi that psql would freeze up, rather than successfully resetting a GSS-encrypted connection after a server restart. This is YA oversight in commit b0b39f72b, so back-patch to v12. Discussion: https://postgr.es/m/20200710.173803.435804731896516388.horikyota.ntt@gmail.com Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/8e6f134a9a8db52cbd2818ce8a60b9e5cdadfc8f Modified Files -------------- src/interfaces/libpq/fe-connect.c | 37 +++++++++---------------------------- 1 file changed, 9 insertions(+), 28 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Fix bugs in libpq's management of GSS encryption state. @ 2020-07-13 15:58 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2020-07-13 15:58 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix bugs in libpq's management of GSS encryption state. GSS-related resources should be cleaned up in pqDropConnection, not freePGconn, else the wrong things happen when resetting a connection or trying to switch to a different server. It's also critical to reset conn->gssenc there. During connection setup, initialize conn->try_gss at the correct place, else switching to a different server won't work right. Remove now-redundant cleanup of GSS resources around one (and, for some reason, only one) pqDropConnection call in connectDBStart. Per report from Kyotaro Horiguchi that psql would freeze up, rather than successfully resetting a GSS-encrypted connection after a server restart. This is YA oversight in commit b0b39f72b, so back-patch to v12. Discussion: https://postgr.es/m/20200710.173803.435804731896516388.horikyota.ntt@gmail.com Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e8b22a8a2b65a678d38a120bf7b8cadc144cad17 Modified Files -------------- src/interfaces/libpq/fe-connect.c | 37 +++++++++---------------------------- 1 file changed, 9 insertions(+), 28 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2020-07-13 15:58 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-07-13 15:58 pgsql: Fix bugs in libpq's management of GSS encryption state. Tom Lane <tgl@sss.pgh.pa.us> 2020-07-13 15:58 pgsql: Fix bugs in libpq's management of GSS encryption state. Tom Lane <tgl@sss.pgh.pa.us> 2020-07-13 15:58 pgsql: Fix bugs in libpq's management of GSS encryption state. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox