Re: pg_control is missing a field for LOBLKSIZE - Mailing list pgsql-hackers

From Stephen Frost
Subject Re: pg_control is missing a field for LOBLKSIZE
Date
Msg-id 20140604175719.GK2556@tamriel.snowman.net
Whole thread Raw
In response to Re: pg_control is missing a field for LOBLKSIZE  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pg_control is missing a field for LOBLKSIZE  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> There are at least two places in inv_api.c where we have
> "Assert(pagelen <= LOBLKSIZE)" that is protecting a subsequent memcpy
> into a local variable of size LOBLKSIZE, so that the only thing standing
> between us and a stack-smash security issue that's trivially exploitable
> in production builds is that on-disk data conforms to our expectation
> about LOBLKSIZE.  I think it's definitely worth promoting these checks
> to regular runtime-if-test-and-elog.

Agreed.  Promoting that to a run-time check seems well worth it to me.
Thanks,
    Stephen

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_control is missing a field for LOBLKSIZE
Next
From: Robert Haas
Date:
Subject: Re: Proposing pg_hibernate