Re: WAL record CRC calculated incorrectly because of underlying buffer modification - Mailing list pgsql-hackers

From Andres Freund
Subject Re: WAL record CRC calculated incorrectly because of underlying buffer modification
Date
Msg-id 20240510155742.sznwmnmllsewjsbc@awork3.anarazel.de
Whole thread Raw
In response to WAL record CRC calculated incorrectly because of underlying buffer modification  (Alexander Lakhin <exclusion@gmail.com>)
Responses Re: WAL record CRC calculated incorrectly because of underlying buffer modification
List pgsql-hackers
Hi,

On 2024-05-10 16:00:01 +0300, Alexander Lakhin wrote:
> and discovered that XLogRecordAssemble() calculates CRC over a buffer,
> that might be modified by another process.

If, with "might", you mean that it's legitimate for that buffer to be
modified, I don't think so.  The bug is that something is modifying the buffer
despite it being exclusively locked.

I.e. what we likely have here is a bug somewhere in the hash index code.

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Nazir Bilal Yavuz
Date:
Subject: Re: Fix parallel vacuum buffer usage reporting
Next
From: Masahiko Sawada
Date:
Subject: Re: Fix parallel vacuum buffer usage reporting