From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id FTAAOrAnmWqpMiMAWB0awg (envelope-from ) for ; Thu, 03 Sep 2026 03:54:24 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=azq2A0Nl; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id C0A411E166; Thu, 03 Sep 2026 03:54:24 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id C88DC1E09B for ; Thu, 03 Sep 2026 03:54:23 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DB5AE4BA900F for ; Thu, 3 Sep 2026 07:54:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB5AE4BA900F Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=azq2A0Nl Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by sourceware.org (Postfix) with ESMTPS id 43A0B4BA2E04 for ; Thu, 3 Sep 2026 07:53:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 43A0B4BA2E04 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 43A0B4BA2E04 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1133 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1788422038; cv=none; b=rz3ag6nQadwpFwNfxL0jMqlVAdsW0Hu7YVzE+UVn5eNasAK92QcNYMzxcjSMQP3M/QcdYgw9VdWr9vrhyYecXfAphksO+yR3bsziH3EP6evXz90/8KSPn+t3x9Xc3oeuluf0X4A+Dfmum4ajje+HHBvvTunqJw3x1Z1qGaagG+8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1788422038; c=relaxed/simple; bh=my4Pr1cZZICoDLpPn2fk8uIhKtE/vl6c2cdO2wiWxZg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=c7L+EAgptmAy1d61UKU/sDaeQ/6iXcFhw7ftdiF9BcGyyNFdJEDca1LBxbQcUpXRUDPA/jwz8Mirf3l6zFWdJFyA+pKaKESwKRparYuC3JT4qscpF6XvQtObK0GY54nLC8Hmx4Vi2MZo5eG2ae5Pv6Vck/cuYJZSISpsqVpAnuo= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=azq2A0Nl DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 43A0B4BA2E04 Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-85a50f6a7f7so25900157b3.2 for ; Thu, 03 Sep 2026 00:53:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1788422038; x=1789026838; darn=sourceware.org; h=content-type:mime-version:message-id:date:user-agent:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=3cbl1Z58c3TkAbXoWjZZBHF/92U4bA1Um++R2VRmiFM=; b=azq2A0NlPi6u1pZCQS28snjo2oLzTwQBC+iGDtjEYxbO/RsjflenuLYGs2iNE0Ms6O Eh3RD2G90j6tz4GKqfKmx8cyqd0I/Jlf6MaU9ZvTGtiObPovBIBOk0gFeFb9MqEG0wrd Uj3mKq7f57rrWyxu+YugJT6/5WeGlcG8YyrrkVW9hjW4vEB93cGpT/NaLMbBGTzljVCd gvDMU5GFwk1hYK44pxykkIu4v4K3jSnRAWKP8lZVH8e89ZnNe21jwHI+SVrNHUAWM+mC Q5eukwTedCsbGoaSc0Dm/GfKfdrGd5df37q40i3tNWcteyXD4e3TxcyNCKuMmoAZcDgY spxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788422038; x=1789026838; h=content-type:mime-version:message-id:date:user-agent:references :in-reply-to:subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=3cbl1Z58c3TkAbXoWjZZBHF/92U4bA1Um++R2VRmiFM=; b=Z/MvnMCEB32MU5jPSuIJ2t2H8HvVMKyDaBoKRvV7fk3Alb+cLYOWH30d9i6lf1rT6r VKh7Mu5xT0GjU/pYQUwwbalWT3aLcrA2j/Vi5gZ/1sg6QnN4pzUdSvX+cSiOaxQxoKu4 L/6BQOfOJ4E0U4VY6Gtmar+lDg/dkCU2WDZ/TKeafNE881fipimCVHugBSyZj6q2L9lR QLN2Opy9lyVgsJZ/2rDvv0+3ZqsukTY9HtBssjKwtldGgy1YMutmUPQeo85XP9yHYIpC 1dW8Weq450sib3zBIwQnjk8kQRe4s9Ig/4S19JW6+rtNCA3H/1I0wpeIATJ5SblJByWu UPcQ== X-Gm-Message-State: AFuF++lkJOV1PE9RtUKMVNwzRtYkfknNL1UBrR71gWCbjPADKGc9ua2L TJvEOuBPcNY1SxWci4v+1DKtAx0tujl+0y8zG7683m4aGrxKYP02wOs/eoonJZ3NW7k= X-Gm-Gg: AYBFou1+IA8W+FY07JWTFeZPVC0+aUc1FilomCKqL4Bar6tx2Plh77IVrMlboTLKeI0 SQPE52chm74lIWQGkzFfBcAGEOJ8pAQO0Z072UxgtSBSY3SDTNkGIcUEm02IWmJxyw37U6klvQ6 I0Qsv/OJxW28Bhy/2S+snbVtX3rWseCxY0j+nwYr0+rAi+ipSEG725GhLn2fBzSkQjxDCshi3/y FWWUX7npmzVfnS2upCWxIBc98shXNW6ybobeAcy7M2cyF82GuM/HJ4mcIigfWxgry7b+t6KQJ5b q6nXq0u3fSzyA+Qz8wkhZyqlRKL6how1jO2nloORIafQsKEExrOF0n6GwWolS1iz1OlTdBc1Qlh IiO+bXKOGhFVoyMxvjJrK2fc1XUSHWpy63+/7sWzYk2kzdYMPJAV5V0H2rwlG8Vqm7TEbBVUINU po3PUVpPMcNqWIwHxcfOYzdYqWMsso0/H5oAFwDyrvKxMrQqMtKiVRRASyjufgi0Wge3f7CLE= X-Received: by 2002:a05:690c:a190:b0:858:d6fb:2b9f with SMTP id 00721157ae682-86c4de25e17mr41369667b3.5.1788422037625; Thu, 03 Sep 2026 00:53:57 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id 00721157ae682-86c18ac450csm34847777b3.40.2026.09.03.00.53.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2026 00:53:57 -0700 (PDT) From: Thiago Jung Bauermann To: Christina Schimpe Cc: gdb-patches@sourceware.org, tom@tromey.com Subject: Re: [PATCH v4 12/13] gdb: Enable signal trampolines in the shadow stack backtrace. In-Reply-To: <20260708143639.2214689-13-christina.schimpe@intel.com> (Christina Schimpe's message of "Wed, 8 Jul 2026 14:36:38 +0000") References: <20260708143639.2214689-1-christina.schimpe@intel.com> <20260708143639.2214689-13-christina.schimpe@intel.com> User-Agent: mu4e 1.14.3; emacs 30.2 Date: Thu, 03 Sep 2026 07:53:55 +0000 Message-ID: <87jyp2rcrw.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Christina Schimpe writes: > Similar to the normal backtrace we now print "" > in the shadow stack backtrace, too. > > ~~~ > (gdb) bt -shadow > /#0 > /#1 > /#2 0x00007ffff7c4527e in __GI_raise at ../sysdeps/posix/raise.c:26 > /#3 0x0000555555555175 in main at /tmp/gdb.arch/amd64-shadow-stack-signal.c:29 > (gdb) bt > /#0 handler (signo=10) at /tmp/amd64-shadow-stack-signal.c:23 > /#1 > /#2 __pthread_kill_implementation (no_tid=0, signo=10, threadid=) at ./nptl/pthread_kill.c:44 > /#3 __pthread_kill_internal (signo=10, threadid=) at ./nptl/pthread_kill.c:78 > /#4 __GI___pthread_kill (threadid=, signo=signo@entry=10) at ./nptl/pthread_kill.c:89 > /#5 0x00007ffff7c4527e in __GI_raise (sig=10) at ../sysdeps/posix/raise.c:26 > /#6 0x0000555555555175 in main () > at /tmp/amd64-shadow-stack-signal.c:29 > ~~~ > --- > gdb/amd64-linux-tdep.c | 36 +++++++++++-------- > gdb/gdbarch-gen.c | 32 +++++++++++++++++ > gdb/gdbarch-gen.h | 11 ++++++ > gdb/gdbarch_components.py | 13 +++++++ > gdb/shadow-stack.c | 11 ++++++ > gdb/shadow-stack.h | 5 +++ > .../amd64-shadow-stack-backtrace-signal.exp | 2 +- > 7 files changed, 95 insertions(+), 15 deletions(-) Great! Reviewed-by: Thiago Jung Bauermann -- Thiago (he/him)