From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id fuU3JVfQpGcdSyYAWB0awg (envelope-from ) for ; Thu, 06 Feb 2025 10:08:07 -0500 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=ZLcmTq3r; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 88C821E105; Thu, 6 Feb 2025 10:08:07 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 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 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 55E0B1E08E for ; Thu, 6 Feb 2025 10:08:06 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DC1BB385842C for ; Thu, 6 Feb 2025 15:08:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DC1BB385842C 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=ZLcmTq3r Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by sourceware.org (Postfix) with ESMTPS id A894F3858CD1 for ; Thu, 6 Feb 2025 15:07:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A894F3858CD1 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 A894F3858CD1 Authentication-Results: server2.sourceware.org; arc=fail smtp.remote-ip=198.175.65.17 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1738854453; cv=fail; b=FftGNXkKmQ0H3W0yGcIOfKN2h/0JUoymAP3gHSXV/t4M6Tck/I3iTCujOHh/i+NJl4pj3V/qOeBygRO/wGg+OjO6knjyuaIiJMxhHkg27MLkk1GWbhbTFdRwiTorM5kbV1mL7TSzzNvyCT31ACIA/IbrJjQt0OIMpM+vdePkgX4= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1738854453; c=relaxed/simple; bh=JORjJeZGpx6R3iXGgvM1sbqVm0xQ9AKac4sRjsTak/U=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ASh7o5op12T04UYq30EnjPAtVhitTzWS7KqvS7Hk8eV+oJK5YYTXX219Yjy4+B8z4ui91fflWBpd23FhX9zcNFV+iwJnJXiklDYZCaNz3dHwIltc6NjH+7v+5sDnTLNjUYucVLNXeM0Won4P28L1lR+OeWBYd2DBW15xgTpb3sQ= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A894F3858CD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1738854453; x=1770390453; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version:content-transfer-encoding; bh=JORjJeZGpx6R3iXGgvM1sbqVm0xQ9AKac4sRjsTak/U=; b=ZLcmTq3rLrtlqFFwqi97tViOrrNMGsQpCzE37XJ6k7Prgy+XqJn/quga MQ6ZIok+mSUPoC2qfJpEF0pu+cbYax77hVFa8ryonNlEMeQ+AkA4TMEdk BOqELd6Kzfh4yDfM7rZ+UlRBLdaQ/dN5z87qPeFj24mZyQs0pS0w2O3uH 8cuMlz9f1hNfA+uEkieYaomh98SlNk5BDUhANC2wrqmtk76fj1+K2FiDq b+9qsMTN/wZzqI1iPP+XHl3hpe0Qzux5cd/FUP3BltwDxo/eeclzM8Y0n TFllCqHbboz9vcVKW11FuYOakXIrWqOO6xxBTEkPiRvTkCIZIwE/65mTd A==; X-CSE-ConnectionGUID: Wk+NBqk0RGG0eKldr91UDg== X-CSE-MsgGUID: 1tlvLH9rT1qSE/98aDardQ== X-IronPort-AV: E=McAfee;i="6700,10204,11336"; a="39486430" X-IronPort-AV: E=Sophos;i="6.13,264,1732608000"; d="scan'208";a="39486430" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2025 07:07:32 -0800 X-CSE-ConnectionGUID: llEQkAUnReSe9L6UklfAkg== X-CSE-MsgGUID: Nbg7LgPDTQ2ch+F2uk29bA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="148454082" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orviesa001.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 06 Feb 2025 07:07:31 -0800 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44; Thu, 6 Feb 2025 07:07:30 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44 via Frontend Transport; Thu, 6 Feb 2025 07:07:30 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.174) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.44; Thu, 6 Feb 2025 07:07:29 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jNWJKOV0pN2gZKAzbi21Xu2tCxRWb8jt0eekI9hT6lbZDJnM4vd5sDozqM+njKDcj0/0Jna7qTzCEY2sMRY12+O1vAqUOZlVCntN64XdWF4SJJI0QHsmFafmCJ74n5L1J63Jtmla6rUtXk4TdEO6di9JoCA1eKSbZ3AukcCSCeTK/dwIK16QUja/t2sN65vLca7OTNbIf8FSSTouFK0ZBkNezWCYf4aG3x78ib0wnzgDXk6r6tFWlq5QKJFsmRq5kWs5/eC/cfnSXnUNXEtn7kxxRtjubl7LgSz5if41Mfx4laVfRCwT+O9umAQlow7rSBQDWxlkqRbxMwPyIFKw6A== 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=v7sLZL1VMSvGS9SNsfo1wrWOPkf/WS+aD2P1a+6ws+c=; b=ruM6jH7mDyfL2krTlMiGbyXqrpfsTh/ln7xalmRhJUOEUHXFLNqdTJiekPk6z06aZdPod2KsYi+KHoyTJbgE63muiYMK+4vo9ZxTbvK4yA/m3iJ1nluKwso5RrKlqU7p4eX+mW0P1ckOolXVVl+C4M0fsCy8OfwxtAQSoBU35am5jNDnjGlRSZjjcU3CwnDQjFjhquvslloq6eaREbo80j1lwNZaL3VMNGYrWdJdKeSF84SJvCGS8s+s++CqAD0xSmqa82h8pnTMIo+1mfxLfE/sxipQ8hKP42PrWT/FGsBBRUKv/p7von6WsSlld5MrhNqH6FYbHxCf1kme38wWOg== 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 DS0PR11MB8116.namprd11.prod.outlook.com (2603:10b6:8:12b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8422.10; Thu, 6 Feb 2025 15:07:28 +0000 Received: from SN7PR11MB7638.namprd11.prod.outlook.com ([fe80::25b8:16dc:755e:34d1]) by SN7PR11MB7638.namprd11.prod.outlook.com ([fe80::25b8:16dc:755e:34d1%4]) with mapi id 15.20.8398.021; Thu, 6 Feb 2025 15:07:28 +0000 From: "Schimpe, Christina" To: Thiago Jung Bauermann CC: "gdb-patches@sourceware.org" Subject: RE: [PATCH 09/12] gdb, gdbarch: Enable inferior calls for shadow stack support. Thread-Topic: [PATCH 09/12] gdb, gdbarch: Enable inferior calls for shadow stack support. Thread-Index: AQHbUxsT23ff98VWZkCbtnRkCGZMHrM56SMKgAC8V7A= Date: Thu, 6 Feb 2025 15:07:28 +0000 Message-ID: References: <20241220200501.324191-1-christina.schimpe@intel.com> <20241220200501.324191-10-christina.schimpe@intel.com> <87tt97hhpf.fsf@linaro.org> In-Reply-To: <87tt97hhpf.fsf@linaro.org> 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_|DS0PR11MB8116:EE_ x-ms-office365-filtering-correlation-id: 1402b42f-0052-4df9-fc52-08dd46bff8c7 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?BY4v2mczyLjJi549ozyFnNCuRJRJblzN8XRPE+Ok+N0DSpwOzSNF/tZEoKmj?= =?us-ascii?Q?W/dLj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sSZCXlM7DttLrZ?= =?us-ascii?Q?/9Yr6rPGwh+G7dtevvC/e94X7N3i2jOGjlJZbLK12vcjnassY2NaBO/YJW8a?= =?us-ascii?Q?TMhGg+YTy8gXxhpAx4zt3RP8ssefd88psDddf7a2gx3xNpoamGC2WGta4iiU?= =?us-ascii?Q?EwkwkJn+UsSH3Z9L8vBvpRCfw3mEOTz+pg00WTAFtsoH5726u2+6cKCAYoj/?= =?us-ascii?Q?305zLwBznjluakUwNQXpH1D1k2zyOn1ZTaZykTpx8mUpn3YwhTMx6Pl16sKT?= =?us-ascii?Q?2iHk1wzBdz61X6MDWCTi5IgC6IwnNJSmsfm5/JavLF2RAGl+t9xdyKHc81rr?= =?us-ascii?Q?LCm8DSvXoCiu/5KQOGByKQfP/fwQ1QsMqsz2f2zsGw11o0qvCRNtWcSE2AHH?= =?us-ascii?Q?ON84+10BNa6mejtpNhXLudCbpyOt4Xz/+JvmQ/jIDXa7m7duWXEbAAG+aRLQ?= =?us-ascii?Q?xMliz275lo18K2iW6YiUly4UAFpyTM8A3kOKLKd+NvI2KL2tqicHJ/7y0XvT?= =?us-ascii?Q?Xy+gHegGsT/NvHdxUdj2NnzJWoAUyhf4?= 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)(366016)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?K5nr9Ttd6D+LlYukh62vXq7v00XunH951lvheraLtlP67Wy4npBVLFPy0Pcn?= =?us-ascii?Q?EyNlyo9svQ1sprCImcsBFGreBl3GqU/Ij9tCEuzJDWQA/Z9/jyraw5NKkqGy?= =?us-ascii?Q?Kt2QtXaEFX3Vegec4GUL4GqWxo4MU+016o0at2S9/APZXLZFmZv/2I4vilnC?= =?us-ascii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m3kdQNpN3TaOivFZ0LW6/URiiFS7?= =?us-ascii?Q?zfC91qN6jv3QlBZhBz/bf47gUjWpwIxnXZmvi2/XDoLsPLRx92QqvdMKNzkj?= =?us-ascii?Q?wxZF3omGWTP3Ic4BNSu+JGnj0oY/vAtJOQ7LPS/7Zl7SASVFakTkn4pIgPeP?= =?us-ascii?Q?RuDR/Qr0Y0gE9ZkEwBCfybA/gvaDpeo89/5EwdH0U3PINtV8eZMibmH37/TY?= =?us-ascii?Q?4TsMdda+dHaYq0EIPW6/eNeqMSiKlkvBh5iG7zzX0OtpSFg/LHet16wL7FWm?= =?us-ascii?Q?iYfi1diZAYWqhCoD5/GU16M8gbt0MHlk0TyOKkyf1svAQyvfdUV2WQMfMK7T?= =?us-ascii?Q?cpsWTjUTI27xz9R347FKCJapL7Kt3jA+8ge3aEP8CuSjyI5x0FX0NDwITQz8?= =?us-ascii?Q?lvkyfj2FjXbBpNL1uWEsa/oW+bJ0qcgwkhv25AYDTGDJwHgky2FJV16FBBIt?= =?us-ascii?Q?8vD6g/kFSl/hv2BvNTYmjBLhGEgjKmQJtqGQNu8CofbJofMtdcf6+y815nJA?= =?us-ascii?Q?rw8h5bhcLfKdE9R8fU5WLeHAgqIaHaxglXcU0SyQKsrRndN8SPL5LtRxKtAN?= =?us-ascii?Q?PQ=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: 1402b42f-0052-4df9-fc52-08dd46bff8c7 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Feb 2025 15:07:28.2798 (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: WQSDnkP6VFTK4t8QdaSFcTNVKEid1QOdB/x663fQuY5hJCuMduZeOCn0v01L+zzEkAFCWTyHQzAXFaQtnHluDdGm6DAOEVEPaMdiHnYVU6s= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB8116 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 > -----Original Message----- > From: Thiago Jung Bauermann > Sent: Thursday, February 6, 2025 4:32 AM > To: Schimpe, Christina > Cc: gdb-patches@sourceware.org > Subject: Re: [PATCH 09/12] gdb, gdbarch: Enable inferior calls for shadow= stack > support. > = > = > "Schimpe, Christina" writes: > = > > diff --git a/gdb/infcall.c b/gdb/infcall.c index > > 6399278c6ae..3a4f1e35a2f 100644 > > --- a/gdb/infcall.c > > +++ b/gdb/infcall.c > > @@ -1453,6 +1453,12 @@ call_function_by_hand_dummy (struct value > *function, > > bp_addr, args.size (), args.data (), > > sp, return_method, struct_addr); > > > > + /* Push the return address of the inferior (bp_addr) on the shadow s= tack > > + and update the shadow stack pointer. As we don't execute a call > > + instruction to start the inferior we need to handle this > > + manually. */ if (gdbarch_shadow_stack_push_p (gdbarch)) > > + gdbarch_shadow_stack_push (gdbarch, bp_addr); > > + > = > For AArch64's Guarded Control Stack, instead of adding a new gdbarch meth= od I > added this change to aarch64_push_dummy_call: > = > if (aarch64_gcs_is_enabled (regcache)) > aarch64_push_gcs_entry (regcache, bp_addr); > = > To implement aarch64_gcs_is_enabled I did add a new method to > aarch64_gdbarch_tdep so that OS-independent code in aarch64-tdep.c could = call > Linux-specific logic in aarch64-linux-tdep.c: > = > static bool > aarch64_gcs_is_enabled (regcache *regs) > { > gdbarch *arch =3D regs->arch (); > aarch64_gdbarch_tdep *tdep =3D gdbarch_tdep (arch= ); > = > if (tdep->gcs_is_enabled =3D=3D nullptr) > return false; > = > return tdep->gcs_is_enabled (regs); > } > = > Wouldn't a similar approach work for amd64? Hi Thiago, = Thank you for the feedback! I think I could also fix it in amd64_push_dummy_call by implementing it in = a similar way than you do. = But isn't it better to keep the code generic ? Generic code for handling shadow stacks is also required for the implementa= tion of "bt shadow", as I tried to provide an implementation that can be used by other architect= ures as well. 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