From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id A74F33858D28 for ; Fri, 17 Mar 2023 17:13:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A74F33858D28 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=arm.com Received: from mail-am6eur05on2069.outbound.protection.outlook.com ([40.107.22.69] helo=EUR05-AM6-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 1pdDdl-0007Vu-G6 for gdb@gnu.org; Fri, 17 Mar 2023 13:13:19 -0400 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=R9lY5FSmCPUpQkoE7dMB69Ky8NF2cTG7lJl4O5CU/H4=; b=l7CDlT+qzPZ/BezVbf04N94GWPrY9i/1HMLrHw5u1Gsdq1lNDjlVVhqyEEhcMMRY35GMS1vhuxZyfnHOv+hW3L6WKmAOsSpwTgVhba5s8Y75HIshwPiZwQGaSBacYRkD00edIjunHiGS6Wx5FKPsfE5Z1IlsCtiAgv1ikKMYvFo= Received: from AS9PR06CA0208.eurprd06.prod.outlook.com (2603:10a6:20b:45d::23) by AS2PR08MB9593.eurprd08.prod.outlook.com (2603:10a6:20b:60b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.19; Fri, 17 Mar 2023 17:13:13 +0000 Received: from AM7EUR03FT006.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:45d:cafe::1f) by AS9PR06CA0208.outlook.office365.com (2603:10a6:20b:45d::23) 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 17:13:13 +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 AM7EUR03FT006.mail.protection.outlook.com (100.127.141.21) 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 17:13:13 +0000 Received: ("Tessian outbound fcd8b5fba459:v135"); Fri, 17 Mar 2023 17:13:13 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 56565e3684275e64 X-CR-MTA-TID: 64aa7808 Received: from d866bce00af4.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 516C8E95-E52B-444D-8A76-37E0DF7B020D.1; Fri, 17 Mar 2023 17:13:06 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d866bce00af4.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 17 Mar 2023 17:13:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M0WpLVC/Y3fp2i4mpDwhdgzWfHrCu25CYe8FEXMUHMV0z6jdPc1eQZKhqL9VwkFuXXq0Aumfy+D4JLiKcm5KV0niSu4hB+WRLkxVcatx3RlWg4DycG8lGQCQyeluh2LDRHzfqhToa1YiBZ5OtLHGHAgOKTM+AI6LKVmcW2DVdZdtqG2vW1YzxY9u3a5nhDvRQgq719YEilE/8t8zgmy/n1EQhtJN3Y442XVklk55Yh0p3UPgmWf151t57MvlFoorem2r3F8aXeDbjtnWbXZtgWLq1Ge+UXbF6slUOnp1RqwldK6+Y2SxFlKAkqeD2eGqXwJQ4MrH0qIpPxf2HeDTtQ== 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=R9lY5FSmCPUpQkoE7dMB69Ky8NF2cTG7lJl4O5CU/H4=; b=LEjDrfQuauj6oQ08kczZCZV2jKbNr9X+16HObTdACwuAq06uO9M2zUS5a9V/zPvwM92JY+yX4BIF3/jmxCt+k16aazn9s91WLvndwRAS4hzGiJwEXhQKL+17lmomXrOwZFFUBFd+z00VdWILGxC7x4Qf6bnVMPNh+pxpDM5b2JEKqOCksIEjCJ2WARw7SASsj/pBJ05qga2si5zhEVdMuLnEDHAJABWNv0xAI1Y9mzg1NhtvihfcUGXFDpveF2wuCL4e4CK4+Iksy9eZi9wDauqL0Zs8c6UbILrxfrIsbIRhNmFz3QJsfSHMmla0wXG1qbqw6+OLnZ0gIFWiNt4dMA== 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=R9lY5FSmCPUpQkoE7dMB69Ky8NF2cTG7lJl4O5CU/H4=; b=l7CDlT+qzPZ/BezVbf04N94GWPrY9i/1HMLrHw5u1Gsdq1lNDjlVVhqyEEhcMMRY35GMS1vhuxZyfnHOv+hW3L6WKmAOsSpwTgVhba5s8Y75HIshwPiZwQGaSBacYRkD00edIjunHiGS6Wx5FKPsfE5Z1IlsCtiAgv1ikKMYvFo= 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 GV1PR08MB8668.eurprd08.prod.outlook.com (2603:10a6:150:86::20) 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 17:13:03 +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 17:13:03 +0000 Message-ID: <284bbdeb-f68c-a0fb-4bec-e000eeef771f@arm.com> Date: Fri, 17 Mar 2023 17:12:48 +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> <7b032516-913f-87fa-eeb7-c38a8676465a@arm.com> From: Luis Machado In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SA9PR13CA0099.namprd13.prod.outlook.com (2603:10b6:806:24::14) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|GV1PR08MB8668:EE_|AM7EUR03FT006:EE_|AS2PR08MB9593:EE_ X-MS-Office365-Filtering-Correlation-Id: 7460dab5-c1fb-4913-2df4-08db270ae437 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: /4nMitsfFX6UMeZTQdv66rcJ7ATkkeEgroH0xYexTYt7YuyIU/uZi1wPH4/YZWbGXEpqR2e9L78tiID75eI+EoTULOL+K4XDhIAFDhXb8HGheWVv+rPLeS1mpMCVyxdZ845IA24wy54fPwJFi2Ew/qqBHeW3vPHB4WYSsK0vndWItJuDr3/bctNzGGQlSV/8FEQlTMrH7fko6/10MN27AaBTXZ2+KV6P9VvqcFhUuYhj07BxuwT6DhJhii6tUJATsLbENSG3NBaMPDdZm/TKqicjvlmdVUIdlYwFHIWu2ax+4w0P3OeyJML06Rr1WWmB4oIC5XJ/XU3NGwR872qpy6RbjcMAt0432QoPRoDqBDUnxKlhBxOs9RJGRoxuqiTArX+CYIR8M7oXOYP/jy5X4EX4YFx+OZMGAYiiEnVy0RjM4PGlkH9pvgiqDkSED+UaGkPS5U2tA1JKBlueWaOP7pjfLzASojmTNHdcwmulhMiHTbCnYTZsqa0+WVGyuxvV24JOzDrk+AOTS/1HgP3UJ3Z5Zxgn0chD19TK576Z1bbXhkM388Lgha7MenzjirvLvHKD3DfRq6xUHW2FC8TM+OsPOsOU5Yf7mlbMquk7rttBj2lcCJhYA6X6aZDCI9LX5XQw5rVtvMFcywIc5XlBo56cxeS3lelYFQeDLO50LaF576vIECMakh4COi4KrExnT1k1FpHyhHlFaJQVvgo3FaithtZf02GC87D/jvMdEdE= 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)(346002)(396003)(376002)(136003)(39860400002)(366004)(451199018)(41300700001)(54906003)(2616005)(86362001)(83380400001)(6486002)(4326008)(38100700002)(44832011)(8676002)(2906002)(6916009)(316002)(31696002)(5660300002)(66946007)(66556008)(7416002)(8936002)(36756003)(66476007)(186003)(6666004)(6506007)(6512007)(26005)(478600001)(53546011)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB8668 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: AM7EUR03FT006.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 61c87354-1cc5-4717-e2d0-08db270addb4 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eGRHGVWxaupv4g6ktm+NBM6j2pUkQfjZ9xCVVBUyvR0FssoJdTx9ZkN15VP3j2TlohCmNazbaSc9YUbsyGAgfXSjhHW20CRJXS4hTpXQQ+XrhyBT3q8HvfW15stOz04vzKbOfoR7Ub7rJ6/2/id+CDqyM4vA4Wx3tTBjNNSzRCWLZ/1dhoNM59szCvGnH/gJB3YW3ppBVHrhCTeLObOLTXit5+Glsx8Q3a+wj3y++PQt4kJLBlKCRzgAXLu4Nsb6I4sjnxQUROHh+WyDnW3kx17Zhdkq7+hJdzrc8cfkX84BGfcw2hxh9osOh7UfOgQoN9QZurv397e/lwJR7xzGtvN5c4A2a3ZiglCNIV6MSb0XPmUNtMDR6x9kTjPJZLTOqDyisEOJthQ0HTX4rc1BnmGz4f0OWRIsqGYgYM2sdpjBnJVg+TD6pSRjsPjhJN/dpzvP1JPGP3kj1zj+I6wje7zPEdSbECbpsWnUtwEiHEi5m7vIV0NCXBhQk6qQoMMQSsgbsKZT+QkcbE960K+/QuSfNmwRUifdmRQcugGjruZNCImRRyTlPRi4z6A/k6sE1VO+5Hr3k+F65WcoGWEUK9LlxljM1SBSOTglhnUv4Hq0S3HVIVcGwgSHfVw87QWEcwji02Bj9TT1Uejr9b2R/lGvzvRxxb4wQrVn5GYMHv68oTyZf4frFM+ivfrWCpdbFUL5bFzmbMt/nSQoZxP7SlOYI17q5xy+zIQ0tUqwQx0= 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)(39860400002)(346002)(376002)(136003)(396003)(451199018)(40470700004)(46966006)(36840700001)(83380400001)(36860700001)(186003)(82740400003)(6486002)(36756003)(70206006)(478600001)(316002)(6506007)(2616005)(86362001)(31696002)(31686004)(356005)(54906003)(4326008)(41300700001)(6666004)(8676002)(70586007)(26005)(336012)(82310400005)(53546011)(107886003)(6512007)(44832011)(81166007)(5660300002)(40460700003)(6862004)(8936002)(47076005)(40480700001)(2906002)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Mar 2023 17:13:13.4566 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7460dab5-c1fb-4913-2df4-08db270ae437 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: AM7EUR03FT006.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB9593 Received-SPF: pass client-ip=40.107.22.69; envelope-from=Luis.Machado@arm.com; helo=EUR05-AM6-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,RCVD_IN_DNSWL_NONE=-0.0001,RCVD_IN_MSPIKE_H2=-0.001,SPF_HELO_PASS=-0.001,SPF_PASS=-0.001,UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,KAM_DMARC_NONE,NICE_REPLY_A,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/17/23 17:07, Peter Maydell wrote: > On Fri, 17 Mar 2023 at 16:55, Luis Machado wrote: >> On 3/17/23 16:37, Peter Maydell wrote: >>> 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 distro= s can pick up >> will solve this in a quick package update. > > Yes, it's exactly because these gdbs are distro-packaged > that I don't want QEMU to make them crash. I think it's > going to take a long time for the fix to go into gdb branches > and gdb to make a point release and distros to pick up that > point release, and in the meantime that's a lot of crashing > gdb bug reports that we're going to have to field. Just to clarify, there won't be any point releases for gdb's 9/10/11/12. W= e might have a bug fix release for gdb 13 though (which isn't affected). > >> If we decide qemu should now emit a different xml for pauth, it will fix= the crashes, but it also >> means older gdb's (9/10/11/12) will not be able to backtrace properly th= rough pauth-signed frames. >> >> Maybe that's a reasonable drawback for qemu users? > > "No backtrace through pauth frames" is the situation we've > been in ever since we implemented pauth in 2019, so I think > that's fine. It's not regressing something that used to work. > Fair enough. >> If someone decides to implement a debugging stub that reports pauth (fas= t models, for example), it will >> also crash gdb, so I still plan to do the backport anyway. > > If you're backporting the fix, you could also backport the > (hopefully tiny) change that says "treat pauth_v2 the same > way we do pauth", and then users with an updated older > gdb will also get working backtraces. I can negotiate that as well, though it borders being a new feature. > > 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.