From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD8F2286D5E; Mon, 18 Aug 2025 13:01:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755522107; cv=none; b=RC3pjddo2qUfiF72hRJ75UCaKXHzYQJAlklRakhB6iaM+uYfBzYUjMbxqHh2m6pNh344T0ldgl128QrRDO3Ll3NRvCgs/YKFZIDTdCUD/iMxE9kYXOK2wX8UkGV1dsC+Dsz3Ufu0/3OO77PJrDeYm0Gzh+2nS+LyngkzHp/bVyI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755522107; c=relaxed/simple; bh=1Ov1fuRJjDiLuyV1VF31GdKbNvUodxq8M96tIdjTSBg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RgLrXOBOPJBph4rJDmNkcHA+vbZOgMzfibL0U89uL44AHyBUij++3o2btReO4FrOt2sVU3ci/PCgNeUqd/+0YQhT2aEPtyElc9SpuZlMHWYSLPkilG7t+nFFAZh96dJkWrWwcyItkOMSdunsD7/9G33O6huQ5rc/pbGc03PAREE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=a3lRYF22; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="a3lRYF22" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 425D5C4CEEB; Mon, 18 Aug 2025 13:01:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755522107; bh=1Ov1fuRJjDiLuyV1VF31GdKbNvUodxq8M96tIdjTSBg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a3lRYF22wKtpWRkzbRIcEDC5cyUgMpzeqA2qfSTPlyXxD/uE9evKUrYGHNlSFbQr6 4Dk0vKjuSlQHvOn7JD5q9doMTWU3oMigYj5HBEX4/YagG7OVZ8lql0bDlsaVHXbOhd QnXwYtQw2/WYwjtkqob+zBgQkelQRCoUzrnBLs90= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Mark Rutland , Mark Brown , Catalin Marinas , Sasha Levin Subject: [PATCH 6.12 216/444] kselftest/arm64: Specify SVE data when testing VL set in sve-ptrace Date: Mon, 18 Aug 2025 14:44:02 +0200 Message-ID: <20250818124456.945770305@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250818124448.879659024@linuxfoundation.org> References: <20250818124448.879659024@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mark Brown [ Upstream commit 9e8ebfe677f9101bbfe1f75d548a5aec581e8213 ] Since f916dd32a943 ("arm64/fpsimd: ptrace: Mandate SVE payload for streaming-mode state") we reject attempts to write to the streaming mode regset even if there is no register data supplied, causing the tests for setting vector lengths and setting SVE_VL_INHERIT in sve-ptrace to spuriously fail. Set the flag to avoid the issue, we still support not supplying register data. Acked-by: Mark Rutland Signed-off-by: Mark Brown Link: https://lore.kernel.org/r/20250609-kselftest-arm64-ssve-fixups-v2-3-998fcfa6f240@kernel.org Signed-off-by: Catalin Marinas Signed-off-by: Sasha Levin --- tools/testing/selftests/arm64/fp/sve-ptrace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/arm64/fp/sve-ptrace.c b/tools/testing/selftests/arm64/fp/sve-ptrace.c index c6228176dd1a..408fb1c5c2f8 100644 --- a/tools/testing/selftests/arm64/fp/sve-ptrace.c +++ b/tools/testing/selftests/arm64/fp/sve-ptrace.c @@ -168,7 +168,7 @@ static void ptrace_set_get_inherit(pid_t child, const struct vec_type *type) memset(&sve, 0, sizeof(sve)); sve.size = sizeof(sve); sve.vl = sve_vl_from_vq(SVE_VQ_MIN); - sve.flags = SVE_PT_VL_INHERIT; + sve.flags = SVE_PT_VL_INHERIT | SVE_PT_REGS_SVE; ret = set_sve(child, type, &sve); if (ret != 0) { ksft_test_result_fail("Failed to set %s SVE_PT_VL_INHERIT\n", @@ -233,6 +233,7 @@ static void ptrace_set_get_vl(pid_t child, const struct vec_type *type, /* Set the VL by doing a set with no register payload */ memset(&sve, 0, sizeof(sve)); sve.size = sizeof(sve); + sve.flags = SVE_PT_REGS_SVE; sve.vl = vl; ret = set_sve(child, type, &sve); if (ret != 0) { -- 2.39.5