Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2542734rwb; Fri, 20 Jan 2023 04:27:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXtPQFCanacbWFZx937hwmbR7z8TJU2WcthhEVk3GmQr1h2Z8BmZzQCkLvLUOOzgh7itMv0p X-Received: by 2002:a17:90b:4acb:b0:22b:b794:bb47 with SMTP id mh11-20020a17090b4acb00b0022bb794bb47mr722111pjb.23.1674217649456; Fri, 20 Jan 2023 04:27:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674217649; cv=none; d=google.com; s=arc-20160816; b=tC07X3I+QIceDps6/3DH89TIO3EcpIbXX0KUQQzWz6yhIRDnTDwBa5SIvi8+KT3zaM emstARjO3d9xkzUiAKeV54bfvM0PJRbPLabZCOOkVn2dfKLiBLzJCYyZOILDufPiyCav LWZopmex3sv1GM+NQ/+ZbUD2cUoXv/U1SMYYJaLrAmzWUO+y0PAuZIudAHEyWHlORf7Z bJGX1vKpk6/4K1qdBHPRtJo4X4nHHjALOxoSN03Yz06oz21CXJBGeCJUAfPJQF1eiH4a bZVCwpYqozCTEXZDCRfp85+lzF8w2VM5W5ylf4ARGt2h8qMHp3NPoO1L4qiDIujqXDxZ J+IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=pQjMZ+VBomcC1A8yuL4wB9NV3dFl3H+ubusdHv4U/2Q=; b=D3tj6OdGryHdbDLqiYPe2ANC3+awTvdhACGOKg8m8MQSl40gpSUO+tPdsXOxHWI8hC ecb2jNZ3Z/+dCdvFGJBmliW8d9NmlMmnFqojCaQncnoMJ7L75j/v9Yz8KIHwPUNW7LoI 2Jx8HWsJFVwxXhGh6Idgz648m2Q+dRqY3cVoYIzV3OKoUl7bFadrq36uvMU+WHuKhMEZ eIT1wCbqv/OnMDT27Wpj66ZNIBcZtYFJ65L6R8wzD181+UqZ04Saa4Vb/UfIH4qXbqxM iRARxtYRIY+pIPFuY+KbkEDMyzkCJqmypoGn9kNcIE/3Fvg8kHYmFOYlSsnIcoTjNhaX jNcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QjNKClth; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f11-20020a17090ac28b00b0021a0bf0330esi2187688pjt.73.2023.01.20.04.27.23; Fri, 20 Jan 2023 04:27:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QjNKClth; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230047AbjATMEv (ORCPT + 51 others); Fri, 20 Jan 2023 07:04:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230063AbjATMEp (ORCPT ); Fri, 20 Jan 2023 07:04:45 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B88F7C875; Fri, 20 Jan 2023 04:04:44 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D7843B82608; Fri, 20 Jan 2023 12:04:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9D84C4339E; Fri, 20 Jan 2023 12:04:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674216281; bh=G1YecYTzPBTdDuE6klviThW76hBwjUFMCoL2VKolvfc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=QjNKClthHXEOXVQLZHhKAzOdrE86/SOcQVP45uoDTduYm49GUx+4h6FdG0Ut9TqyB j7JL5wFs/SepjowSYNVC/f8BsoldCm6/jMjgExcuZmaaUBcWEJiG1r4hdndKguyCcv AKfCT1+YSR/IhfkVF28hCr9YtOjJsfTnokN8DIFxgzHpDWessRRew7gghwZ5ad1eRV Tr9Xg/snGPxad9ZpT6KtvpBEldydXu1LPtiJpKbEbhGVSQUxGjCnE91+ueMMXrNfeB K4viLMHChcje+OhZbddY3T9gAdUuYJNrUlN7Rm2H+ANcpSELbw55hA2XYkm1gxYIpE lawyiPJHeryqQ== From: Mark Brown Date: Fri, 20 Jan 2023 12:04:08 +0000 Subject: [PATCH 1/2] kselftest/arm64: Verify that SSVE signal context has SVE_SIG_FLAG_SM set MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230117-arm64-test-ssve-za-v1-1-203c00150154@kernel.org> References: <20230117-arm64-test-ssve-za-v1-0-203c00150154@kernel.org> In-Reply-To: <20230117-arm64-test-ssve-za-v1-0-203c00150154@kernel.org> To: Catalin Marinas , Will Deacon , Shuah Khan Cc: linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.12-dev-77e06 X-Developer-Signature: v=1; a=openpgp-sha256; l=1004; i=broonie@kernel.org; h=from:subject:message-id; bh=G1YecYTzPBTdDuE6klviThW76hBwjUFMCoL2VKolvfc=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBjyoNVo+QLAPPwGLEzBdEbbyGyDsfwYBzXmnZmVluV m3Ltq0aJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCY8qDVQAKCRAk1otyXVSH0EFfB/ wJu0C3TsF2Zll0K29OrWZelIKBteIhzaeqnwNwye9JoDG800vJ5T4ZShRYAlonXTUGYv+L5JMV/fqW dPhsTnRiIEtYcnE0Z5IReKac2kbkEQXppPz3NngSXTqr/EYzUM+/S0bOISfU3Y4eSkmRC2EmF65PIp f/DRn0/5eEk+yUPR2r2pWDAbIQ/x1YeacGBMAa4+qxfkEWVLq4fctt/O3A2wZ3RF8KNbR4xmh6seb+ 03LO7KFaixUMGc4V/FvaR48Q5DQ5VHZEmg4dGKPzHBX6B1/g0zjYdC+e+f5yarAal4xXfVQ7qGOQlE leGyg1RXCVLuPFCnHlmKRsDaf3sJhd X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Streaming mode SVE signal context should have SVE_SIG_FLAG_SM set but we were not actually validating this. Add a check. Signed-off-by: Mark Brown --- tools/testing/selftests/arm64/signal/testcases/ssve_regs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/testing/selftests/arm64/signal/testcases/ssve_regs.c b/tools/testing/selftests/arm64/signal/testcases/ssve_regs.c index d0a178945b1a..cd738265cdcd 100644 --- a/tools/testing/selftests/arm64/signal/testcases/ssve_regs.c +++ b/tools/testing/selftests/arm64/signal/testcases/ssve_regs.c @@ -92,6 +92,11 @@ static int do_one_sme_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, return 1; } + if (!(ssve->flags & SVE_SIG_FLAG_SM)) { + fprintf(stderr, "SVE_SIG_FLAG_SM not set in SVE record\n"); + return 1; + } + /* The actual size validation is done in get_current_context() */ fprintf(stderr, "Got expected size %u and VL %d\n", head->size, ssve->vl); -- 2.34.1