From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 1GwxHdycNmQCpikAWB0awg (envelope-from ) for ; Wed, 12 Apr 2023 07:58:20 -0400 Received: by simark.ca (Postfix, from userid 112) id 68FC01E221; Wed, 12 Apr 2023 07:58:20 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=g4td5oK6; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_HI,RDNS_DYNAMIC,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 02D0F1E110 for ; Wed, 12 Apr 2023 07:58:20 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 75FF53858404 for ; Wed, 12 Apr 2023 11:58:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 75FF53858404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1681300698; bh=EF/TeMbN550ixduXzHG4f8zDO/1KRbGyO7tsypZ6MJA=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=g4td5oK6h2WtG6OOlwmlJX0gzkvwMhVDfw4XS0SNDzVFTWBpjUl3yzHRIrn/UhurC IU4DWmKGp4uAEDUO7qof52F+rRe7PIMRvt+ddTv0cwhZyNnALiRdOvTTxEeRMQCk9Z +8jiylw79kSPPS9n/MoL95n7Umg2k1xL69ron/DE= Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2085.outbound.protection.outlook.com [40.107.8.85]) by sourceware.org (Postfix) with ESMTPS id C390B3858D28 for ; Wed, 12 Apr 2023 11:57:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C390B3858D28 Received: from DUZPR01CA0133.eurprd01.prod.exchangelabs.com (2603:10a6:10:4bc::28) by AS8PR08MB8828.eurprd08.prod.outlook.com (2603:10a6:20b:5b9::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Wed, 12 Apr 2023 11:57:47 +0000 Received: from DBAEUR03FT011.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:4bc:cafe::66) by DUZPR01CA0133.outlook.office365.com (2603:10a6:10:4bc::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.30 via Frontend Transport; Wed, 12 Apr 2023 11:57:47 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT011.mail.protection.outlook.com (100.127.142.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.29 via Frontend Transport; Wed, 12 Apr 2023 11:57:47 +0000 Received: ("Tessian outbound 5bb4c51d5a1f:v136"); Wed, 12 Apr 2023 11:57:47 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 7c63cba16fe3d860 X-CR-MTA-TID: 64aa7808 Received: from 404ce3dfefde.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id FFC4BE24-06D3-481F-80A8-47CED2808575.1; Wed, 12 Apr 2023 11:57:40 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 404ce3dfefde.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 12 Apr 2023 11:57:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qd0XWA/D4xsQhtSXZ4SB59gBfd5kYz9C+VeKY8RJqfELyaTqouuppzHASZEHFHH0rSrPGvrOdAx2XjzQNJRZ1UjjTMjmthvPsZvGRHIkmhkrXTF+HBHLdOOLmbyxhNBtVlE14kPgp8NERx9XABdgghgy9tq5GhUL+AwwVoIyA/VYzyCsXWTMZhdFRoflBZBTo+c9eozJ5QmTljE09//bG2aigW71i6x82QHzxLHeGZwMrZPb8QU2a2DK6csDRv4xIs6uVknYSIslpjiwSg+zG4A4hKyrm0ENX9Yngkcw2WPMOE+W8CSDf3qSHyqEkAUX21KJ4Hb0B8MbCh4sXRpdPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=EF/TeMbN550ixduXzHG4f8zDO/1KRbGyO7tsypZ6MJA=; b=Ro2iE3KM9AxexAEACmq32PTJTaFoc1TyTE6ZYx7AtIqKmH5N4V/vitiJaEi6fjcMVP3YuCjKw8EcCdzNlvQYi1if3CbiDa1YxvbaQQTJqouBYLkqhFeZHYZmnrQDjDrFDmWcwmcXPBijW9ozTWDZE1ytRcDNFpAjYq7KovLBsurXwjLEaW1XEo+JCTWEpXzJ5FiR5aLg4u04mIrfyqWmd5tagdSb7xuB17jV00e9NLHpsRCWoBXRyrPPeS5w25rjIAsB8IFDOEtcQUd78ygZOTPRrYWesKd/3hH+WfN4iLDNKcxWnLlFS9o7iwWuFKsQNUjHvpVx8OZHxAfDHcBlGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) by AS4PR08MB8072.eurprd08.prod.outlook.com (2603:10a6:20b:58b::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Wed, 12 Apr 2023 11:57:39 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::ff70:5431:70fa:34bf]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::ff70:5431:70fa:34bf%4]) with mapi id 15.20.6277.038; Wed, 12 Apr 2023 11:57:38 +0000 Message-ID: <561837b3-a998-8c28-c2e5-bbb169436679@arm.com> Date: Wed, 12 Apr 2023 12:57:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH] [gdb/aarch64] pauth: Create new feature string for pauth to prevent crashing older gdb's Content-Language: en-US To: Peter Maydell Cc: Eli Zaretskii , gdb-patches@sourceware.org, alex.bennee@linaro.org, richard.henderson@linaro.org References: <20230411224327.2142994-1-luis.machado@arm.com> <83mt3d8wkf.fsf@gnu.org> <63c2cf2c-692c-7737-d0ee-b8cb30439b4c@arm.com> <831qkp8nin.fsf@gnu.org> <9ae7c1bd-64d3-7444-fbc7-e536f8b2f971@arm.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SA9PR13CA0118.namprd13.prod.outlook.com (2603:10b6:806:24::33) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|AS4PR08MB8072:EE_|DBAEUR03FT011:EE_|AS8PR08MB8828:EE_ X-MS-Office365-Filtering-Correlation-Id: fe2520a9-71af-47ba-ac86-08db3b4d2246 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: gD/1PGtVXgNUdX6loXqrPjm9eWrDmGXRhEYkPa9LIB6FQW3entf7dRidF6X6y1EJv37nmZz0O6e9D5WMunMY/YvYhcSufZKu8kZHQHL1VA6U8oivDB2HK+Br4MGL55ECwuhRLGsfCcfEZI4gJTZx7UK2rvOODpY3YUlQm5zCpcmH4bKwzIkQEtwgopPG/+mPZlG8aoVsP78uVTA3Dz1fe5sV5PwwVv25zqLzRHUmTz3jclVQtfcL2AN7r/rU75OSFlamooCJBt4ZDlJ+bJu1hADR40DOoy/TqW/dtwOBE6//HhuW0974nQD6JRAk+QSNai7+bhJ9icS33Z6KyqqlouxmxPcxnk6QVwLeH/8/d3nbtLqteqQFkio/4uovI5mm89vQT7Zj7jlc0VYYK2vb8dOz7qmAklcV19zhW/63gUjpoLlmFdaYsvtr4Ied9qzqS7+FhA/IcxpzfpPv5DmW75AuGEgQFsQE5MPaKxD31x+K8BbvU1eRgHWesmcogdEvBjr65aolR7M9X7kkmU7fyNyM6Qgn2uBJ05u/Yc/PhbFlRXe9iNLE5ZWWSFRKGBgKmsEoAA0fIxiafnLaghfehj37B7Yr/bD6a5CmYkVdP78YC1Ki266Q7cdezZnfWeBM9TAm7E65OmBp/aS34al9cQ== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB3919.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(376002)(346002)(366004)(136003)(39860400002)(396003)(451199021)(6666004)(8936002)(44832011)(6486002)(5660300002)(86362001)(4326008)(31696002)(66556008)(8676002)(53546011)(6916009)(66476007)(66946007)(478600001)(38100700002)(316002)(31686004)(2906002)(6506007)(6512007)(186003)(2616005)(41300700001)(36756003)(26005)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB8072 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT011.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 2b7681c0-18b1-455f-80fd-08db3b4d1c69 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FScS/wtdQ+Gvea06ZTHIi+s/zEJR7eE26ry54v5Ap3aAwsKkkuO0XeRY0GA7bERJcSMr2+YNIMrKJGlfBSdlgu5IXmT0gq/60KGYQiaNZhmVSJ+vyW0gmDieVucUli1caRzBnl+B2l2PZQ3jNX80IofiQOWg8zfHKpz/IxZJ+r6UR/vPRNN+aGbY/odR4Tmjo3RbmD7xNiI8vTld3ExVVluMJ33iaHIhOWwhf+gITrf9ams15kujzgGQp/oySoWvl33HktWgNkC41Olu3Yg8v3BSAJ6hOwlNK6uAeHPI4gHp2OHnnbanMLIhBuVtUsf2WX0SVzI+0pNcZcuZYSYaVlRKhvtFK53KlagBGYsZmXEd+UogeYP319McKeEO9jd9Gk52EVum03n2ANQTTceRNKMLtX/ktDDBCmtU4kSOl+NB86r5o+Va5/MO0D8tsGxUz17L4D6hH+XxndQCOlYzB7/fvqO85tAA13891a8eyGNaZIkNyKs/Vp5KA5xLBXI2CJ3eAGh8tJbwMbQmvLC2KE1n8f5Kvr2F40JYEJVP0A4U23XaMUJf6d65LqtO+1BLj9RxOCyR7nvGNAfQ+Qv0gQi+YxD58nDoOStttrjWmf9VfP2qTYR+pY23Hp94JS9lzHZPriaz4rSrwV+rYYR83/j5jrjjB4/wlLpoz2pZCjchrmKYcn/3fiMCGjyp6K7r4O37X5mw8kEdPOoMDTZos31l3rP090W9CoeVjP7n2JQ= X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230028)(4636009)(376002)(346002)(39860400002)(396003)(136003)(451199021)(46966006)(36840700001)(40470700004)(40460700003)(5660300002)(44832011)(6862004)(6486002)(8936002)(6506007)(26005)(6512007)(6666004)(40480700001)(107886003)(53546011)(2906002)(47076005)(36756003)(186003)(2616005)(336012)(356005)(82740400003)(81166007)(86362001)(82310400005)(36860700001)(31696002)(478600001)(41300700001)(70206006)(4326008)(8676002)(70586007)(316002)(31686004)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2023 11:57:47.6634 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fe2520a9-71af-47ba-ac86-08db3b4d2246 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DBAEUR03FT011.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB8828 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Luis Machado via Gdb-patches Reply-To: Luis Machado Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 4/12/23 12:48, Peter Maydell wrote: > On Wed, 12 Apr 2023 at 10:26, Luis Machado wrote: >> On 4/12/23 10:20, Eli Zaretskii wrote: >>> Is it really important to say that the bug happens only when >>> additional system registers are reported? >> >> We could make it shorter by only mentioning this is only an issue when using emulators. > > It's not emulator-specific, though, is it, if I understand the bug right? > It will happen with any gdb-protocol-speaking stub that reports registers > in XML features that gdb doesn't care about, I think you said? It's just > that the case we know about happens to be with an emulator where the > extra registers reported are system registers. Yes, that's true. That was oversimplifying it. Emulators would be the most common case at the moment, like QEMU users attempting to use Pointer Authentication support. It could be potentially anything, as I described before. Even a newer gdbserver talking to an old gdb, if the new gdbserver sends additional registers the old gdb doesn't care about. Maybe I should expand on that explanation as well. > > thanks > -- PMM