From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 8YFnNft0C2QdGgsAWB0awg (envelope-from ) for ; Fri, 10 Mar 2023 13:20:43 -0500 Received: by simark.ca (Postfix, from userid 112) id CABCA1E223; Fri, 10 Mar 2023 13:20:43 -0500 (EST) 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=SSW3RKLu; 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,RCVD_IN_DNSWL_HI, 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 565F91E0D3 for ; Fri, 10 Mar 2023 13:20:42 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7B3B43858409 for ; Fri, 10 Mar 2023 18:20:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7B3B43858409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678472441; bh=ARpEER3rcq7nJPk1aUfOpdpd+Tzob1kL5i2bOHhiBlc=; h=References:To:Cc:Subject:Date:In-reply-to:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=SSW3RKLult6u+Wa+Z9M/YAz+aqCRqqvhTBxE31DHbrNIvgY8uvPKCcDrSSdhnfCKl Lkw8ddPuANDLUFGXlBsWKwOBt8PIA1UPIFgE//3rAQHCN+qMWvsNhFgOkCpvNef8jV ymyzul9sKupaaFp+xz/qKcsUAnjlZb7KEqJFNwBg= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 0E5B13858CDA for ; Fri, 10 Mar 2023 18:20:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0E5B13858CDA Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pahLe-000827-PD for gdb@gnu.org; Fri, 10 Mar 2023 13:20:13 -0500 Received: by mail-wm1-x32e.google.com with SMTP id t25-20020a1c7719000000b003eb052cc5ccso6699362wmi.4 for ; Fri, 10 Mar 2023 10:20:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678472408; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=ARpEER3rcq7nJPk1aUfOpdpd+Tzob1kL5i2bOHhiBlc=; b=b9WzAUsmCyS3xan08T42XVJpbP587PYxwjLdMbpEbi2Ea81C/K8s9UBhsFkRxblsHg dHj8Bz+5YoJj1n8gjl3w7dSMgENelORtvdHMMlQNybPVsMx2nMGGCqd4TKJhqo+BnIpH ORAFJR8rqhAIb7kEv7siikQ2qxJklEpkpg4bBVVHZk+n/8ER+UPv/NQTao2+XMfCwpjq VjQfHumtMBKsQdfjZwTFQ3tYxXl7C5VAjJg+XXli+mXDOb5OWKGNLzvZVzGK4WnAjxPw GKQqkg7hf/RzZ4Uyh4rEILEmIrtC8M0pp2VB3xjNewgYi08tNgeUzTQudmaER0552hYh nkAQ== X-Gm-Message-State: AO0yUKU22Yp408mdMECbBZhyTH9sg1hD4vf8biK7gfUlSEev8bwKq1Rc 9320a9jwlcfkm35+TXxxewHsGpSqZNnFzpsuiMQ= X-Google-Smtp-Source: AK7set9mQjM67NS999J7iZep86vlBlFEPWOP5/Bcpfs4XHX4LCY7XupseGWOpxKtXIheg+fyjq7xgQ== X-Received: by 2002:a05:600c:5113:b0:3ea:f05b:50cc with SMTP id o19-20020a05600c511300b003eaf05b50ccmr3742935wms.8.1678472407839; Fri, 10 Mar 2023 10:20:07 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id x6-20020adff646000000b002c5694aef92sm436473wrp.21.2023.03.10.10.20.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 10:20:07 -0800 (PST) Received: from zen (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 20B8C1FFB7; Fri, 10 Mar 2023 18:20:07 +0000 (GMT) References: <20230310103123.2118519-1-alex.bennee@linaro.org> <20230310103123.2118519-10-alex.bennee@linaro.org> <87wn3ocwqz.fsf@suse.de> User-agent: mu4e 1.9.21; emacs 29.0.60 To: Fabiano Rosas Cc: Peter Maydell , qemu-devel@nongnu.org, David Hildenbrand , Wainer dos Santos Moschetta , Richard Henderson , qemu-arm@nongnu.org, Peter Xu , Philippe =?utf-8?Q?Mat?= =?utf-8?Q?hieu-Daud=C3=A9?= , Cleber Rosa , Thomas Huth , Paolo Bonzini , Beraldo Leal , gdb , Thiago Jung Bauermann , Omair Javaid Subject: Re: [PATCH 09/11] tests/tcg: disable pauth for aarch64 gdb tests Date: Fri, 10 Mar 2023 18:14:12 +0000 In-reply-to: <87wn3ocwqz.fsf@suse.de> Message-ID: <87sfeclb8o.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: =?utf-8?q?Alex_Benn=C3=A9e_via_Gdb?= Reply-To: Alex =?utf-8?Q?Benn=C3=A9e?= Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" (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 otherwise >>> 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. We went through something similar with SVE until: 797920b952 (target/arm: use official org.gnu.gdb.aarch64.sve layout for r= egisters) which required: b1863ccc95 (configure: gate our use of GDB to 8.3.1 or above) Since then we've introduced: ./scripts/probe-gdb-support.py which given the runes to check for pauth support in gdb could expose a symbol and we get the best of both worlds. Of course if this keeps happening we could throw up our hands and just use custom XML for all the extra register sets. --=20 Alex Benn=C3=A9e Virtualisation Tech Lead @ Linaro