Re: Re: [PATCH] Fix use-after-free after failed pg_checksum_init

From: Grigorev Jurij <ju(dot)grigorev(at)ftdata(dot)ru>
To: Raja Sai pranav <rajasaipranav0(at)gmail(dot)com>
Cc: "daniel(at)yesql(dot)se" <daniel(at)yesql(dot)se>, Kanybekov Kanatbek <k(dot)kanybekov(at)ftdata(dot)ru>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Re: [PATCH] Fix use-after-free after failed pg_checksum_init
Date: 2026-11-06 02:11:36
Message-ID: 55101c47505048eb91bc7a9bd40baaa9@localhost.localdomain
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Sai Pranav,

Thanks for the review and testing!

Attached is v3, rebased on current master. I renamed the test to
015_checksum_helper, as 014 is now taken by 014_vm_truncation too.
The code is unchanged from v2.

The pg_combinebackup suite passes with both Autoconf and Meson on Linux
aarch64, with assertions, debug and OpenSSL enabled.

The pg_verifybackup leak you pointed out can be addressed separately.

Best regards,
Yuriy

Attachment Content-Type Size
v3-0001-Fix-UAF-after-failed-pg_checksum_init.patch application/octet-stream 15.6 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2026-11-06 02:14:57 Re: Report buffer access strategies in EXPLAIN
Previous Message Michael Paquier 2026-11-06 01:58:41 Re: Partitioned index marked valid while a partition is pending detach