pgsql: Add support for detecting register-stack overrun on IA64.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add support for detecting register-stack overrun on IA64.
Date: 2010-11-07 03:00:11
Message-ID: E1PEvUJ-0002V6-5H@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add support for detecting register-stack overrun on IA64.

Per recent investigation, the register stack can grow faster than the
regular stack depending on compiler and choice of options. To avoid
crashes we must check both stacks in check_stack_depth().

Back-patch to all supported versions.

Branch
------
REL8_3_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=940de279ce4a626eebbf033cfa72767e85a0f885

Modified Files
--------------
src/backend/tcop/postgres.c | 60 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 60 insertions(+), 0 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2010-11-07 18:03:38 pgsql: Prevent invoking I/O conversion casts via functional/attribute n
Previous Message Tom Lane 2010-11-07 03:00:10 pgsql: Add support for detecting register-stack overrun on IA64.