From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1118) id BD33A385C40B; Tue, 8 Mar 2022 13:34:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD33A385C40B Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: John David Anglin To: glibc-cvs@sourceware.org Subject: [glibc/release/2.33/master] nptl: Fix cleanups for stack grows up [BZ# 28899] X-Act-Checkin: glibc X-Git-Author: John David Anglin X-Git-Refname: refs/heads/release/2.33/master X-Git-Oldrev: 8f56ecc19b4144d4757b31a47f4505c81724bfe9 X-Git-Newrev: 6d9525b620eac4cbdf790baf4776e85cf08df7c5 Message-Id: <20220308133447.BD33A385C40B@sourceware.org> Date: Tue, 8 Mar 2022 13:34:47 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2022 13:34:47 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6d9525b620eac4cbdf790baf4776e85cf08df7c5 commit 6d9525b620eac4cbdf790baf4776e85cf08df7c5 Author: John David Anglin Date: Mon Feb 28 15:47:38 2022 +0000 nptl: Fix cleanups for stack grows up [BZ# 28899] _STACK_GROWS_DOWN is defined to 0 when the stack grows up. The code in unwind.c used `#ifdef _STACK_GROWS_DOWN' to selct the stack grows down define for FRAME_LEFT. As a result, the _STACK_GROWS_DOWN define was always selected and cleanups were incorrectly sequenced when the stack grows up. (cherry picked from commit 2bbc694df279020a6620096d31c1e05c93966f9b) Diff: --- nptl/unwind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nptl/unwind.c b/nptl/unwind.c index 9c7ed7d7ca..0a2ec9b8bb 100644 --- a/nptl/unwind.c +++ b/nptl/unwind.c @@ -26,7 +26,7 @@ #include #include -#ifdef _STACK_GROWS_DOWN +#if _STACK_GROWS_DOWN # define FRAME_LEFT(frame, other, adj) \ ((uintptr_t) frame - adj >= (uintptr_t) other - adj) #elif _STACK_GROWS_UP