From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id FTqnBBILimjUAwAAWB0awg (envelope-from ) for ; Wed, 30 Jul 2025 08:07:46 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=iQRwDqlt; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id F388E1E102; Wed, 30 Jul 2025 08:07:45 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-10.1 required=5.0 tests=ARC_SIGNED,ARC_VALID, BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE 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 5CED81E091 for ; Wed, 30 Jul 2025 08:07:44 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E601A3858D26 for ; Wed, 30 Jul 2025 12:07:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E601A3858D26 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=iQRwDqlt Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by sourceware.org (Postfix) with ESMTPS id C557F3858D1E for ; Wed, 30 Jul 2025 12:07:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C557F3858D1E 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 C557F3858D1E Authentication-Results: server2.sourceware.org; arc=fail smtp.remote-ip=192.198.163.16 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1753877230; cv=fail; b=JFuq+YlH/UXZHbYB/Vzi08ZRsthbyrOwDLx9VAobkEdkgH5I1ZV0TRAl4Bec0eift+4rCrq2osUo02610DB+QvqSwzYpXhq7niT3aVI34NIJpP3wnydlLSQf1LNjO03nTEsFuicMGsLymMZeSS4nqd4KKPqVH6j7kQAVTc4mOTA= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1753877230; c=relaxed/simple; bh=Cauq10AOsaHpYm8M47p43REtJhInPSbSbKifk166mrY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=CulLl7yTZDROAgNH6gDxGpCIi7sXaOxMG4h5PU+G45UzTsv9zujBX/wsQQsDyyy2a+cIZ2U91tuI3PYmI1T1LgQP5flcIqkqE+q+M1A71L9ETqPtO/6Hu+X/wnHYN4elNTgV1dz7aJe2SvAglAxHUVsA/BigaIrr+8jpSW+BWjA= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C557F3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1753877230; x=1785413230; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version:content-transfer-encoding; bh=Cauq10AOsaHpYm8M47p43REtJhInPSbSbKifk166mrY=; b=iQRwDqltSNKDQo7nbLIYMLC9gBEiiBmPidAxnZTpb6cnNBPUzpQfm3Sl ntxUItqpRRolktYsBhxpr/a/0MlHT4QrCIuN94J6fLPVatPIDJbNDL3VX 3YCVVBc7tFUZDMMm+ldEiTn2c8ol6zd21FcKvCRf6lyYHsuDbROJ4JmDW 7qRjraMCmWjTvmtcQzup3e2BrenqGgh1HlNQHJEmQ+i0njkE5tuk5nnAE 75xMyNIuRCDUeSOmkCTTHTIClOCsVDxzHsG1R4IuDPFJ5eDBPjsxFY4l1 g4pZe7JFpdtTUiPSVVsJ2JfuU7dPoYqBBCBtkBkMLHYzAsGaYGISYjt1u Q==; X-CSE-ConnectionGUID: tvZ3bSdHRsOBtWmgtpzd1w== X-CSE-MsgGUID: 52V3j0fqSy2SBuU9RMH9ug== X-IronPort-AV: E=McAfee;i="6800,10657,11507"; a="43777847" X-IronPort-AV: E=Sophos;i="6.16,350,1744095600"; d="scan'208";a="43777847" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jul 2025 05:07:09 -0700 X-CSE-ConnectionGUID: mShqn8caT/GlTMFPop4eZA== X-CSE-MsgGUID: AAN1vdh3SvGyASr7wNZUcQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,350,1744095600"; d="scan'208";a="193959266" Received: from orsmsx902.amr.corp.intel.com ([10.22.229.24]) by orviesa002.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jul 2025 05:07:08 -0700 Received: from ORSMSX902.amr.corp.intel.com (10.22.229.24) by ORSMSX902.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.26; Wed, 30 Jul 2025 05:07:07 -0700 Received: from ORSEDG901.ED.cps.intel.com (10.7.248.11) by ORSMSX902.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.26 via Frontend Transport; Wed, 30 Jul 2025 05:07:07 -0700 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (40.107.102.49) by edgegateway.intel.com (134.134.137.111) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.26; Wed, 30 Jul 2025 05:07:07 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vOJlhecKcLpG4iFh3fnTTwK9B2DlmszCIShCOY6eozfBxRYqoNdwcjDVnXUtGbcVpefx+xG7SAr5oX7nDisdMb10/oyvIdu4/59yAmSbAgUQHGkxt3MQrvhP1v24zOpjVB8EC/hc6MsLT2k/zUsMaakKxlqkXtxP/V6LWfu40km3hMIz8IrGNctmjJ3gMTNpHdzwKSoKDeiG76UNxVU7BEcB7HUZgrV7mgKRWCVk24iNjctBGDOCzgnRwW2K/70UG5C0qSN3FRntNNWK/1NAqkkP1bbnId+Lu+yXYcAuBpj3dkOyMoV1O7QrLUvES1wFWJa/V6FjWODi8Rr9K4VKVA== 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=IKgjd1y42t6UVjB/4rFATgzFZGA1duMIXLEbBggXZrI=; b=l56wKHS1tcWLd3jXFpMY9xlQIAczsFkIkYFBCLP2YMAptSJUPbg6tN6gSeXIZjWiQu2CyK+JHgrYlQwxmmHcBLjTUyY5kUvKv217vQ23ZJg1C/HjCPVbbPF0zN87fgRork2+5ymFNU3C+8zhlaplEQryfswtAxiWRAJB3Jx2uoE7Rhb+csrFerCYrFJPvYna7jD3YGb2olYgiHzaWKAF3RUjdq6NaKXIURWtVgR9hcGOIiSXpUFfKNvpTng+g43g1Il2V227ys8aNjkrBpGGWtRAAS/288om3cTgFoMfHlz1pRFJmLLvZtKBOowkMHj8Inz/XPebD31IpECkU0JVnA== 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 DS0PR11MB7684.namprd11.prod.outlook.com (2603:10b6:8:dd::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8989.11; Wed, 30 Jul 2025 12:06:45 +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.8964.023; Wed, 30 Jul 2025 12:06:45 +0000 From: "Schimpe, Christina" To: Andrew Burgess , "gdb-patches@sourceware.org" CC: "thiago.bauermann@linaro.org" , "luis.machado@arm.com" Subject: RE: [PATCH v5 08/12] gdb: Handle shadow stack pointer register unwinding for amd64 linux. Thread-Topic: [PATCH v5 08/12] gdb: Handle shadow stack pointer register unwinding for amd64 linux. Thread-Index: AQHb6AdmNu5+9Sx36UWfBO8zgWWA4LRKoQAAgAAdEkA= Date: Wed, 30 Jul 2025 12:06:45 +0000 Message-ID: References: <20250628082810.332526-1-christina.schimpe@intel.com> <20250628082810.332526-9-christina.schimpe@intel.com> <87ldo6c84t.fsf@redhat.com> In-Reply-To: <87ldo6c84t.fsf@redhat.com> Accept-Language: en-US Content-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_|DS0PR11MB7684:EE_ x-ms-office365-filtering-correlation-id: cd4069c6-1581-4387-f8d3-08ddcf618daf x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|366016|376014|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?n4LGSGNUMJSMqBs53XbsUH5WNE84p58RzwnGT3QscDckIK73fQxsCH75XBiQ?= =?us-ascii?Q?Gxc2zmD2fVuOMIzk+ZMIxOzUiVWVZiqO9HG1DtP5uCSh4ZlbnKH8AdYvKdml?= =?us-ascii?Q?afacG4gBeauxPR12AqzUG5pivcOlpguo9jwBaUqH1uPNZnYGE4IsxhEmTSiT?= =?us-ascii?Q?m+Mj7jkzd818fTyAWrjkEPM9BmC1uOAiOv7gsSY5G4xjmy/QmpFKeBMTFyrX?= =?us-ascii?Q?1R+CTSLj5KbLtgfw1gXKMeg74mMBTAq4LpDiSCV9hNh0HhkWy62PwooJbcVK?= =?us-ascii?Q?aTyjBcFmLLfTtxLGQ3mt1EkH36BvQ5pqaG+AIcLC10R/c/kOZa9RfxD6EbY2?= =?us-ascii?Q?eWsIpyAPeC28b6bXPFBdJzhYhbQnThnLR+g/cszdQdEDvSxtU+gYK2EO90KG?= =?us-ascii?Q?gL3F+GX9Rmw4qhVQHVXkABrUSWh7YQmI8HqaGePWSJiIYRDPFdpChpfksMT5?= =?us-ascii?Q?cO0RjgPOOt7obqmvd1AkMFboZRgc2MvqguTRlPjL0D8PrCBUmqq3/G052JBs?= =?us-ascii?Q?n3KaWI4ZAWX6W8pR6PVtz9QFzyOdE9SLxsJNMw7wpXyeNspWXR4NNEA/YDjf?= =?us-ascii?Q?P3vcb3OtiSZrIh81CC7S9Yj6wRqL/oG/DF9romadm0M9Kr6lf8In3X5Bn9iP?= =?us-ascii?Q?6fPr1ReDGrwrU6K4329qnPfqqE5P+IvXMCs9rA7L/nPLxfj0kjDtb0TXm4hE?= =?us-ascii?Q?CoIQaXx/z6zVLWMXirN4QpYFQVbbmW3FEjCsa95jFTadZ+mYg8PgHq+wbeep?= =?us-ascii?Q?W/xK1rcoaN1xBSTEm8VxHKVqWi2G/m+LG9jQxhga3WfCU+pk+7XML+hgKksN?= =?us-ascii?Q?98cvDmoy7RdJ74prz3RLm8b3CW/mUQsUwKiLTznfp8Km+nddg22bkrgWH5OI?= =?us-ascii?Q?lJIWd5B0+VxzIa2eX8QnIGrC6eNty7KGfDU8pWfvePeX4opMCWTOal/51WJ8?= =?us-ascii?Q?sPAtA7qHjQRniPC4TQz4Xk4bysdbOifx+93ZjLXcptUvPXiiUbuuOe17WM7n?= =?us-ascii?Q?GMawtSWi/6syYzqLWo9BlRTCTtjzZDqz9O5o+6ecZotVKpy80GLq6FK0+cYJ?= =?us-ascii?Q?f0zfwBH6IBV2YUzcsDkc4cAMNzNhBkC6dBwVHKnL0RjVNoIYSebzKLsLc8sc?= =?us-ascii?Q?ZRhU5Ey1dzJPNoR8K4VGAHGjcyz4wr1g5LwP7kw2v+b+RI76Nl0GENjMvYCn?= =?us-ascii?Q?SNSnveKdi2Lr9Xv8zzOcE7G385asEqEZiFdGW1DEB65DmgQPN1uKQiktAYl4?= =?us-ascii?Q?kpoGp+HGgsfhRJbUN7VNia2IudEZE7wx3k2CdURxDwQa3NlCDeQiltDz4DJi?= =?us-ascii?Q?1E7JCvJLLFiU7tN/ElRTBT+UFl7AD4QPBfwZu5MtN8mxnQYmwTtRMnkGcMu+?= =?us-ascii?Q?lQSrCaAG2G00Y032QoDmhoFH+c6sTzAnahxgs9qfMybSjFZcB1Gk2ETMpkEk?= =?us-ascii?Q?fq3pNlqcjy7257j/ipbcKmYRNbq+fIqyshkIrRM5Myzvkr96jPacug=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)(1800799024)(366016)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?5TRzOkd2oVNbAvV1gmQRooVKT/nM3uF2pbnuu+tkbHotZdtfGI/1C9fh6QXu?= =?us-ascii?Q?LJKgDwbVIwPiQczikR2+ZxGP6qvoP4plH7PLqEFylHIUb1sENJfxf10jsbSo?= =?us-ascii?Q?U9GZWl9hfJ99BTZ3iphcYqs7FvyZ1hHmik30HcnM+PMCMLAxVR7NjgYQHo1j?= =?us-ascii?Q?eIU55S6OiorGoTjEm3mBF2x0kdZuYGQ8OIxvt0jldh4EiT7R9XeIfBETO7M9?= =?us-ascii?Q?6EWUUcsFREiJ5GkqdbihOIaftLG6IhJ9nsbg9gX9qvx+Bw4cwpxzwu3P/n14?= =?us-ascii?Q?GzWa80V8fat+vsnCDA93ukloU3TK544f8iub1Ylfw9Vucr6/+mi4HhJmzcs0?= =?us-ascii?Q?pJyakXo9U1OUN614SFBevJPe5WNKuqMn7z82laAbL1TAG8Ej5oaSOCuR3ZOR?= =?us-ascii?Q?9DzKpRgNkWx9xylKcIEpb7ltlQzNbDObk82AgMOki6rWV+p4KyTyJ6WQCfws?= =?us-ascii?Q?YYRDEXNZAbtRUzGevGJqrSJGU9XuPguJ5eAPF5oQZFDeu/KyL6EUZqlAjWg/?= =?us-ascii?Q?UgJgO4hgx2lXPP6+JVVKMq8jbgSLRwfY8urYWl0U830WyssPsV9tPe4xvSXn?= =?us-ascii?Q?zn28RcxzZ/brDYz3h2ugV7FoPQ0N7o0D0f1EX+0/Wtkz4ZDFBH8go3O1fK0b?= =?us-ascii?Q?7w+89UNRcniXoX5/8rKHXDIHaVIXdIm3rRySLSja5Cj8zA30Vary/z4tQ7R5?= =?us-ascii?Q?2vnA/vQDEQ2uISmxMWHTpfmuwMkG78eFhGB31nH8W3Ca48gzkdkf8YCqpxOa?= =?us-ascii?Q?onYfv02JAZks0/+FVFuN64SLyRuUxboMMmEUGQ6bYbl/QJGuWpoCYQ0iEE7w?= =?us-ascii?Q?DA/acjI51B499uCRepfAUpWGtnsB4sMQlR7xjV0q/zeW0day+QaeUY9qxgpC?= =?us-ascii?Q?4ZgBG8wd4+6bGLVQ4XmZgTrjSrIW1xuZGLuDESz3HJGx62c4WRXCjE0Upgwa?= =?us-ascii?Q?di3nkr6kHI4luzYdRoE8H3O+7eg2/MXygjVkCfk5I8gr4aR8/5r1Oc2GaouS?= =?us-ascii?Q?bkJVxCkqmzaK06Ii8F6KrKjlGCKC7ylock7DvDd/iP4xyLQq12EHF0ejA5j+?= =?us-ascii?Q?kAPwS9E98B2pduWNmFnt37lRyWWpq7HyDnip3ug2AP3Mrew3NVo6pPXEbtbM?= =?us-ascii?Q?qzgua+Y1ZTpiSHiIlJjULefVBLaAsNoe7P1uL6WvqfIPol6s4bkC38a5PsVV?= =?us-ascii?Q?w5c7sThbHYZuXURFgceIdkBE5sC/Kz9UipCfwhFmBov/Kr+zGIbe6CKgbP2I?= =?us-ascii?Q?pnJJhNHsvK07fQi7IdUDY5gkP1KYzps8LTqPXAfLT7a95qy3fQJRt6ZebKpw?= =?us-ascii?Q?aKhCHprkQ1sskIarrj8qUU1ZCz6iRQVKbmMv6UhCxGC9/FZtDlP0sorD8rES?= =?us-ascii?Q?i6w7mfRfiJQR0M8vqOLs61XOo63HbAxS0lIhDGdRvLizJUbfTttZ+4cB0F5h?= =?us-ascii?Q?NphgpPyK7EdByjmELulXHxziwWnweC3p+z7DGxIX/gDTMvqO5M2JOSuCJ4GJ?= =?us-ascii?Q?+xZ9rTks64MAnZteUpdMioKZI0UlEMy4EzYPfR/xLm7E8l9wHEPKYRpHcX81?= =?us-ascii?Q?j3C7DodsuBzotxVnuFVQzCXtTpWjWZPd71EFSNS95Z0z6e3ggCjesngxweLs?= =?us-ascii?Q?BA=3D=3D?= Content-Type: text/plain; charset="us-ascii" 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: cd4069c6-1581-4387-f8d3-08ddcf618daf X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jul 2025 12:06:45.2262 (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: izU/HM0KkqAf731e7vJh+ZpwRCwYNFvkT2Eno3tZWn1qbXuHUlicea4dr2DCzz5ZDnWOrY2N/O4mqQ3hh4BnJr5w52QDf9Y+jvhtqBerkSo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB7684 X-OriginatorOrg: intel.com Content-Transfer-Encoding: quoted-printable 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 Hi Andrew, Thanks a lot for the review. > -----Original Message----- > From: Andrew Burgess > Sent: Wednesday, July 30, 2025 11:59 AM > To: Schimpe, Christina ; gdb- > patches@sourceware.org > Cc: thiago.bauermann@linaro.org; luis.machado@arm.com > Subject: Re: [PATCH v5 08/12] gdb: Handle shadow stack pointer register > unwinding for amd64 linux. > = > Christina Schimpe writes: > = > > Unwind the $pl3_ssp register. > > We now have an updated value for the shadow stack pointer when moving > > up or down the frame level. Note that $pl3_ssp can become unavailable > > when moving to a frame before the shadow stack enablement. In the > > example below, shadow stack is enabled in the function 'call1'. Thus, > > when moving to a frame level above the function, $pl3_ssp will become > > unavaiable. > > Following the restriction of the linux kernel, implement the unwinding > > for amd64 linux only. > > > > Before this patch: > > ~~~ > > Breakpoint 1, call2 (j=3D3) at sample.c:44 > > 44 return 42; > > (gdb) p $pl3_ssp > > $1 =3D (void *) 0x7ffff79ffff8 > > (gdb) up > > 55 call2 (3); > > (gdb) p $pl3_ssp > > $2 =3D (void *) 0x7ffff79ffff8 > > (gdb) up > > 68 call1 (43); > > (gdb) p $pl3_ssp > > $3 =3D (void *) 0x7ffff79ffff8 > > ~~~ > > > > After this patch: > > ~~~ > > Breakpoint 1, call2 (j=3D3) at sample.c:44 > > 44 return 42; > > (gdb) p $pl3_ssp > > $1 =3D (void *) 0x7ffff79ffff8 > > (gdb) up > > 55 call2 (3); > > (gdb) p $pl3_ssp > > $2 =3D (void *) 0x7ffff7a00000 > > (gdb) up > > 68 call1 (43i); > > (gdb) p $pl3_ssp > > $3 =3D > > ~~~ > > > > As we now have an updated value for each selected frame, the return > > command is now enabled for shadow stack enabled programs, too. > > > > We therefore add a test for the return command and shadow stack > > support, and for an updated shadow stack pointer after a frame level > change. > > > > Reviewed-by: Thiago Jung Bauermann > > Reviewed-By: Luis Machado > > --- > > gdb/amd64-linux-tdep.c | 85 ++++++++++++++++++ > > gdb/linux-tdep.c | 47 ++++++++++ > > gdb/linux-tdep.h | 7 ++ > > .../gdb.arch/amd64-shadow-stack-cmds.exp | 88 > +++++++++++++++++++ > > gdb/testsuite/gdb.arch/amd64-shadow-stack.c | 13 +++ > > 5 files changed, 240 insertions(+) > > create mode 100644 gdb/testsuite/gdb.arch/amd64-shadow-stack- > cmds.exp > > > = > > diff --git a/gdb/testsuite/gdb.arch/amd64-shadow-stack-cmds.exp > > b/gdb/testsuite/gdb.arch/amd64-shadow-stack-cmds.exp > > new file mode 100644 > > index 00000000000..17f32ce3964 > > --- /dev/null > > +++ b/gdb/testsuite/gdb.arch/amd64-shadow-stack-cmds.exp > > @@ -0,0 +1,88 @@ > > +# Copyright 2018-2024 Free Software Foundation, Inc. > = > Is this date range correct? Or a copy & paste error? The start date sho= uld > be when the patches were first posted to the list, or otherwise made > publicly available (e.g. Intel specific GDB release?). The end date shou= ld be > updated to 2025. Yes, it should be 2025 for the end date and I'll use 2024 as start date, as= I posted the series in December 2024 for the first time in this list and the patches= made were available in the Intel specific GDB release in 2024. Draft versions were available before 2024, but mostly experimental. I'll also adapt the copyright in test files of the previous patches in the = series, so they'll all have 2024-2025. = > With that fixed: > = > Approved-By: Andrew Burgess > = > Thanks, > Andrew > = > > + > > +# This program is free software; you can redistribute it and/or > > +modify # it under the terms of the GNU General Public License as > > +published by # the Free Software Foundation; either version 3 of the > > +License, or # (at your option) any later version. > > +# Kind Regards, Christina Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Sean Fennelly, Jeffrey Schneiderman, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928