From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id QE7ROEQwpGf12CUAWB0awg (envelope-from ) for ; Wed, 05 Feb 2025 22:45:08 -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=V8gmFSLt; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id DAB211E105; Wed, 5 Feb 2025 22:45:08 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) 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.0 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 4E2A91E05C for ; Wed, 5 Feb 2025 22:45:08 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EE781385842D for ; Thu, 6 Feb 2025 03:45:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE781385842D 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=V8gmFSLt Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by sourceware.org (Postfix) with ESMTPS id 2E2E13858C51 for ; Thu, 6 Feb 2025 03:44:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2E2E13858C51 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 2E2E13858C51 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1032 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1738813480; cv=none; b=SF/Fucy+2TlEHXFQN5UKDT+BaxeqLLwYIk5ze2sceknovEksHVmwubc1SzQnkcy65Tp6inY2gYBvgODEue3dQjdadUsWsp+exrEsHfs0hJm3yj31DOoiL/y3lR9Pw13x9vFRmxkPeNkFCHcX+9fRllFPRdQwLtwjAvAYGtWdCO0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1738813480; c=relaxed/simple; bh=NKb5CShhPe76Do7fvOj8F0EC0pl8T0usRdmBrk5JpsQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=RQfsy0llFh9OxoHpioAqxOtC5akLT9C65hbPbNhWytXH3MUFwy5PVpNmQ2tmrtf6mGUhqlJkE2dehu4TepqvgRT+v3YqaJ2045uX+KuCVrpt6dcA0vLJ24Hh4gZW8G1tHQ5ZNm2ycfkF83fpKJCi/VNfH8UxuXnJh0+WXMt7KF0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E2E13858C51 Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-2f9e415fa42so722202a91.1 for ; Wed, 05 Feb 2025 19:44:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738813479; x=1739418279; 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=NKb5CShhPe76Do7fvOj8F0EC0pl8T0usRdmBrk5JpsQ=; b=V8gmFSLt0SZ4OZG4DgfruzbJSAoVHHFLAj6fCDnEir34BUAeV8VEnqdW40NtPEUI+J rFWwawCQW7YRq6qYzA+Y/Eq/z19CTtynWICvVsr4tcA8OF0+YiOlgYuYRPnAiwl5hoeC kER+a/+i+vCindjkRU44bnsCRd7eEXAbmc667RmN/GSMjtSAkJKkdr20lyyRApYmgj/E qLnjDJnAnJNOY8YWfZBL2SggxpTd1wGhxAWbDeFsnrGXGBccgtg4quYochqGzAcTNkMo mic30izmlKb3cc7sQwP0qUTO9HJu0ofQuUfcgQXlD8x1tlaXR41HAFV45hMCMVn2KrpB vAkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738813479; x=1739418279; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NKb5CShhPe76Do7fvOj8F0EC0pl8T0usRdmBrk5JpsQ=; b=Q9i0hgWdFOtW9DvjRilRPVR/k2PR/sqr3tqRJx04R6+dpcSNkYzo5u1EUV3fBEepan 92VujCY28vhvBglkc0kRnY8BNC+QX7vH/C+GnO+2qIIimRLyeifSuliAwOhkptPfrjO5 kIjJPzb7469e6qfPijwjIia5cyPBpp0SMzlvbmWxbQB61cW3N34tmZ8X46x2rhoCI8GV HhBkSkDBhT9AQqvef85SNKa9Gz1+eMyfB4yspg8eTIrNfYGfG3LQOmKee61Myh/RL79u ZSbFiR2Lux6SAvwcoh3yvdti+ro4Df1zYPK1ufA8rx2TZC7WXbPKxRSqe4MIboou29/r yp4A== X-Forwarded-Encrypted: i=1; AJvYcCU50Df3ZSv4GdFRc/1Ihknxe+UK4bglRJI1TQ8FZDiSZkUyXWg3UU+9pclmoxd+CHLHC4V1Mc+jdutrbw==@sourceware.org X-Gm-Message-State: AOJu0YzAyHjV5W+PSDj2ZVz4gIDLqjEDWkcM1cQkCfGdD3nHqSS1r8hz nWscx/gI/5va65tJao5FuUFDPm0bzsVv8rTmH3R3Ds4Bt2jEwkq3Ru2e6JWThYc= X-Gm-Gg: ASbGnctDbqgB5ai42ASraFzMLQJY2QE25tk5xWai5+NVQD2/CTkjM/Uf1VCMentzPx8 UQbPaLSOAiEds3zXFiDPWEm9qZHuGIEMxrkKjU9niD3ZIH6IahB3TqPOfk3PfM3gnwYxyWYE2i5 nH60WC0wnbouI3UM8nZkpCpy7MiOwdPbVynPkDnfKEP7LotN8JB80TX6mxQm77c0XiXGZ4pe4Ue 4Mckdb+yJU/PARu+52Vpl+5xMa+RKjAsi8CGzK3OKoqGeq4EpWGOAfMhV2ZwWhnR99rVbRtm5Jl 3wO1CzvtRAQELessmCqd X-Google-Smtp-Source: AGHT+IHnWdRzcnLJlrCO8A/7EwVsKPFGSuMcA1VKUQteGJeERqZjd3rtI/xTnFXgjlaXL6O7CquMdg== X-Received: by 2002:a05:6a00:21c7:b0:724:59e0:5d22 with SMTP id d2e1a72fcca58-73035218f5cmr8314297b3a.20.1738813479110; Wed, 05 Feb 2025 19:44:39 -0800 (PST) Received: from localhost ([189.4.186.22]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-73048a9d0fbsm247867b3a.21.2025.02.05.19.44.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2025 19:44:38 -0800 (PST) From: Thiago Jung Bauermann To: "Schimpe, Christina" Cc: Guinevere Larsen , "gdb-patches@sourceware.org" Subject: Re: [PATCH 00/12] Add CET shadow stack support In-Reply-To: (Christina Schimpe's message of "Tue, 4 Feb 2025 09:40:43 +0000") References: <20241220200501.324191-1-christina.schimpe@intel.com> <87msf2s6od.fsf@linaro.org> User-Agent: mu4e 1.12.8; emacs 29.4 Date: Thu, 06 Feb 2025 00:44:35 -0300 Message-ID: <878qqjhh3w.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: Thiago Jung Bauermann >> Sent: Tuesday, February 4, 2025 4:58 AM >> To: Schimpe, Christina >> Cc: Guinevere Larsen ; gdb-patches@sourceware.org >> Subject: Re: [PATCH 00/12] Add CET shadow stack support >> >> In the meantime, one question: do you still plan to add a "bt -shadow" >> command, or any other shadow stack related command as discussed in the >> thread below? >> >> https://inbox.sourceware.org/gdb/SN7PR11MB7638DE1337F8F0F0282EBD56F99 >> 6A@SN7PR11MB7638.namprd11.prod.outlook.com/ >> >> I ask because for AArch64 Guarded Control Stack (which is equivalent to Intel >> Shadow Stack) I'll need to add commands to enable/disable shadow stacks, and >> also to see which GCS-specific features are enabled and locked in the inferior. > > Hi Thiago, > > Thanks a lot for looking at this. > > Yes, I implemented "bt shadow" as subcommand of the ordinary backtrace command. > I planned to submit it as follow up series once this one is merged. > > If you already want to have a look, the most important commits are: > https://github.com/intel/gdb/commit/7fbb0757af87d490225f91d3950eee7180acf6ad > https://github.com/intel/gdb/commit/e10103076ef3e4c75df91e2246637c2af3ba870a > https://github.com/intel/gdb/commit/c3386a341940e34263e7c396143d784d7fe924be > https://github.com/intel/gdb/commit/16c22643967e1b9d41a317b0bd02d3530f5d9f70 Thank you for the references. I'll look into those commits. > But it also required a number of commits to refactor the backtrace command in general, > which is the reason why I split it up in 2 series. Good idea. -- Thiago