From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 3iq4Btwgoml/FQ0AWB0awg (envelope-from ) for ; Fri, 27 Feb 2026 17:55:24 -0500 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=qAIMthdw; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 023581E08D; Fri, 27 Feb 2026 17:55:24 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.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,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED 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 BCB5F1E08D for ; Fri, 27 Feb 2026 17:55:22 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id BBD584BA23C5 for ; Fri, 27 Feb 2026 22:55:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BBD584BA23C5 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=qAIMthdw Received: from mail-dl1-x1232.google.com (mail-dl1-x1232.google.com [IPv6:2607:f8b0:4864:20::1232]) by sourceware.org (Postfix) with ESMTPS id 8A83C4BA23C2 for ; Fri, 27 Feb 2026 22:54:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8A83C4BA23C2 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 8A83C4BA23C2 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1232 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772232895; cv=none; b=igmH2MMNurxiPCSSNL+UhpRr6jYRTi1ZQSblROX45BXDBZHNppXPS+UVFbiIk/hO0ZnM28uvfyWDFSONxyL2v1HMtaD1L1+Oo6s2vh3ilHY00GbaFTNIrhCRr8DFIu3Yhl6iMAHZcG7Hc56HaYoRXTHQDQrywpMsbxpZcMPN+W8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772232895; c=relaxed/simple; bh=0WkdbHAadWQpbb5GqjkSHcCmDPX/nL6YBaXWszvNwc8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=JVZk93GxJrqeWBn+bN9IM4LtMqL2H5JzOeJQyXN9Ggvm7uDIJh/+XMuoIn4B/F4SwsS+wKfByegMq2YHBBHmyGVN05/eiiKbY+0Ul34SwV1bNTMU0RY7pCMCVwBSP/RqAPh9mJC2zQPl0/EN86zmb3joFT634sbgNBQV8TD/G7M= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A83C4BA23C2 Received: by mail-dl1-x1232.google.com with SMTP id a92af1059eb24-1271257ae53so3198101c88.1 for ; Fri, 27 Feb 2026 14:54:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1772232894; x=1772837694; darn=sourceware.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=sQoh8NqCUzRJ/eOrI+mq6cIfiX+JQe7PYuM8q/ZfN80=; b=qAIMthdwd6PORVeXzgSlocGphuJjD5A6P7G7z4mieMGk8e7dJyN/aWE5qyGVoPK3NP ZLHNv3Hv6RNVP7aan8GxZm7iyZZd85BOla57GpL7+7pl/VAVFffWH4+2pf8dCSWEAokB ijBWOwMyRE7Qg3oHw8FXumm/wsKjS4+NPlhYQpniqWufCUtZxtIvnMbiWCliUAxlea1D r7obmAG4x08dgqMKp09P4cWJ4qu2HD8R8ydd7Rf/xh715Y2dRTIsX6PsH3x0jtfaGmMJ uSxuZIgh4VxxeYs592e3jvf6uDy/aLgO+Z6nkU/Ncp64EsB4/C/ZSSlJYdSrRb9gHt5U Ijzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772232894; x=1772837694; h=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; bh=sQoh8NqCUzRJ/eOrI+mq6cIfiX+JQe7PYuM8q/ZfN80=; b=hFxw6Mze431rkyF2Fgm/5xxezs1vcWccZyq9YrdcRLuJNTQj3lNYFpI0t2SmgjqQVc IhYv+r/sL6QOYaEVES5AEWBfg4gOfAhRmvHNoLelhwX/JlgjIPcCx/k5gymOCVoL/JlP Sf89uzuynOFy0qWPbpaERWdpdeOQsyAecj0MHAZMQqtw1JvoPr6NeCtAs375UxhWeBwE GXVwrtX9fyBiBiOj/VWSqqAb/ZmgysAbmm1cwJKD27ai+hIBtBy5ISmwfpYz6T0WBmXp /0KfP4DHeHwWuajxBvLnEPG7fbythZUw430noyOeSElmpJWxfE6rCgFeA+3GvxiafgiZ UfJg== X-Forwarded-Encrypted: i=1; AJvYcCUI4AMM78OdHCdYYWNLHFlydDud8OsQkbaWYRYaJrhpuRojBGP8/lrsi24bSGzqcUoCQsyulRdFxE1o4g==@sourceware.org X-Gm-Message-State: AOJu0YyTsAcdJE9AetpBmNtkDpo7imxn42RoxIfWwYkZIkmtFGy6MuN8 QXLNwZmbTHoIr6rejlKElvK0U3GjEXbr9i40lSXUyCJlhhzNRNLHN5RqR1GO/KtPOP0= X-Gm-Gg: ATEYQzxFv2KAg6B7lO1kUaJgGkSkbVOoTuWsCcOzSkn1PlgG1LVxIfmVZn48nm5GYRF 4jW4pS7n5v75k2fXuvNxoTmYeiFpRngLBifsXwB88DFjDX5myWmMUNZ7nI/gGRRkQ93nTpUvY1+ HrataELfGg/aq+H0VZZcil0XkbJ+gd0XLEuKE70ITDEEvWWxHD13mu6AlgPu1I+JNWG6YskDQnS GXKd/LxPwt0o0SQe8e4E/K1mutVXTJTCw9qevWv+KGhvFvroZxkAxsJDoPBdRURqssJiz3tLQBX uF2vgBQZ6DWygbw6uxGsqhFdFkIwPaCrEt+iYRLj2lFr0T73dVmmFtKIDPlbD0J9R8S6ytOlVXr psB2nfU0UThiL/T75XflswJSUv5sLwb3uiD6mgOJcB0tdSfq0qK/A+pD6JCwFddXaQ0oWaL+bjA NJlbHFrPFOsowSJzaN9DOrli2Y2ofqp388cpKILoN0//gk X-Received: by 2002:a05:7022:f94:b0:127:5cd6:fa45 with SMTP id a92af1059eb24-1278fb95b3fmr2196418c88.14.1772232894083; Fri, 27 Feb 2026 14:54:54 -0800 (PST) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-12789a43a18sm7309652c88.13.2026.02.27.14.54.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Feb 2026 14:54:53 -0800 (PST) From: Thiago Jung Bauermann To: "Schimpe, Christina" Cc: Tom Tromey , "gdb-patches@sourceware.org" Subject: Re: [PATCH v2 1/9] gdb: Generalize handling of the shadow stack pointer. In-Reply-To: (Christina Schimpe's message of "Fri, 27 Feb 2026 18:09:09 +0000") References: <20260123080532.878738-1-christina.schimpe@intel.com> <20260123080532.878738-2-christina.schimpe@intel.com> <87ecmg62k2.fsf@tromey.com> User-Agent: mu4e 1.12.15; emacs 30.2 Date: Fri, 27 Feb 2026 19:54:51 -0300 Message-ID: <875x7hhk5g.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 "Schimpe, Christina" writes: >> -----Original Message----- >> From: Tom Tromey >> Sent: Donnerstag, 19. Februar 2026 18:55 >> To: Schimpe, Christina >> Cc: gdb-patches@sourceware.org; thiago.bauermann@linaro.org >> Subject: Re: [PATCH v2 1/9] gdb: Generalize handling of the shadow stack >> pointer. >> >> >>>>> Christina Schimpe writes: >> >> > Until now, handling of the shadow stack pointer has been done in the >> > target dependent implementations of the gdbarch hook >> > 'gdbarch_shadow_stack_push'. Also amd64 and aarch64 linux specific >> > unwinders for the shadow stack pointer are implemented. >> > In a following patch a command line option "-shadow" will be added to >> > the backtrace command to print the shadow stack backtrace. This >> > requires more target-independent logic to handle the shadow stack >> > pointer. To avoid that we duplicate the logic, add new source and >> > header files "shadow-stack" for the implementation of >> > shadow_stack_push and shadow stack pointer unwinding in a target- >> independent way. >> >> This looks reasonable to me, but I think someone else ought to examine the >> arch-specific bits. > > Ok, I'll wait for more feedback on this. Thiago has run some tests for GCS already, > but only with v1 AFAIK. I'm currently looking into these patches. Sorry for the delay. I'll provide my feedback next week. -- Thiago