| From: | Amul Sul <sulamul(at)gmail(dot)com> |
|---|---|
| To: | Jakub Wartak <jakub(dot)wartak(at)enterprisedb(dot)com> |
| Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: pg_waldump: support decoding of WAL inside tarfile |
| Date: | 2025-11-25 06:37:32 |
| Message-ID: | CAAJ_b94f6sUDWiZY90O-t7SWWeSK0nMWT7AsydKkpAL90m0oMQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Fri, Nov 21, 2025 at 5:14 PM Amul Sul <sulamul(at)gmail(dot)com> wrote:
>
> On Wed, Nov 19, 2025 at 1:50 PM Jakub Wartak
> <jakub(dot)wartak(at)enterprisedb(dot)com> wrote:
> >
> > On Mon, Nov 17, 2025 at 5:51 AM Amul Sul <sulamul(at)gmail(dot)com> wrote:
> > >
> > > On Thu, Nov 6, 2025 at 2:33 PM Amul Sul <sulamul(at)gmail(dot)com> wrote:
> > > >
> > > > On Mon, Oct 20, 2025 at 8:05 PM Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> > > > >
> > > > > On Thu, Oct 16, 2025 at 7:49 AM Amul Sul <sulamul(at)gmail(dot)com> wrote:
> > > > > [....]
> > > > Kindly have a look at the attached version. Thank you !
> > > >
> > >
> > > Attached is the rebased version against the latest master head (e76defbcf09).
> >
> > Hi Amul, thanks for working on this. I haven't really looked at the
> > source code deeply (I trust Robert eyes much more than mine on this
> > one), just skimmed a little bit:
> >
> > 1. As stated earlier, get_tmp_walseg_path() is still vulnerable (it
> > uses predictable path that could be used by attacker in $TMPDIR)
> >
>
> Yeah, I haven't done anything regarding this since I am unsure of what
> should be done and what the risks involved are. I am thinking of
> taking Robert's opinion on this.
>
Per offline discussion with Robert and Jakub, I have updated the patch
to use mkdtemp() as suggested, which is already available in the tree
for similar purposes. Thanks !
Regards,
Amul
| Attachment | Content-Type | Size |
|---|---|---|
| v8-0001-Refactor-pg_waldump-Move-some-declarations-to-new.patch | application/x-patch | 2.3 KB |
| v8-0002-Refactor-pg_waldump-Separate-logic-used-to-calcul.patch | application/x-patch | 2.3 KB |
| v8-0003-Refactor-pg_waldump-Restructure-TAP-tests.patch | application/x-patch | 5.5 KB |
| v8-0004-pg_waldump-Add-support-for-archived-WAL-decoding.patch | application/x-patch | 36.8 KB |
| v8-0005-pg_waldump-Remove-the-restriction-on-the-order-of.patch | application/x-patch | 11.5 KB |
| v8-0006-pg_verifybackup-Delay-default-WAL-directory-prepa.patch | application/x-patch | 1.7 KB |
| v8-0007-pg_verifybackup-Rename-the-wal-directory-switch-t.patch | application/x-patch | 15.6 KB |
| v8-0008-pg_verifybackup-enabled-WAL-parsing-for-tar-forma.patch | application/x-patch | 9.9 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alena Vinter | 2025-11-25 06:45:56 | Re: Resetting recovery target parameters in pg_createsubscriber |
| Previous Message | Chao Li | 2025-11-25 06:16:10 | Re: Row pattern recognition |