From patchwork Sat Mar 23 17:32:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Bugaev X-Patchwork-Id: 87581 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 EF8D2385828B for ; Sat, 23 Mar 2024 17:37:08 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by sourceware.org (Postfix) with ESMTPS id AE26C3858429 for ; Sat, 23 Mar 2024 17:35:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AE26C3858429 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AE26C3858429 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::12b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711215316; cv=none; b=tzurAyuvv3zu59czzTdvmN6ZWxioaek2Mc58GUG5ldk4fSbT3e6b8w9MKcurkGAF9xF7OLeUsCXIGsMT4ebpC1qhKc8T7zjqFrDt6RGA+wOj9ne+i5ZQVTzYInx87Co5jfdbHAnzjLytnnqoUUPO3L86XItuKVRXh2RZrXTnqCg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711215316; c=relaxed/simple; bh=NUdb8eCiFmEiPxKcMk+jeEv674Nbx5P0y+7tUxlPK+I=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=RZiLZlFIA7N0NtqgUYk+tRBVxnfueOWbsXZPEXHX0GjbenEdLqy+Mx7+IVjm1eBTbZy1eAgM8riFVZw/ijbUZO0uuw8NpgU4La8nhH0uwQUxYtQQYzW8hJ1VThH8elf1OXfklRCTfP177YWk+AqFO/3VyMNuebLXnLVxRF0N0cY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-512f54fc2dbso2697186e87.1 for ; Sat, 23 Mar 2024 10:35:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711215313; x=1711820113; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1D7i6YQs5mgBRIBxoPVveHcwavxxNFlKTyxxrR6T4oM=; b=b0yR8Z6cooITNZXT+v0vMbD8mEqlV/InUxSiE8BIgib9pCCMOi+huVHoQMHzJFuUsH TZCMv5G0BE23gKLvG1pmrrIIC1knxbrZcegS6ecimCuFWFZHSEJUuVDzEsTZSRAGXy82 V+8+WyUg3u0EWOMonKaW8gYaHpNNAhDg5a0v1O1oLhmKuodZMGUABaDIsOhVNH+v5dej VFx1L7T/EGgLOFyi+Jvp0u9F6opiPb7TY09lLaYkknDiatupzTdfuYqfwf3i94DY45tq jq2M/UvCzfzQGlz1oCQE1MbNcp358dnp3t7qsjc5w58/2pyumCtuW94qinX2i+tq3a5q 2uQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711215313; x=1711820113; 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=1D7i6YQs5mgBRIBxoPVveHcwavxxNFlKTyxxrR6T4oM=; b=VKgBgcSdkVUJs/X7M4Udwzp/wljfktcGGHFPt2GFNBFj1QZ8blBx9HdRIdFZ5Q2e/D IIQDvunE3efLPDbJGsBW4eW1AK9d+UsniTaOcyA5LvJyy3sMZJvORZcobwQXC5ro6+5B XyCcPBLE8pOUpkPLCUq71ixTfLOa1GxLkvh/PSBVnGOt7qc0AaiStnyM+i1dRW7SeYF8 o6BDvtKe6gVo8Dzd+6+tYr2oE6aK3Yy2L8LgsE9xAi/e4jhIhkIKR6UtoNcWqa8vRMR+ y4Vxe8IRpqCvQ7RFt4zc64jPvvg/6SreZ3JO0ZHDprnyeYMY/90f3YR/47Laey8koVOe tz9A== X-Gm-Message-State: AOJu0YwBpPghsw1ZzT1EHLM5D+EBhm91P8WQRKhUN/cKRTlrBkrzNhYh DYF6zUDCy3j9reCjm48L3CMkhFFGggJzomJePhAKthvXU83u3mqBBfCHGr7T X-Google-Smtp-Source: AGHT+IGKoSH4vPmFZ14J5+HP1Oh9H6i6fpVh9LOB9pG2uChkdzpYfwRZkim9PXurY50Yug48Df2M+A== X-Received: by 2002:a05:6512:754:b0:513:a479:3ad9 with SMTP id c20-20020a056512075400b00513a4793ad9mr1528121lfs.55.1711215310854; Sat, 23 Mar 2024 10:35:10 -0700 (PDT) Received: from surface-pro-6.. (79-139-171-253.dynamic.spd-mgts.ru. [79.139.171.253]) by smtp.gmail.com with ESMTPSA id g20-20020ac25394000000b00513973dee6fsm361290lfh.150.2024.03.23.10.35.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 10:35:10 -0700 (PDT) From: Sergey Bugaev To: libc-alpha@sourceware.org, bug-hurd@gnu.org Cc: Maxim Kuvyrkov , Luca Subject: [PATCH v2 05/20] hurd: Use the RETURN_ADDRESS macro Date: Sat, 23 Mar 2024 20:32:46 +0300 Message-ID: <20240323173301.151066-6-bugaevc@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240323173301.151066-1-bugaevc@gmail.com> References: <20240323173301.151066-1-bugaevc@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org This gives us PAC stripping on AArch64. Signed-off-by: Sergey Bugaev --- PAC is still not implemented on gnumach side, though. sysdeps/mach/hurd/init-first.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/mach/hurd/init-first.c b/sysdeps/mach/hurd/init-first.c index 22c35747..5777c44c 100644 --- a/sysdeps/mach/hurd/init-first.c +++ b/sysdeps/mach/hurd/init-first.c @@ -222,7 +222,7 @@ _hurd_stack_setup (void **argptr) this may not be a valid pointer in case we're supposed to receive the arguments from the exec server, so we can not dereference it yet. */ - void *caller = __builtin_extract_return_addr (__builtin_return_address (0)); + void *caller = RETURN_ADDRESS (0); /* Init the essential things. */ first_init ();