pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix race condition when sharing tuple descriptors. 4+ messages / 1 participants [nested] [flat]
* pgsql: Fix race condition when sharing tuple descriptors. @ 2021-05-29 03:48 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Thomas Munro @ 2021-05-29 03:48 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix race condition when sharing tuple descriptors. Parallel query processes that called BlessTupleDesc() for identical tuple descriptors at the same moment could crash. There was code to handle that rare case, but it dereferenced a bogus DSA pointer. Repair. Back-patch to 11, where commit cc5f8136 added support for sharing tuple descriptors in parallel queries. Reported-by: Eric Thinnes <e.thinnes@gmx.de> Discussion: https://postgr.es/m/99aaa2eb-e194-bf07-c29a-1a76b4f2bcf9%40gmx.de Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/b1d6538903504904db44679355ac109aeda01737 Modified Files -------------- src/backend/utils/cache/typcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix race condition when sharing tuple descriptors. @ 2021-05-29 03:49 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Thomas Munro @ 2021-05-29 03:49 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix race condition when sharing tuple descriptors. Parallel query processes that called BlessTupleDesc() for identical tuple descriptors at the same moment could crash. There was code to handle that rare case, but it dereferenced a bogus DSA pointer. Repair. Back-patch to 11, where commit cc5f8136 added support for sharing tuple descriptors in parallel queries. Reported-by: Eric Thinnes <e.thinnes@gmx.de> Discussion: https://postgr.es/m/99aaa2eb-e194-bf07-c29a-1a76b4f2bcf9%40gmx.de Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d41fda6aa3c1016ef5aedb4bf393ead81f6e3a8f Modified Files -------------- src/backend/utils/cache/typcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix race condition when sharing tuple descriptors. @ 2021-05-29 03:49 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Thomas Munro @ 2021-05-29 03:49 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix race condition when sharing tuple descriptors. Parallel query processes that called BlessTupleDesc() for identical tuple descriptors at the same moment could crash. There was code to handle that rare case, but it dereferenced a bogus DSA pointer. Repair. Back-patch to 11, where commit cc5f8136 added support for sharing tuple descriptors in parallel queries. Reported-by: Eric Thinnes <e.thinnes@gmx.de> Discussion: https://postgr.es/m/99aaa2eb-e194-bf07-c29a-1a76b4f2bcf9%40gmx.de Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/82248f227b6d304e2da13655d8458a98682d2dac Modified Files -------------- src/backend/utils/cache/typcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix race condition when sharing tuple descriptors. @ 2021-05-29 03:49 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Thomas Munro @ 2021-05-29 03:49 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix race condition when sharing tuple descriptors. Parallel query processes that called BlessTupleDesc() for identical tuple descriptors at the same moment could crash. There was code to handle that rare case, but it dereferenced a bogus DSA pointer. Repair. Back-patch to 11, where commit cc5f8136 added support for sharing tuple descriptors in parallel queries. Reported-by: Eric Thinnes <e.thinnes@gmx.de> Discussion: https://postgr.es/m/99aaa2eb-e194-bf07-c29a-1a76b4f2bcf9%40gmx.de Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a15d84470db8f42d3850a007dfa166d3fce5bc66 Modified Files -------------- src/backend/utils/cache/typcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2021-05-29 03:49 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-05-29 03:48 pgsql: Fix race condition when sharing tuple descriptors. Thomas Munro <tmunro@postgresql.org> 2021-05-29 03:49 pgsql: Fix race condition when sharing tuple descriptors. Thomas Munro <tmunro@postgresql.org> 2021-05-29 03:49 pgsql: Fix race condition when sharing tuple descriptors. Thomas Munro <tmunro@postgresql.org> 2021-05-29 03:49 pgsql: Fix race condition when sharing tuple descriptors. Thomas Munro <tmunro@postgresql.org>
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