From patchwork Mon May 15 08:33:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Bugaev X-Patchwork-Id: 69332 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 393DB3853543 for ; Mon, 15 May 2023 08:33:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 393DB3853543 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1684139638; bh=JX6S7gJdO09nvRGFcT9btqxQ/L+WQ/o5IdBXZfCXNIw=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=cW4MNRqk0bHvgCOrZxPI7AEwSsTvyRLWVZkNdqGTC44Nx6hN1X4BH1ZaTDO0a5Ic0 eY6YK6m56jmcRBEeAZEplUY6vfgAa6+C6rBsJCESigugpDStBIIKpyKkYGmb7CJEvx 7AfNa4jHJ5Xy1FoR66gXi3Xo3PUhUVF/lxHe3AwQ= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by sourceware.org (Postfix) with ESMTPS id 28D84385735A for ; Mon, 15 May 2023 08:33:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 28D84385735A Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2ac8ee9cf7aso114432581fa.2 for ; Mon, 15 May 2023 01:33:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684139606; x=1686731606; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JX6S7gJdO09nvRGFcT9btqxQ/L+WQ/o5IdBXZfCXNIw=; b=gA6POwE5mQEDgwBe57VmFcIbfEZ6q1f97+SrKY+dtGyFlskywp7lHd3UXIysl9V2PS PALsxPci63Z943u14Mxc0B3rJz8fYdOLvPm1RviFb0XekotbjcaKMDI9r8gdrYsO7sB3 P7AE3gWVo83k+BVvk2LYfIMfxF1jvodDZPofC5L2aFjLPBxbBIbjpBhaV9pO1xSJjL8F dyDGTzczcwW/Cd9H2tTqFYV3piYU3orzlB8Ez5JnbGbGDcDPsVcj2Xp/SIIHIC2YUzwC 7FWyE8bLOHP9eUlF3SmdwRAB+xDyTiwx7ADpSs77t7ajPSrOX3V7+kM+SuhMw5THStfK vchw== X-Gm-Message-State: AC+VfDx6mJKZteWAp9eynTA5vwgZVfjFZBhgqnfCjLwzBG0MGvfUn1KF 5w2H5g1v4gH/hig0HUqwYZ1VGp3qJkM= X-Google-Smtp-Source: ACHHUZ7O72GaWQjMYbw8la3spbZb63vrDRQfJ92bem7SZ2M+XzrqVgtQG6TBUu3liA3Is2mKduNJlA== X-Received: by 2002:a2e:87cc:0:b0:2a7:b168:9e87 with SMTP id v12-20020a2e87cc000000b002a7b1689e87mr6481681ljj.18.1684139606029; Mon, 15 May 2023 01:33:26 -0700 (PDT) Received: from surface-pro-6.. ([194.190.106.50]) by smtp.gmail.com with ESMTPSA id p3-20020a05651238c300b004f251e73fc5sm2510677lft.30.2023.05.15.01.33.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 01:33:25 -0700 (PDT) To: libc-alpha@sourceware.org, bug-hurd@gnu.org Cc: Bruno Haible Subject: [PATCH 1/4] hurd: Fix aligning signal stack pointer Date: Mon, 15 May 2023 11:33:20 +0300 Message-Id: <20230515083323.1358039-2-bugaevc@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230515083323.1358039-1-bugaevc@gmail.com> References: <20230515083323.1358039-1-bugaevc@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Sergey Bugaev via Libc-alpha From: Sergey Bugaev Reply-To: Sergey Bugaev Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" Fixes 60f9bf974694d50daf58d46347b06a5975ac5ddd "hurd: Port trampoline.c to x86_64" Checked on x86_64-gnu. Reported-by: Bruno Haible Signed-off-by: Sergey Bugaev --- 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 e13c5d85..19bddad8 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. */