From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id gicUJ+WcFGScZRIAWB0awg (envelope-from ) for ; Fri, 17 Mar 2023 13:01:25 -0400 Received: by simark.ca (Postfix, from userid 112) id 93E991E223; Fri, 17 Mar 2023 13:01:25 -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=PCqRXOZC; 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=-9.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_HI,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 973611E0D3 for ; Fri, 17 Mar 2023 13:01:24 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D9A7F385559F for ; Fri, 17 Mar 2023 17:01:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D9A7F385559F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679072483; bh=oz0+ek/5OT+Ga2JIPnZAGdXmGctqWtquMuq6G06OxRo=; 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=PCqRXOZCQKlMGoN/BwBGX6qgNSLO1aXd+WtNYIjEp69+RDc9xuNy//QYCytbiziKl /g5bu8u9dH9oT3jmq00s9KARaLbskw06/kMQ8h4JtUNrNWtZNTs7YBvljorOvS5DBX qO7IKTbjJV8km8QljEj7qiceGX/V7JFSJCtK1m0g= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 68514385084E for ; Fri, 17 Mar 2023 17:00:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 68514385084E Received: from mail-ve1eur01on060e.outbound.protection.outlook.com ([2a01:111:f400:fe1f::60e] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdDRi-00043b-4z for gdb@gnu.org; Fri, 17 Mar 2023 13:00:52 -0400 Received: from AM5PR1001CA0039.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:206:15::16) by DU0PR08MB7764.eurprd08.prod.outlook.com (2603:10a6:10:3b8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.24; Fri, 17 Mar 2023 16:55:41 +0000 Received: from AM7EUR03FT007.eop-EUR03.prod.protection.outlook.com (2603:10a6:206:15:cafe::64) by AM5PR1001CA0039.outlook.office365.com (2603:10a6:206:15::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.35 via Frontend Transport; Fri, 17 Mar 2023 16:55:41 +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 AM7EUR03FT007.mail.protection.outlook.com (100.127.140.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6199.20 via Frontend Transport; Fri, 17 Mar 2023 16:55:41 +0000 Received: ("Tessian outbound f2a8d6d66d12:v135"); Fri, 17 Mar 2023 16:55:41 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 92b0962864f0e2c1 X-CR-MTA-TID: 64aa7808 Received: from 0556cce08244.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id FA6F7E15-6334-4726-866C-52CF033C85CE.1; Fri, 17 Mar 2023 16:55:34 +0000 Received: from EUR02-AM0-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 0556cce08244.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 17 Mar 2023 16:55:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O/pAdJqvv9mvzRBbBEbeu8E5XVsZ2FuTODxx1n9nlQ/AuhK2G0ba1NN2+n5fPl7dscPiwF/5CeuM9zYv+ZYP55XcK9MNpKTQSerRvTm+rEHL2RW5e6V5l6s12vaLqzrUK9ajak6eVjsdDsWNbtDbSgmv2+UcOaASK0ZlZEIez/FhofSgTzDyjyOaQJz799P8r4L3+Up9FraSN1gW6qenUpbPDOE8a9HytuZftB+Hd023Ki+J2MB21wHSDdYnzq7YOk3nfMNw3sq21EPSCsj/00s9nWcaQBP0BRbq11V/gwe0cXKD/Fsb8GEA+3HfxvcVsVlgxQ/bvGRPzY6cHHzBJw== 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=oz0+ek/5OT+Ga2JIPnZAGdXmGctqWtquMuq6G06OxRo=; b=HEg+ukLwRgLbI23Q2iCd7onrlKzvJAPFyNvXpN8DybAgk5jk0IXmCx4cF1Epy5tBFk8RiGsffoCMk/5AzS0yKn8nZLE+V6Q/8Ki8+VaJtxXkutOjjpjEGqFVYCN3x+yQt1UqG0uowtb3hEn7aWywqactLRZX+T2qAtK4kmKGolhZAhOAcKawvd+rXeL10IWXfpVzsNz80uwww0mi5KcJmwDgfPNvbFdvxhNZnhlJcf6LgMTVWJGrKOD1UOnxqK70PGSkENhWBs1Lc/KDUyry2Dmu5YBgzDDjdX3lujlOhAWNlvrBvrNICs+Ec6tRZunZXhmuTJuCsYf878+1FTEKcw== 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 PA4PR08MB6064.eurprd08.prod.outlook.com (2603:10a6:102:e2::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.35; Fri, 17 Mar 2023 16:55:31 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::bced:32a3:b77e:90a6]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::bced:32a3:b77e:90a6%5]) with mapi id 15.20.6178.035; Fri, 17 Mar 2023 16:55:31 +0000 Message-ID: <7b032516-913f-87fa-eeb7-c38a8676465a@arm.com> Date: Fri, 17 Mar 2023 16:55:15 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH 09/11] tests/tcg: disable pauth for aarch64 gdb tests Content-Language: en-US To: Peter Maydell Cc: =?UTF-8?Q?Alex_Benn=c3=a9e?= , Fabiano Rosas , qemu-devel@nongnu.org, David Hildenbrand , Wainer dos Santos Moschetta , Richard Henderson , qemu-arm@nongnu.org, Peter Xu , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Cleber Rosa , Thomas Huth , Paolo Bonzini , Beraldo Leal , gdb , Thiago Jung Bauermann , Omair Javaid References: <20230310103123.2118519-1-alex.bennee@linaro.org> <20230310103123.2118519-10-alex.bennee@linaro.org> <87wn3ocwqz.fsf@suse.de> <87sfeclb8o.fsf@linaro.org> <9bb8ab52-c6ae-95a7-e6c8-64bcce166c19@arm.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SA9PR13CA0016.namprd13.prod.outlook.com (2603:10b6:806:21::21) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|PA4PR08MB6064:EE_|AM7EUR03FT007:EE_|DU0PR08MB7764:EE_ X-MS-Office365-Filtering-Correlation-Id: 6559d8e1-e5d7-4225-e60b-08db270870f2 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: ru+CiS+u4/i4vJoediYJySr5cjkxnHoidsGSWU7ldrRTK8gFGT0swKlFu4Zv+msBlsRHxWarD9VevheKh9nhrzNW3UG5RBQAXdvSOpClzKnj89nHmyadJHUL5sNHap0x+t1+T+Q0bEsZQiwVKDtqQsogBl8pvguEzjzff/7vada7XEEb2wFGtkIp62jtEPRvabSxlPSPfAnYxZaZiPqlAvQLWhk8dn/8KfX7ESJT0CCZ7Olcv7omo6L/DP68782qEYQsbziIhewTVvR8+K7BkhHrdSUdFZ27T3l3WG91a2sPHG1sQvuIip8209Jo7STdFi7xTKf13VXIPQtqLFIeYFfvO8hAWF168GkMVH+9gEGuTULj+Gyr1u96jMmDyMmdE5G0i2AyoYdHW6im9woqX9FrwuCbYYgdlkQfwp3W2lwNaEp6bLkPTNFbt3oRU8G76j0g99WilXwEtYgwowLA1vYqg1tU+KwLql4SUaRx45m0dbBDZNViXdXW5TSXSx9meu5S0spS95gvjG8B+komzEjWedW9UjKavcUmvVQXp3sp4C6I00rPYEPelttqP2HlDwa7sc9gzFPW4m/ZlqWw/7c9jjh49PstllGm3BP/APxiQzuwePESrcFHXvmphqtxtQ8kFdx3T3x2yCZ5qPICd9qiSVyME1Rp/gS6lak/Z4pUrzZIo566JaR6EzAwnswyigRrxdBGB0b38BM5r2a00U0+hjuzOMTVa25uUS8Ijxay7TAJMRpAJEToWx3dZlfd8d8ysOcZ+YGV7gxrjL105A== 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)(376002)(396003)(39860400002)(366004)(136003)(346002)(451199018)(6512007)(8676002)(6506007)(26005)(186003)(53546011)(83380400001)(31696002)(86362001)(36756003)(38100700002)(2616005)(4326008)(66946007)(66556008)(6916009)(316002)(54906003)(8936002)(44832011)(7416002)(5660300002)(31686004)(2906002)(41300700001)(6486002)(966005)(66476007)(6666004)(478600001)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6064 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: AM7EUR03FT007.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 6f2062f8-bf0e-431a-b135-08db27086a9b X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xrckGchDc69jd2bGXRnRbPAsMfyCATrgXXpdKuNfHb0XS8FdQUR1AmSR1gry6T6rSU/Y45egVa/GzbKl3nKGB+kJtYAyeh4PUzurCQSp6qi2wzSGwFpGi7zmEQsP/mFdB//Fhmy8x+/HpEVqFzsMEhyczFzoJeF8Fz3zGctIacvNdOAKUEPFYhCOYNQBaCJOdFPA/y+X3LhM2fpOfTkqnPOcUlGFbYN/BySYoALRSsWbdYqzer9KCM9pwlxo10WmZUPplNUliHeyjipAmkbHOT2C8h+fBEEA9LStQt04FVhSmkS3ovHPRGYJIrnHnQLQblSOjknqSIcvVVjG9/rDzBZcr5XWtqK+AjUKN70ZU0z1O6EqU+UvfG/gR2OMegVgiNuOm3rHJStwLLkk3JpgyuarOe1J9TWR8rmGBesotDFRZ6phCsEqKHKE+i5K79tN/dnUqtvJX0m+gUBspcmX9XT1b1gXadUos/GGHA3yUn264c/fDOAKuKWuNnWtpnkIvgrLO9KGc/UrxZNQdEd4PC1EMwvAXokYfr9vJ/pYI5VVd9XihVAxyFq99q3mOS99X8vJV/23bP/7CFt2JBlctpgTYEFtbS0uZI+i7jnkEjzMVzC5xCTbxr6mK69a26ckg4jF/djy4C5ySoM2m9KXwxBMa81SRK7pPoQTx2lYtvYP2RhZ0StyuNG3GIdzOJ2HlaEcgMDxGGzRsa59BrNvfsF1rtzVqwsegtSg6RgMPseNm8JoBp8fOIiXxC5g6ZihIA4jSOtGps5cWN0e1EN+Gw== 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)(396003)(39860400002)(376002)(136003)(346002)(451199018)(40470700004)(36840700001)(46966006)(86362001)(356005)(31696002)(81166007)(36860700001)(36756003)(70206006)(6862004)(54906003)(8676002)(70586007)(40460700003)(8936002)(82740400003)(41300700001)(966005)(478600001)(40480700001)(82310400005)(316002)(6506007)(336012)(2616005)(47076005)(83380400001)(2906002)(107886003)(53546011)(26005)(186003)(5660300002)(6512007)(44832011)(4326008)(6666004)(6486002)(31686004)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Mar 2023 16:55:41.0464 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6559d8e1-e5d7-4225-e60b-08db270870f2 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: AM7EUR03FT007.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB7764 Received-SPF: pass client-ip=2a01:111:f400:fe1f::60e; envelope-from=Luis.Machado@arm.com; helo=EUR01-VE1-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, NICE_REPLY_A=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Luis Machado via Gdb Reply-To: Luis Machado Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" On 3/17/23 16:37, Peter Maydell wrote: > On Wed, 15 Mar 2023 at 09:51, Luis Machado wrote: >> On 3/13/23 11:44, Luis Machado wrote: >>> On 3/13/23 11:22, Peter Maydell via Gdb wrote: >>>> Luis and I came up with two options: >>>> >>>> (1) leave QEMU outputting the pauth xml as-is, and tell people >>>> whose gdb 12 crashes that they should upgrade to a newer gdb >>>> >>>> (2) make QEMU output the pauth info under a different XML namespace, >>>> and tell people who need backtraces when pauth is enabled >>>> that they should upgrade to a newer gdb >>>> >>>> Neither of these feel great, but on balance I guess 2 is better? >>>> >>>> Luis: I think that rather than doing (2) with a QEMU namespace, >>>> we should define a gdb namespace for this. That makes it clear >>>> that this is still a gdb-upstream-sanctioned way of exposing >>>> the pauth registers. >>> >>> That should be fine as well, and would work to side-step the gdb 12 bug= so it doesn't crash. >>> >>> We could name the feature "org.gnu.gdb.aarch64.pauth_v2" or somesuch, a= nd slowly stop using the original >>> "org.gnu.gdb.aarch64.pauth" feature. I can document the requirements fo= r a compliant pauth_v2. >>> >>> FYI, I've pushed a better documentation for the arm/aarch64 xml descrip= tions here: >>> >>> https://sourceware.org/git?p=3Dbinutils-gdb.git;a=3Dcommit;h=3Dd7001b29= e9f256dfc60acb481d9df8f91f2ee623 >>> https://sourceware.org/git?p=3Dbinutils-gdb.git;a=3Dcommit;h=3De0994165= d1b8469dfc27b09b62ac74862d535812 > >> Just an update on this. I had a chat with Richard Henderson yesterday, a= nd it might actually be easier and more convenient to backport >> fixes to older gdb versions (at least gdb-12 and gdb-11, but gdb-10 and = gdb-9 are also affected). This will ensure those won't crash when >> they connect to a qemu that advertises the pauth feature. >> >> It also means we won't need qemu-side changes. My understanding is that = we're close to the 8.0.0 release, and the code is already in place. > > Having run into this problem in another couple of situations, one of > which involved gdb 10, I think I'm increasingly favouring option > 2 here. The affected gdbs seem to be quite widely deployed, and > the bug results in crashes even for users who didn't really > care about pauth. So I'd rather we didn't release a QEMU 8.0 > which crashes these affected deployed gdbs. > Are the affected gdb's packaged by distros? If so, a backport the distros c= an pick up will solve this in a quick package update. If we decide qemu should now emit a different xml for pauth, it will fix th= e crashes, but it also means older gdb's (9/10/11/12) will not be able to backtrace properly throu= gh pauth-signed frames. Maybe that's a reasonable drawback for qemu users? If someone decides to implement a debugging stub that reports pauth (fast m= odels, for example), it will also crash gdb, so I still plan to do the backport anyway. > So: > (a) if on the gdb side you can define (within the next week) a > suitable new XML name you want QEMU to expose, we can commit a > change to switch to that before we do the 8.0 release pauth_v2 sounds about as good as any other for me. > (b) if that's too tight a timescale, we can commit a patch which > just stops QEMU from exposing the pauth.xml, and we can come up > with a better solution after 8.0 releases > > In fact, I think I'm going to submit a patch to do (b) for > now and we can follow up with a patch for (a) if we want. > > thanks > -- PMM IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.