Re: basebackup.c's sendFile() ignores read errors

From: Jeevan Chalke <jeevan(dot)chalke(at)enterprisedb(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Jeevan Ladhe <jeevan(dot)ladhe(at)enterprisedb(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: basebackup.c's sendFile() ignores read errors
Date: 2019-09-06 06:08:12
Message-ID: CAM2+6=XhqoKikwEDs5b-BQFVGYSArSRwTkbWeDAap9g1NXh-Rg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Sep 5, 2019 at 11:40 PM Robert Haas <robertmhaas(at)gmail(dot)com> wrote:

> On Fri, Aug 30, 2019 at 7:05 AM Jeevan Ladhe
> <jeevan(dot)ladhe(at)enterprisedb(dot)com> wrote:
> >> Fixed both comments in the attached patch.
> >
> > Thanks, the patch looks good to me.
>
> Here's a version of the patch with a further change to the wording of
> the comment. I hope this is clearer.
>

Yep.

>
> I think this needs to be back-patched all the way back to 9.4, and it
> doesn't seem to apply cleanly before v11. Any chance you could
> prepare a version for the older branches?
>

Attached patch for v10 and pre. The same v10 patch applies cleanly.

Changes related to the page checksum verification is not present on v10 and
pre, and thus those changes are not applicable, so removed those. Also,
wal_segment_size is XLogSegSize over there, adjusted that.

>
> Thanks,
>
> --
> Robert Haas
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>

Thanks
--
Jeevan Chalke
Technical Architect, Product Development
EnterpriseDB Corporation
The Enterprise PostgreSQL Company

Attachment Content-Type Size
fread-error-check-v3-10.patch text/x-patch 1.2 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrey Borodin 2019-09-06 06:20:12 Re: amcheck verification for GiST
Previous Message Amit Langote 2019-09-06 05:59:25 Re: CVE-2017-7484-induced bugs, or, btree cmp functions are not leakproof?