From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2074.outbound.protection.outlook.com [40.107.22.74]) by sourceware.org (Postfix) with ESMTPS id 2BFE63858C83 for ; Wed, 15 Mar 2023 12:26:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2BFE63858C83 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EaeNppXoa03NmwolRvQi+30HZE5meSF3kYOOHng5AAI=; b=tPe6xdB9LoNmRXnZx9eZWoANBmQu/bWOhoWA9pJ3iX3T92uHX0CaPonLaKH5mGLkP3RXmmDy9PGfJVNvv/Xt+1XxGYV5ftOsyabh5SEmqVZk7vbZ8SOqrmOSn1FoRw9/d6tp9cRfx2vEeE9gBFJi6838SunKgz0OwSYSZsVc5n8= Received: from AM5PR0602CA0016.eurprd06.prod.outlook.com (2603:10a6:203:a3::26) by AS4PR08MB8069.eurprd08.prod.outlook.com (2603:10a6:20b:588::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.29; Wed, 15 Mar 2023 12:26:27 +0000 Received: from AM7EUR03FT039.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:a3:cafe::1f) by AM5PR0602CA0016.outlook.office365.com (2603:10a6:203:a3::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.26 via Frontend Transport; Wed, 15 Mar 2023 12:26:27 +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 AM7EUR03FT039.mail.protection.outlook.com (100.127.140.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6199.16 via Frontend Transport; Wed, 15 Mar 2023 12:26:27 +0000 Received: ("Tessian outbound 2ba0ed2ebb9f:v135"); Wed, 15 Mar 2023 12:26:27 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 9a7c1653b0b32dfb X-CR-MTA-TID: 64aa7808 Received: from bdf080c8674b.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 46803A58-51AD-4480-9038-6816E2BAA5A7.1; Wed, 15 Mar 2023 12:26:19 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id bdf080c8674b.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 15 Mar 2023 12:26:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WHm49JAtY7y6pB1Rcn/roqRf88rWYkeTMdmCzymGIqIn29akVONl/PJMkhd0emIRs+VrQjMJvOmdfH1nzFchxoa9vv1PIiBuOV7Js/XEis0bkpAUIq07wno1W8TT0NhIRPv2S0jNkAQZ8DepFJD54AnRRl/U46VyOPGnxkh7/83AFq4jHos9/pA2+PNlrjRDzBVKuY6BJsMLFQA5omxJqQlO+aKlZnLi2PPM7AkMkVeI/eQO5Yd/WbNAGbyKIp8R8p1jG3lP1SMYBiXXnQ3Q+r8N7vVwmansbZAm8V1eZPq+9oJJf8FvZ16gvBVkv2nFJ+zGnU58DQYZuvGelJaXmw== 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=EaeNppXoa03NmwolRvQi+30HZE5meSF3kYOOHng5AAI=; b=RQ8z20b1xXNiMp77zQV+q9iOd+6NsBqXF9dYQWYzN3C4CMxj+bjua2hAVZB8TD3sxe0rJzX1VmwOzIfq07z/OF5TxmzwpxbLZEifGEphuK6uEZeaqZK1sNJTzrfVhXRZPRvKYhzJ5xT3KwYmR2fzCF/Tkkt5KnKU4eXLYcSzsxE5XNqlYmYeJdG4Ae8butsVHl+JdaUQZe/vVK5+bZXRWK1MbHyas+VCMQi7Viu5OrYmspOmB9XD0bq3c1lgs15+HT8glcV0U7fjnDkDlWIqD/DNjNM7K4MBOVuGLoUcHrlRkWpbuWAUDcUFKOj5sZcIZ4yPYnTT7p1Gp8taIOHWHg== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EaeNppXoa03NmwolRvQi+30HZE5meSF3kYOOHng5AAI=; b=tPe6xdB9LoNmRXnZx9eZWoANBmQu/bWOhoWA9pJ3iX3T92uHX0CaPonLaKH5mGLkP3RXmmDy9PGfJVNvv/Xt+1XxGYV5ftOsyabh5SEmqVZk7vbZ8SOqrmOSn1FoRw9/d6tp9cRfx2vEeE9gBFJi6838SunKgz0OwSYSZsVc5n8= 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 GV1PR08MB8644.eurprd08.prod.outlook.com (2603:10a6:150:85::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.23; Wed, 15 Mar 2023 12:26:09 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::bced:32a3:b77e:90a6]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::bced:32a3:b77e:90a6%3]) with mapi id 15.20.6178.029; Wed, 15 Mar 2023 12:26:09 +0000 Message-ID: <8d4ac3fc-c508-2a92-5af2-efaa18da7a20@arm.com> Date: Wed, 15 Mar 2023 12:26:00 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: Backporting minor fix to older gdb releases Content-Language: en-US To: Andrew Burgess , "gdb@sourceware.org" References: <87bkkufdw0.fsf@redhat.com> From: Luis Machado In-Reply-To: <87bkkufdw0.fsf@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SA0PR11CA0048.namprd11.prod.outlook.com (2603:10b6:806:d0::23) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|GV1PR08MB8644:EE_|AM7EUR03FT039:EE_|AS4PR08MB8069:EE_ X-MS-Office365-Filtering-Correlation-Id: 4651f8a8-7804-48b7-60ec-08db25507fe7 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: pqWqfkKjh+6SYFZIAeC6R50v9hGkE+y4etpAHAWoqfJiAx4rviyJGX64dLYhkShdXA20qF+lR18sossAXyGVOwlboAkDYwVa8IcYy9zgjwRREQ0mhNBut+iIigaNQPqxugJVbUQYo/bgY4gxcrrw8YaDDhhLciQS+SurMcwzcL1oU4xWZajg+Y4iiaIV5r0UwljdraFSo9LYoPDJaOpWrkwCS2C4c0/RJ7wHxxDQlgVrE74wwZId9bero3GRZaiAwXxnJPG3IvPMFwP5ZDVs0tPEyWL67xVeyi0l5XnEn+AlApt6csn4ZxKTjrGWY9VTnhYQ3IUXMYIJK7X8NCh2+kIMMtfBcL1OcnOj6B9IHfrTMkcuH0B6BjTvlB6pPmKNI4ITvCA+KTLRyP7M4GrYgqVmYcV/ufS8gvLEBJuwPoUyNxWhYygTYM3Yg3sDwb0u7H9wkXkyU+xppg/i2Wi/4axg3G6cqXBZA3Q4qyMRVtEZON5DDcKbvcX7Ng5x03KFINHyHvJxBojqSoNDyf4VHkz85uHEnypuIMRynGvJ0mr0t1LUgU/cKP9yJJWYGs54G3fDRsN8fajLdq8N/Q/ngL8zEGZEY/qytVukU93Jgu86YCevwaWhyoak8k+3m4zwDYEHX2tOVMcazjD7IZbmVNl7Qp2eDZjBfiGprLrEn3IKwiDyMCUyvZYsuaZ0R4M250Aum7YDiRTknWMuaUaXJP8gRIK7nDO39iaYETo9iP4= 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:(13230025)(4636009)(366004)(376002)(346002)(39860400002)(136003)(396003)(451199018)(6512007)(6506007)(6666004)(186003)(26005)(53546011)(31686004)(66556008)(8676002)(66946007)(110136005)(66476007)(316002)(478600001)(6486002)(83380400001)(41300700001)(2906002)(8936002)(66899018)(5660300002)(44832011)(86362001)(36756003)(38100700002)(31696002)(2616005)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB8644 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: AM7EUR03FT039.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: a83a8fc6-4994-40ca-e1b9-08db25507497 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: A4VWzoVEw8Oob5qGL9Wl/bB21cFiZB3urPlnZSeVruDaRXVhOU52BygkqAI3uHL4oXZS8fAeeLWdXWHdJe48ZFuz0URDaRy5mFESFFN88I+Tspwv0xCywD7w28jWVUVwkijqLc/3ZBs/YkrXTGmneSyhlpojWXAw05G090dAWcV8I3z9jhTklhK8NC2ZOPIFXjzUYrkjteDKv+lS+7yN3/7M5XFxckdOY3KfR2qMWS5Lou173IUopc/jVgUYzFQXYrQfgRrdRxV2OGD4sQnRlsfQ+3uMeXAWWfctAot6JvN8UGP7VOoocU3gjwuMHIM2YLObCX7oF0qN8pBke6tbWRTx9wnUrQq69yLexj9U7xPS3+LLdXmdJzsdDDmQ3o4dzgORvo2kLcNkgN8BtPsM1+kyxRvHhEGyRB3VEut0B+KDhzoCzCSrhy629XTf6YkqZ1b9N4kP5tuTSXyibvY05QOKsMbd7hz1+YMQFrAGuotbYD/rXIFONK7McqqlGEme81pm/JUDfy+Ib8WZGNVO4m/4iJhTw/L1sPgV3xt7A9ymoEfY+LHD5tEnMYzYshpWovzoMQ1UHK66hUiJcsqSNJx27Dz8gRwyWnkJYMt3DLNprxeyTKTrs9v/zDp4XjM8TNka40t4DMGOUgHls4xCmH5/0dLZCA8ZfCzhuw9kLIb/XLXTnLSAovWbdnaC0LNdYD1MUAkWcPZqRSeGSZrZ5IAvoF4Tmc32LY2evpJOsCk= 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:(13230025)(4636009)(376002)(136003)(39860400002)(346002)(396003)(451199018)(36840700001)(40470700004)(46966006)(6666004)(26005)(6506007)(36756003)(6486002)(44832011)(40460700003)(6512007)(82310400005)(8676002)(356005)(70206006)(70586007)(36860700001)(478600001)(82740400003)(81166007)(110136005)(186003)(316002)(2616005)(336012)(53546011)(5660300002)(8936002)(47076005)(41300700001)(86362001)(31696002)(40480700001)(83380400001)(2906002)(66899018)(31686004)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Mar 2023 12:26:27.5913 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4651f8a8-7804-48b7-60ec-08db25507fe7 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: AM7EUR03FT039.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB8069 X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,KAM_DMARC_NONE,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 3/15/23 11:33, Andrew Burgess wrote: > Luis Machado via Gdb writes: > >> I have a small issue (fixed in gdb 13 via commit >> 1ba3a3222039eb2576d29c9fd3af444f59fa51d2) that I'd like to backport a >> fix to at least gdb 12 and gdb 11. > > Does that change fix some bug that is always present? Or does the > problem only occur in some situations? i.e. are GDB 11/12 broken with > QEMU in all cases, or only if QEMU is run in a certain mode? > The bug has always been there, but it has never manifested because it requires the target to provide pauth support *and* additional system registers (registers gdb doesn't care about). The qemu folks have recently added pauth support to their gdbstub, and for older gdb's (9, 10, 11 and 12), the sight of that pauth feature makes them crash, which is not good. >> >> I did, however, notice that it is easily backportable to gdb 10 and >> gdb 9, versions also affected by the same bug. >> >> Given the backport is small and helps prevent crashes when connecting >> to a QEMU that supports pointer authentication, I'm wondering what >> global maintainers think about it. >> >> If distros want to pick up the fix, they can do so without having to >> worry about conflicts. > > For any back-ports to have use we'd need to make an additional release > from those branches, right? I don't know how many distros are going to > update to anything other than an actual release. That is true. My reasoning for backporting this fix all the way to gdb-9 was to allow package maintainers to easily pick the fix up and apply it without having to deal with conflicts. I see Ubuntu 20.04, for example, uses gdb-9. If we were to use it with qemu 8.0.0, it would crash. > > Generally GDB hasn't made additional point releases for anything other > than the last major release. I wouldn't object if we did want to do > such a thing - but then I likely wouldn't be the one having to do any > work - so I'm certainly not going to say we _should_ do such a thing. > > If we did want to allow such a thing then I would suggest we limit > ourselves to only doing this for smallish patches that fix GDB crashes, > and which apply relatively cleanly to the release branches. This is a fairly small and localized patch, which is why I'm considering it. > > Which is why I asked above for more details about the commit. If what's > really happening is that we're fixing GDB to work with QEMU when run in > mode X, then I'd say this is less of a fix, and more of a new feature - > support QEMU mode X. And I'd suggest we shouldn't get in the habit of > back-porting new features, that feels like a bad can of worms to open. > > But if this problem is more that QEMU changed, and now GDB 9/10/11/12 is > just broken with QEMU in every mode, then back-porting begins to sounds > more reasonable. They will be broken with qemu 8.0.0 for AArch64 when connecting to qemu's gdbstub. > > Thanks, > Andrew >