From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id uj0GJm6o7Ggjvy0AWB0awg (envelope-from ) for ; Mon, 13 Oct 2025 03:21:18 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ngjN2mcV; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 84C8C1E04C; Mon, 13 Oct 2025 03:21:18 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,HTML_MESSAGE,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 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 A06DA1E04C for ; Mon, 13 Oct 2025 03:21:16 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A43183858D26 for ; Mon, 13 Oct 2025 07:21:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A43183858D26 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ngjN2mcV Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by sourceware.org (Postfix) with ESMTPS id 2CDF53858D33 for ; Mon, 13 Oct 2025 07:19:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2CDF53858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2CDF53858D33 Authentication-Results: server2.sourceware.org; arc=fail smtp.remote-ip=192.198.163.13 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1760339949; cv=fail; b=j4bVnDTP3ZsbFMYG36/RTXbKhV+hQoacJy793490mssN/8M1Nj6fcaAitpePxc+sx+HNClOpmpvMPobDWhP5m3uLMuaj9SALZ8z9GyXf/uV+ejS8Vt6W1zxGgIPe+DwZPLbWLNJnxtvowWfabXNdqx3jGVxmopXvDEmvP0txRzo= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1760339949; c=relaxed/simple; bh=T/YuIClxtq4fWnAS2BIcIAlGqyaI2azhutSE3Iv/W3E=; h=DKIM-Signature:MIME-Version:From:To:Subject:Date:Message-ID: MIME-Version; b=SbRjBrf2jbgdZQUZABOcDELr/V7zDaa25+Apyx46sJ5KRy1ajX540gEssQoyWfFpGIXGlerDaX6kCpjb3CC0pNknDr3kwYAPILSAjWPfMVq9+fuu1296Zlcr1g9qOBaH7Y2zwmQYdXtLcculkNdGQiVMH0NCnRAi8XQkf6lxco8= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1760339949; x=1791875949; h=from:to:cc:subject:date:message-id:references: in-reply-to; bh=T/YuIClxtq4fWnAS2BIcIAlGqyaI2azhutSE3Iv/W3E=; b=ngjN2mcVEUF8sWwxo32KPvdR8wMbYeEs4enB4GzvLJQ3Kw8WgxWJMTIS /tDrGQ6WlggibFUBZmMC74/OHIhLNhQm+RX1XO3tnzMAXZesTtvv12DMp N7I9JcGeEw64enhK7jYvc0MhLhPx7od7CbhluAjZYtd3SrrymCpHJ93YR 0oTQ5UDHBeYN+cYR/0rJOVPmhB7XxhkqgFfJofWH47t+n2J8HJwNQzkmG lJof3M0n+YZSqGbuxi7mO8PGb4wkAaKnXc7iRHEXmsJ8NEXF1RckWoeuj TeRph1e7rm/iEGHhsWfhll78hroEcgJJwi4el6mXA4XFu3WE1k34+jp8k A==; X-CSE-ConnectionGUID: SsRlDBp0TbW13GJiiEiyyg== X-CSE-MsgGUID: mSVZ1WBoTSimG3cnQk8WNg== X-IronPort-AV: E=McAfee;i="6800,10657,11580"; a="65095135" X-IronPort-AV: E=Sophos;i="6.19,224,1754982000"; d="scan'208";a="65095135" Content-Type: multipart/mixed; boundary="===============5635314625930778117==" MIME-Version: 1.0 Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2025 00:19:07 -0700 X-CSE-ConnectionGUID: tqjkEImXSlCTbIr5iGxHOg== X-CSE-MsgGUID: 3j1Ir5n+RSWvc5MXauOe7g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,224,1754982000"; d="scan'208";a="180765820" Received: from fmsmsx903.amr.corp.intel.com ([10.18.126.92]) by orviesa010.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2025 00:19:07 -0700 Received: from FMSMSX901.amr.corp.intel.com (10.18.126.90) by fmsmsx903.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.27; Mon, 13 Oct 2025 00:19:06 -0700 Received: from fmsedg903.ED.cps.intel.com (10.1.192.145) by FMSMSX901.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.27 via Frontend Transport; Mon, 13 Oct 2025 00:19:06 -0700 Received: from PH8PR06CU001.outbound.protection.outlook.com (40.107.209.64) by edgegateway.intel.com (192.55.55.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.27; Mon, 13 Oct 2025 00:19:06 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=U1MXMswyC7E/y+n2Z6EE9inUJxGHqhj8u5us0MOI1o1eSHcMPBYA//xNWrXRqaTk+60fswxwwAK26fPgyE0AJribGGkRvYpMGfkZw35amLHDc/IMgI+d6hqjG8ISgOVGO2AhirqdW5F7xD0HfawnIfgRFccYNLSK40dSXdDrAOWk67/7LcW77NhjxvGgr2+NeFo+174BM/otOpvmXeo+oaGuL1NOKP6xj6nIQFgjcuVsGoGp0Dkpg5Ff6tIBKG9Mj7N5nkkm4BbykDvBDwF6MbonOBiDaORHpQC3QQbffC/ngg/flVWM7OC0RwFiDABmf/HGcAiNMQqA6d2UNxJWlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=R5gPn3DXHLEOREeeGDhSyzOJg5f6wb0ecx6t77o378U=; b=xxWN91AbLDD5yZ2t2lTcLZQJyPXd/1oP8wlnLTJ6Zyh1G0ObwVd9Fonz2Rjtail8c+wE1Z2ZPglCfiEF+082lWjWF0aJMi5diz3r8Y+VfNZrdcb/LLMZkk58v882Zixn382NJSPy2dHfiEAEwVe4V8O08LVd6IDgUfKdRtcwQ+WKz9XwXWHnbkKQS1FZ7KZ6D9lVXPzcGEnwZDOBwBFS7ZJT5+Ak3pQUGTtWS7UsKJBC2hW/+DuEACpPKxmR+Hk5P+eoCgZeOgbZy3PurLRsIUPpql1Pg4D5uWw+84sjhx19EG/KgRE+XvEUJHJbErSkjvZHgHeyEcdb8VxMlNeb7w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from SN7PR11MB7638.namprd11.prod.outlook.com (2603:10b6:806:34b::22) by SJ5PPF0D72A1BA6.namprd11.prod.outlook.com (2603:10b6:a0f:fc02::80c) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9203.12; Mon, 13 Oct 2025 07:19:04 +0000 Received: from SN7PR11MB7638.namprd11.prod.outlook.com ([fe80::25b8:16dc:755e:34d1]) by SN7PR11MB7638.namprd11.prod.outlook.com ([fe80::25b8:16dc:755e:34d1%5]) with mapi id 15.20.9203.009; Mon, 13 Oct 2025 07:19:04 +0000 From: "Schimpe, Christina" To: Thiago Jung Bauermann CC: Eli Zaretskii , "gdb-patches@sourceware.org" Subject: RE: [PATCH 6/9] gdb: Implement 'bt shadow' to print the shadow stack backtrace. Thread-Topic: [PATCH 6/9] gdb: Implement 'bt shadow' to print the shadow stack backtrace. Thread-Index: AQHcLHyk6BixCK9m9kO4uqiIeHhyW7SgprZ7gACeOzCAHiBcgYAAXWsA Date: Mon, 13 Oct 2025 07:19:04 +0000 Message-ID: References: <20250923111842.4091694-1-christina.schimpe@intel.com> <20250923111842.4091694-7-christina.schimpe@intel.com> <86y0q5crwq.fsf@gnu.org> <871pn7pply.fsf@linaro.org> In-Reply-To: <871pn7pply.fsf@linaro.org> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN7PR11MB7638:EE_|SJ5PPF0D72A1BA6:EE_ x-ms-office365-filtering-correlation-id: 6bebb2fb-6bba-4bf3-5df0-08de0a28ca7b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|1800799024|366016|38070700021; x-microsoft-antispam-message-info: =?us-ascii?Q?oyuhM+sb+ajl9drZwNAd519WOXBmthsVrWDUlx2M4SbOPc5DVDsPGQlO0whp?= =?us-ascii?Q?vBOSZmGVqNJ+OllmCCXfW/BQKxiGAASpJVf6DUjym9h/AMl+c9YCnZwUiLdo?= =?us-ascii?Q?5wGMw8YsBE3oWbfcXrxaadRx3qyNB8QSMK5Yqd8nqXKsK/21mUqarR+4emmc?= =?us-ascii?Q?yGJ1Y8SpUDRRQ8cURscxYH8KEAze+AJzSlRROhYGeSVlxHV1eHZL26U2BdQZ?= =?us-ascii?Q?9aiZh7W1uKuJjsffOC3cmkI7gG7O3CoqDy1ME6ACI5+9rb2zLAiTt0gjdCim?= =?us-ascii?Q?K+9IK2+uvNCu1+dnJh6NvVpUuBl11G7JxylTLX7Ju5kziMvDiEgKiRDwmQ6r?= =?us-ascii?Q?0Wyul3QNetoNqIggKCmCL0Pf9lp6OkLpmCcediVgr1eee+DJXIx8SH9DlRH/?= =?us-ascii?Q?ygPPPmmqvO7tPn4zvnEg71kzDN+VG1ce+W55kUaxHRRQvvDJiSEFhSQZBB8u?= =?us-ascii?Q?95dnwS8qWjCOmJWKYn9g3eLUEMbEOerXjPAj9clmn7YiRQWSV8mGhLXPnfXO?= =?us-ascii?Q?mlCk2PayJ4PNOwSHwcmI50gfaaPESz1viQmg8QPjV2/Ud3HtD0LfiQ222YBk?= =?us-ascii?Q?h8Dz9SHVWNgzwEUyw6nQ85QjSV+a8d/CHGr9L8DB+KJzwM6weapSxqpMXsid?= =?us-ascii?Q?VyG6Iy6lLeak2eWZkzPjOCoDhotqeQR5Gslgn8uXcU8XsoTCoMyWPErDGAbg?= =?us-ascii?Q?uuWbMNHsSvn939f2dPRdPXbbeX+5suBTMDo8kf+SbqbMc+D+z6DFXQgaXOA0?= =?us-ascii?Q?cteK1ZovCga4XCDdSnJVjoDA6DTagqDaPWtP+RNVY+Uh8NMtzvqhK42kEV0R?= =?us-ascii?Q?AzSdRGyq1j72vLOpqUG/9KHWZhZ58+p/xg+SU8g+VMgErp5mfY2uDx27h3M+?= =?us-ascii?Q?9vxR0MYgRHtbjSQ/0E33qpZlQVy69mQ3lt9x83eqn/KjZR5G7CLstB5bh21U?= =?us-ascii?Q?BCgOETOobKrQKzLyAbET2p5CZPw4l6PmmQapxWY2R8vFj0X83P+nFdaLMBm6?= =?us-ascii?Q?j11O/2mCCR9bB3KI2m9By9oU5ykRCQKDcZv6CkM5tCo3i449YHYehaO1ZRsJ?= =?us-ascii?Q?QTDlTXrNgAhVsgIklu6izQ+WQ8ib+o+2RbS3AlDpaokFLqMpETv6UY2W13Bq?= =?us-ascii?Q?g0HIKpXM4j8cXU0+qmo9d/CWe/EOtKqSH+wVEXOBc8lvVwdGEaTProXpQC/n?= =?us-ascii?Q?c5uW5s7ylfN+19nMza3VClHHlrDzsgp1aLWkgLRdXt5l54gbMFmN8ngEGsN/?= =?us-ascii?Q?AEHob2NGbzFNp1Md84iw9eO8wzw3ry1e2GA6ZmtYPveICmErmmLuMOS7lhXf?= =?us-ascii?Q?akxIp0a2UwElCdfL4UfFGx9IA8qzmkh+tD31M1L3/HZgYELgpfiCvlj9K8vk?= =?us-ascii?Q?SR/CnouHiWJMaXw5Hqk34G0biazMeA+9rPU+V3k9PHiBmJngxtuDNlt94GeU?= =?us-ascii?Q?d0nG9srEVV6M2CTjROBW9yEq+8zVgO+1uvcPv8VkeDSkuTikid0VrA=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN7PR11MB7638.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016)(38070700021); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?9u2IxodWw9mfQfCpo5XBcm/WYd87pA0zbvnx0NxsO0olIcwrss6GsUMimhAa?= =?us-ascii?Q?ltaytiUiqofaBTJKYNBy6AIaB2cplatxleSpcy4GWXpeTwHsYwFqHHsybNzU?= =?us-ascii?Q?wAjDmhadvRGQ0thF6osbGTnPe8aw9trhk07QI2mChxFPFeCpXmH4cEcbT9y4?= =?us-ascii?Q?JScUrovmQCpzc/XaCsHIb04UXD8v3PcdXPIODOFg4hBsfmShONGaQqEJvHdj?= =?us-ascii?Q?jdp3ppak164j77G2ko56teOsYmqmYJoXVQ5Pb1Yi93iBUji2YKEL+LvGcZeG?= =?us-ascii?Q?IfqkpHDYkK2rpdn8YTOQkpDyeVRragMlDheLmHZOfux48MBB9qGBSOUzR0En?= =?us-ascii?Q?GuCjIiLuYycHz9pAMKOXHZDvCWHtDOtwEYWlBJFq62Y9afhfX75IiVQHO2ZY?= =?us-ascii?Q?CLuKFA+Is7LulwlODyOSLJpASdKlpE2DcZeBpwA9ON9CEvhvD264f+ajHPKu?= =?us-ascii?Q?6Iu/z181xK+yWu+lyPKLAZLOiENO564odfIAAwFVt5Lde+RiaK/KBYCq52ug?= =?us-ascii?Q?P2KCxg2d017HY6nIey/xw/6PUbGCMBpjRP92RsLpIpQW8S92GClll9xjguDr?= =?us-ascii?Q?PQAqg71VugtSXBe/dpxbAFLr5T+CcWZLn/xkHr/eVVJappLsNDtwH9/JiNia?= =?us-ascii?Q?9QouQYvlG+3iIz/ck+IYqabJWtqHvaHd0L75NPJUsaF6mCPizMKZ2a7p2Qgs?= =?us-ascii?Q?IMVUrvA8h61qEgfMmchp+mB2w4ZS4GLRQaDYMRrDF8U7EedMrY9b+xmyfRNM?= =?us-ascii?Q?Of8Z5tgc2nzdwn/1k2OUCp345OTcR9ZfIBs6WmwLpz8nCRo1+SAnzYTcNy/m?= =?us-ascii?Q?l8Iw7IZixu1dOc2SBsG0fXzbjbqF0MaqupAg0XyIyfb3787eruFvudF++AaM?= =?us-ascii?Q?lEH2fAL4zSQB0M7OzjJ1/6EUNxg4nUAGTsAjQIkETMn++co/fdNfaRs/oeKx?= =?us-ascii?Q?zPR/PFXS3o2AfBgsnQTBAdwcio+TvbqIkA3+DpqYvjgZ78sYDyzpx8UX8j+J?= =?us-ascii?Q?FktbfEokHeNaKnlwTVowEy4aS4g/4Ze6RqFckMqfaDA88U1qZAd2G99c2Fae?= =?us-ascii?Q?W+YmnCezD+TdQ8MnVLmCoay4QQjPUdO4mSR+T3tWKCAAsnyucUDNBqgk2RnY?= =?us-ascii?Q?V7IUJSl03e/ixd3nBgNhCYsUYKIfOpcmXJ+JGU78AfXmPmhH5OdK65+kTurX?= =?us-ascii?Q?W2fM65xVk300tfL/m9VZEC1VnXAUWCk5xzgYZaKK/moPtRNPXG99hwnKSaN4?= =?us-ascii?Q?usPUmh88QkQv1wXH4By1lKGvGb1m+xIbI8z0J2PVDNTim9E155BNk9a8Miag?= =?us-ascii?Q?51hiSs5v/q3vuESsfmtbH+tquVIgsifzEwMmnfNH2QqSkUEgE41/WYX1WQ5X?= =?us-ascii?Q?TCkmA+1VWkmhUBaJWkSvQcj8IZHM41Tb1OVx+dhpr/ysUrs3NocRvvjXAAEt?= =?us-ascii?Q?pzhOnsR7fkVS0XXS5myacfMqYmSJah9dFBlPJLXZOxlPZxIVOzQu4OotASrY?= =?us-ascii?Q?wD72Tyh45KpxP6AHVCih743Ki3Wgjh4W7RYmZkTRECStpx3VXECvE4e5jOuA?= =?us-ascii?Q?YaphUJqeAgWj4wzbatExCPOCmIO1pGeQxZNQSJWzHaF9hWkzcnb/BeHD/HMn?= =?us-ascii?Q?FQ=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN7PR11MB7638.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6bebb2fb-6bba-4bf3-5df0-08de0a28ca7b X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Oct 2025 07:19:04.4780 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: N0lJst2CmwsuUNvwBZKXMPUFsVbD3NzinPwRzVqTN8cvCx+gf+VZ67mkUZp3cGy2lUHQksAl8a+hskx5Y/yrh2o25mfrVcwh4Dvtlc4ARk4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ5PPF0D72A1BA6 X-OriginatorOrg: intel.com 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 --===============5635314625930778117== Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > -----Original Message----- > From: Thiago Jung Bauermann > Sent: Monday, October 13, 2025 3:17 AM > To: Schimpe, Christina > Cc: Eli Zaretskii ; gdb-patches@sourceware.org > Subject: Re: [PATCH 6/9] gdb: Implement 'bt shadow' to print the shadow > stack backtrace. >=20 > Hello, >=20 > "Schimpe, Christina" writes: >=20 > >> -----Original Message----- > >> From: Eli Zaretskii > >> Sent: Tuesday, September 23, 2025 1:47 PM > >> To: Schimpe, Christina > >> Cc: gdb-patches@sourceware.org > >> Subject: Re: [PATCH 6/9] gdb: Implement 'bt shadow' to print the > >> shadow stack backtrace. > >> > >> > From: Christina Schimpe > >> > Date: Tue, 23 Sep 2025 11:18:39 +0000 > >> > > >> > Add a subcommand 'bt shadow' for the ordinary backtrace command > >> > which prints the shadow stack backtrace. > >> > Similar to the ordinary backtrace command 'bt shadow' can be > >> > configured using COUNT and the command line option -frame-info. > >> > However, we always print the address and the command is not > >> > affected by the setting "print address" as well as the setting > >> > "print frame-info > >> location-and-address". > >> > Also we do not print the frame arguments. > >> > > >> > Usage: backtrace|bt shadow [OPTION]... [COUNT | -COUNT] > >> > > >> > Help output: > >> > ~~ > >> > (gdb) help bt shadow > >> > Print backtrace of all shadow stack frames, or innermost COUNT frame= s. > >> > Usage: backtrace shadow [OPTION]... [COUNT | -COUNT] > >> > >> We have just got rid of qualifier arguments like "full" > >> and "hide". Instead of introducing qualifier arguments anew, why not > >> go the way of thread-related commands and add a new command > "shadow", > >> so the user could say "shadow backtrace" and maybe in the future also > >> other sub- commands? > > > > This has been discussed in a thread years ago: > > https://sourceware.org/pipermail/gdb/2023-December/051024.html > > The direction was to make it part of the ordinary bt command. > > > > Currently, we don't plan any further commands for the shadow stack. > > But maybe for ARM's Guarded Control Stack any further options are > planned? > > I added Thiago in cc here. Maybe he has some more input. >=20 > Yes, I plan to add two commands for AArch64 Guarded Control Stack, as > mentioned in that thread: >=20 > https://inbox.sourceware.org/gdb/87h6kbfazh.fsf@linaro.org/ >=20 > In that email, I suggested putting them under "info shadow-stack", but la= ter > the people in the thread considered that just adding a top-level "shadow- > stack" command would be better. >=20 > I do think that "backtrace -shadow" is a good option, so IMO we could hav= e > both it and the "shadow-stack" umbrella command. It could even have > "shadow-stack backtrace" as an alias to "backtrace -shadow" to improve > discoverability. I have nothing against that I think, are there similar commands in GDB that= have such an alias feature? > You mentioned that x86 doesn't need the "enabled" and "locked" commands > because for that architecture the user can look in /proc/$PID/status, but= with > those commands I also plan to allow the user to change the enabled and > locked GCS features. Wouldn't that be useful for x86? For x86 the user can configure the shadow stack enabled and locked state vi= a arch_prctls: https://docs.kernel.org/next/x86/shstk.html Is that possible for GCS, too? I am not sure if we can easily change it using GDB. We currently only read/= write the shadow stack pointer via ptrace. But it is possible to see those states by running "info proc status" in gdb= : [...] x86_Thread_features: shstk=20 x86_Thread_features_locked: shstk wrss So I'd say we don't really need it, but it might be useful to improve disco= verability, too. I think a similar topic is the GDB GCS feature to find out the reason for a= segmentation fault: ~~~ Program received signal SIGSEGV, Segmentation fault Guarded Control Stack error. ~~~ In theory, the user can use the si code by examining siginfo, but having th= e additional line as for GCS improves discoverability. So for now we decided to keep it simple, and hope that the user will get al= ong with the existing interfaces. If there is the common opinion to add the commands (read-only) and an addit= ional line for SEGVs due to a shadow-stack/cet violation in case of x86, I think we can add it, too. Regards, Christina --===============5635314625930778117== Content-Type: multipart/alternative; boundary="===============2494917532854049928==" MIME-Version: 1.0 Content-Disposition: inline --===============2494917532854049928== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Intel Deutschland GmbH Registered Address: Dornacher Stra=C3=9Fe 1, 85622 Feldkirchen, Germany Tel: +49 89 991 430, www.intel.de Managing Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell Chairperson of the Supervisory Board: Nicole Lau Registered Seat: Munich Commercial Register: Amtsgericht M=C3=BCnchen HRB 186928 --===============2494917532854049928== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable
Intel Deutschland GmbH
Registered Address: Dornacher Stra=C3= =9Fe 1, 85622 Feldkirchen, Germany
Tel: +49 89 991 430, www.intel.deManaging Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell<= div>Chairperson of the Supervisory Board: Nicole Lau
Registered Seat: M= unich
Commercial Register: Amtsgericht M=C3=BCnchen HRB 186928 --===============2494917532854049928==-- --===============5635314625930778117==--