From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1792) id 118CB3858C83; Tue, 16 May 2023 14:09:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 118CB3858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1684246156; bh=T7TFWR1s51ROr5hVtN/IDRFCXhzSdGaHGSPbwy4IBKw=; h=From:To:Subject:Date:From; b=vR5JBhPVuaJG3VZe1DRN3eF/IQW5HIfVZGPOORQQ7xt+66kpHjRZe0kcMP/kyB6nY 79xI/w4Nzpl7/mQsWVK5ONFb7yh9MjANFeQX+QLB5XZkbkGFCqw3jK2/RIdJCfpkW9 XfEnzIVfIs9cNq60n8lOtKPTMPD+AyXz1Ani/Ijg= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Samuel Thibault To: glibc-cvs@sourceware.org Subject: [glibc] hurd: Fix aligning signal stack pointer X-Act-Checkin: glibc X-Git-Author: Sergey Bugaev X-Git-Refname: refs/heads/master X-Git-Oldrev: 40b68e8cc00ca40348bc084b651c0561d31feb46 X-Git-Newrev: ff0f87632a74a369a2b992f4436ae406065a4012 Message-Id: <20230516140916.118CB3858C83@sourceware.org> Date: Tue, 16 May 2023 14:09:16 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ff0f87632a74a369a2b992f4436ae406065a4012 commit ff0f87632a74a369a2b992f4436ae406065a4012 Author: Sergey Bugaev Date: Mon May 15 11:33:20 2023 +0300 hurd: Fix aligning signal stack pointer Fixes 60f9bf974694d50daf58d46347b06a5975ac5ddd "hurd: Port trampoline.c to x86_64" Checked on x86_64-gnu. Reported-by: Bruno Haible Signed-off-by: Sergey Bugaev Message-Id: <20230515083323.1358039-2-bugaevc@gmail.com> Diff: --- sysdeps/mach/hurd/x86/trampoline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/mach/hurd/x86/trampoline.c b/sysdeps/mach/hurd/x86/trampoline.c index e13c5d85f5..19bddad8e1 100644 --- a/sysdeps/mach/hurd/x86/trampoline.c +++ b/sysdeps/mach/hurd/x86/trampoline.c @@ -200,7 +200,7 @@ _hurd_setup_sighandler (struct hurd_sigstate *ss, const struct sigaction *action /* Align SP at 16 bytes. Coupled with the fact that sigreturn_addr is 16-byte aligned within the stackframe struct, this ensures that it ends up on a 16-byte aligned address, as required by the ABI. */ - sigsp = (void *) ((uintptr_t) sigsp & 16UL); + sigsp = (void *) ((uintptr_t) sigsp & ~15UL); #endif /* Push the arguments to call `trampoline' on the stack. */