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 0E5B13858CDA for ; Fri, 10 Mar 2023 18:20:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0E5B13858CDA Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=linaro.org 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678472408; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:from:to:cc:subject:date :message-id:reply-to; bh=ARpEER3rcq7nJPk1aUfOpdpd+Tzob1kL5i2bOHhiBlc=; b=pbMEtGou/3xP3nRzC66IDcdl6dqjcbfAzP+6UxnlqWKZ9KF6X9oxW4zoil/dt2NB57 pB1nO8nW9us6EXAkvadYxzJv8UM0GxFpWCWvPDgYV9soCxuQvczfaO0x27xIdURm5BQ9 tpY7J4vtC0bjnI8kJ7f6MamJzRReXl3vyPtjMSkx9JXjipLltYiqNSwTfKrHQY9TY0iY zg0A0R6DiKbQ48SOUE/AbdHjSt+wc20OoI3z9PVmM13ZfHd+tU15diwxKMIzqGAm0T6c TABP0gCQwXNDG3twvYhuCi0wOnpFbiJcgUnAR9AkQR9tx7FZDM6t+HyQLw48w8A05oQP hNiQ== 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 From: Alex =?utf-8?Q?Benn=C3=A9e?= 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-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_SOFTFAIL,TXREP 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: (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