pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix race condition where heap_delete() fails to pin VM page.
Date: Thu, 22 Sep 2022 18:45:05 +0000
Message-ID: <E1obRC5-001Xaj-Da@gemulon.postgresql.org> (raw)

Fix race condition where heap_delete() fails to pin VM page.

Similar to 5f12bc94dc, the code must re-check PageIsAllVisible() after
buffer lock is re-acquired. Backpatching to the same version, 12.

Discussion: https://postgr.es/m/CAEP4nAw9jYQDKd_5Y+-s2E4YiUJq1vqiikFjYGpLShtp-K3gag@mail.gmail.com
Reported-by: Robins Tharakan
Reviewed-by: Robins Tharakan
Backpatch-through: 12

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/dd6070bc81733c3174f2e257d43908f98b0255fb

Modified Files
--------------
src/backend/access/heap/heapam.c | 30 +++++++++++++++++++-----------
1 file changed, 19 insertions(+), 11 deletions(-)



view thread (5+ messages)  latest in thread

Message-ID: <E1obRC5-001Xaj-Da@gemulon.postgresql.org>
Permalink:  ../E1obRC5-001Xaj-Da@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1obRC5-001Xaj-Da@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: jdavis@postgresql.org
  Subject: Re: pgsql: Fix race condition where heap_delete() fails to pin VM page.
  In-Reply-To: <E1obRC5-001Xaj-Da@gemulon.postgresql.org>
  References: <E1obRC5-001Xaj-Da@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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