From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id s92YFOsMD2QsCQ4AWB0awg (envelope-from ) for ; Mon, 13 Mar 2023 07:45:47 -0400 Received: by simark.ca (Postfix, from userid 112) id 47B9F1E223; Mon, 13 Mar 2023 07:45:47 -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=Yo/j9twp; 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 8F6AC1E0D2 for ; Mon, 13 Mar 2023 07:45:45 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7F6093858C2D for ; Mon, 13 Mar 2023 11:45:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7F6093858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678707942; bh=Ku6HypoQwXLTKAhEAAf9UzH2uM1f3VRT0NT6bX76VmU=; 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=Yo/j9twpH9651TZu02qPX/qDsts4IX8rnj5y3kO6/c7Ry/F3f8hWjjqyCdMjdlqMh aZSbcPWqLaKM9SFsOLkuLNpYZiiSVULghtWJ85aLTVLf6LSMjN5JTYJ579CpMPb+O6 hjFYbCZ3lVHBcGJvtuRQlwLZwD6vJ4wntV5TPXDA= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 38CF63858D39 for ; Mon, 13 Mar 2023 11:45:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 38CF63858D39 Received: from mail-am6eur05on2082.outbound.protection.outlook.com ([40.107.22.82] 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 1pbgc1-0003xM-E8 for gdb@gnu.org; Mon, 13 Mar 2023 07:45:11 -0400 Received: from AM6PR0202CA0043.eurprd02.prod.outlook.com (2603:10a6:20b:3a::20) by DB5PR08MB10312.eurprd08.prod.outlook.com (2603:10a6:10:3c1::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.24; Mon, 13 Mar 2023 11:44:55 +0000 Received: from VI1EUR03FT014.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:3a:cafe::b9) by AM6PR0202CA0043.outlook.office365.com (2603:10a6:20b:3a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.25 via Frontend Transport; Mon, 13 Mar 2023 11:44:55 +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 VI1EUR03FT014.mail.protection.outlook.com (100.127.145.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6199.11 via Frontend Transport; Mon, 13 Mar 2023 11:44:54 +0000 Received: ("Tessian outbound c2bcb4c18c29:v135"); Mon, 13 Mar 2023 11:44:54 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 976965ed58d1f430 X-CR-MTA-TID: 64aa7808 Received: from b6d81f0ba347.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 5A71A672-9FAC-48D7-84AA-03000C9A72AB.1; Mon, 13 Mar 2023 11:44:47 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b6d81f0ba347.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 13 Mar 2023 11:44:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=huQKVoO0+AINpf7FPsiyORj4uMln9Yj06Ki4WmdTvLi/wi5AOiuSsCQ9wd3UN/ryHcWlF0njiJ7l5puxsfIjgk1wD1uNUBOL/nTmsK4jO0agogZJyYrA0rCCvvy8z/rmu22ZI3bxJ0ZnWZtjBT9BrQwjtVMdgveYvyJetLq/hDP8A/nxciZLegBc/oBjLUNLbsPoD1bT08u85zBcgGI3SCXuJZu1VrubFzbKWONQDon0Ez89fPgGbqA4i/8U4xqrQ2D/BfpuJwgEfJUKSQFF75r/PrbiBq2QcX8g6qxVlYqw+e8sWL0CepZqEIIetQbU0a1rs8V8w6nGqNJooUvZHQ== 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=Ku6HypoQwXLTKAhEAAf9UzH2uM1f3VRT0NT6bX76VmU=; b=eI9+evIcuLGYSPl8L2i+GkGsv0R0bTpsOUVx514WdhOqjn+1CxOtilipbdCurEEOuxgMzuo+ofGo54gGaa27r6osCfNU/To919P8k2LSrsQkBudzDGi8pd9SWChrjdo9yrOAI6jOY9QU6aeTgAbgT6PY5X80KuxsBqC0hR7MJp7Lb8+x0d6zQZMS6vQQbg3fyyk38kLbxmHwHIpbNbelv+A1iaHlft8b8/ppP8YWD+rwFPtVap5kyQQ1JQB2TqlCSn39p3gszZxOxgxfDrWNY8NVRZLXe/Nb/QatNYZv2kUP18Z1cfvnMRByHo7WeOUzrK9OHL+lHT0+IUydrkhI6g== 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 AS4PR08MB7502.eurprd08.prod.outlook.com (2603:10a6:20b:4e6::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.24; Mon, 13 Mar 2023 11:44:41 +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.024; Mon, 13 Mar 2023 11:44:41 +0000 Message-ID: <9bb8ab52-c6ae-95a7-e6c8-64bcce166c19@arm.com> Date: Mon, 13 Mar 2023 11:44:27 +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 , =?UTF-8?Q?Alex_Benn=c3=a9e?= Cc: 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> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SA9PR13CA0030.namprd13.prod.outlook.com (2603:10b6:806:21::35) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|AS4PR08MB7502:EE_|VI1EUR03FT014:EE_|DB5PR08MB10312:EE_ X-MS-Office365-Filtering-Correlation-Id: 62fffbff-7738-4b66-21ce-08db23b85d67 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: fKkoeMs1X6itUYkAdMCp+O1wKj2XRtgCDnhrYf4kCIpduyVPT/aX1ZHQYyheywr4W7rPAeg5kVgeuAjXPAdvIBShPsRYOssYVm9vaTpXoXAd4U2UN2ob+Wws4iZHC64ut+ETD4zBweSkWuBUegaF4/99PxQITsvIBbL6i8dzf60w8/Tum5hFlw7DXDIg+LlF8NkqQKJyMt8o2g3UBZ6wifAKOPooD6Exf7RDSTZln3jxDQhObhkWoebrCoZYI4UvmuiQH69TpiJx4Gmt7myoWsVxDCk7fjgRxjam/XPC0f1mhXLBb9saZ6r3LtS1cUT8eHNbai/9ShQ6cgHMwcVzeGi1xGDtwGy0xIFKjpYWTYFK5HMUmXTiy6UhKfdvjX7P15auzSrE4/bx1jQTZ40GxypxIZoIIMs3FHmwLB14uiejGplLY5yr0ypSPA3raYWaOu5ZF+KFXCFW4OS5FbbJGYjbPbV4V5chli0cZ8/60m52qebRc3TUQ8/w5Kb2lw0qj0DCauT9cei2KdRYvsgjET+HHLfPC1vbS0fYA+Hm+NQHRXwvlWknWR2kPAtd8J3pH6k8dosIangIC1NerZiT2XIKjZxFCueOmkRwhdeO9TyT7wq9wXUu5i4k/56dNng48tK6FYzfGU9HoK2z+cT+ycsiM/w0vFxdzUq9RbJdeV1HNJEBwEkG7eojNDot8zU0dnVubM4LKPmKlQFH3Lhb4+7Mm2djgsOi6uwixqoSQr0rroQGqDG9PbwGxVRY9Jc2 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)(396003)(39860400002)(376002)(366004)(136003)(346002)(451199018)(31696002)(86362001)(36756003)(38100700002)(8676002)(4326008)(66556008)(66476007)(66946007)(8936002)(54906003)(110136005)(41300700001)(478600001)(316002)(6506007)(7416002)(5660300002)(44832011)(2906002)(66574015)(2616005)(83380400001)(6486002)(186003)(6666004)(6512007)(26005)(53546011)(966005)(31686004)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB7502 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: VI1EUR03FT014.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 350a1288-b8c8-46a4-dc27-08db23b854d5 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lYsOSybgzrAXFuvCfkYWsuBJE4NqbcbWmlQvF7aE0UNE9HcMuggyTGL4Lz00LaHsILIChkb615iASjMoqmyw802EuCfbNQKm3XU1UvRJIzkr0aTIHnXzV4jVpHOpTDi6tv7YjSnqVrwsxgVvX8fu8g8GYRQaoJr8ZvO+xJjNdjoHbe0COksPTMoNdA4oa2BDilml8/rdwsrrWfhL1ioWga86ozQBfHSFQvjsNR8ZpLlmJAQBM/2f07r7o2u9wTkCfK6AOf1BB2BmU7XCnCd5bCo1yuamvRw+vIl7+aVQ5anPmufX+HljwxJV6RK8NZgjF1XO5VvJbULJqPSBmri4/+gy0/bh+EAPGbxbRr6p1oKgOIegO2C248Z2DDuflN7m+NHFfO2+1OUc5Z9IVbM2qtZf6Kh2rHAr9DNSLP++bQk5NFGaXM1HBbtG9BTgB9d6+yOZuTDFaQR+dshR5Ua1OzbV9baw68gpnQCTbGXTPGA6CrZu+wALejBCfyrprfAhjlEI+vBfXR+lvAIOFywbhrZwlz0e3xNN0HCbZKDMfEcFg07vmkZmunqAI76H2abvBxEA38mDeBMvNbXI6bdITZF39q6J94O9zLoe2h8M9pe0wi5HRCgnYE5em5IYV4dw3TnMXaeUrPPTt614vJVXY6ZzbRBjhcCwZ46KgEE73S6H9HfMRHtM41s2ZPDDOsHHcuv4a51DuxDiQZPdpk5JmmMP6hV2TLrnv89KWAYo0Jc= 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)(396003)(346002)(376002)(136003)(451199018)(36840700001)(46966006)(336012)(2616005)(186003)(31686004)(44832011)(53546011)(6512007)(6506007)(26005)(8936002)(83380400001)(107886003)(6666004)(82310400005)(36860700001)(356005)(82740400003)(81166007)(5660300002)(66574015)(966005)(6486002)(47076005)(40480700001)(4326008)(70586007)(2906002)(70206006)(41300700001)(8676002)(478600001)(316002)(110136005)(36756003)(54906003)(31696002)(86362001)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2023 11:44:54.9958 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 62fffbff-7738-4b66-21ce-08db23b85d67 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: VI1EUR03FT014.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR08MB10312 Received-SPF: pass client-ip=40.107.22.82; 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=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/13/23 11:22, Peter Maydell via Gdb wrote: > On Fri, 10 Mar 2023 at 18:20, Alex Benn=C3=A9e w= rote: >> >> >> (adding some more gdb types to CC) >> >> Fabiano Rosas writes: >> >>> Peter Maydell writes: >>> >>>> On Fri, 10 Mar 2023 at 10:31, Alex Benn=C3=A9e wrote: >>>>> >>>>> You need a very new gdb to be able to run with pauth support otherwis= e >>>>> your likely to hit asserts and aborts. Disable pauth for now until we >>>>> can properly probe support in gdb. >>>>> >>>>> Signed-off-by: Alex Benn=C3=A9e >>>> >>>> If it makes gdb fall over, then shouldn't we be disabling >>>> the pauth gdbstub stuff entirely ? Otherwise even if our >>>> tests are fine our users will not be... >>>> >>> >>> Have you seem my message on IRC about changing the feature name in the >>> XML? I think the issue is that we're putting the .xml in a "namespace" >>> where GDB expects to only find stuff which it has code to >>> support. Changing from "org.gnu.gdb.aarch64.pauth" to >>> "org.qemu.aarch64.pauth" made it stop crashing and I can read the >>> registers just fine. >> >> That would work, although I would prefer to probe support so we can use >> the official namespace. > > I don't think there's a way to probe for this problem. I spoke > to Luis about this, and apparently it's a bug in how gdb handles > the pauth XML description (fixed in gdb commit 1ba3a3222039eb25). > A gdb without any pauth support at all will be fine; a gdb with > the bug will report that it has pauth support but will crash > if you feed it the whole set of XML that QEMU has; a gdb > with the bug fixed will also report pauth support but won't crash. > (The bug only manifests if the full XML includes registers that GDB > doesn't care about, like the system registers; if the stub sends > only registers GDB knows about then it won't crash.) > > 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, and s= lowly stop using the original "org.gnu.gdb.aarch64.pauth" feature. I can document the requirements for a = compliant pauth_v2. FYI, I've pushed a better documentation for the arm/aarch64 xml description= s here: https://sourceware.org/git?p=3Dbinutils-gdb.git;a=3Dcommit;h=3Dd7001b29e9f2= 56dfc60acb481d9df8f91f2ee623 https://sourceware.org/git?p=3Dbinutils-gdb.git;a=3Dcommit;h=3De0994165d1b8= 469dfc27b09b62ac74862d535812 > > 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.