From patchwork Thu Aug 22 15:11:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 13773698 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id ABAE7C5321D for ; Thu, 22 Aug 2024 15:13:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 37DCB8003D; Thu, 22 Aug 2024 11:13:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 32C3B8001E; Thu, 22 Aug 2024 11:13:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1CD698003D; Thu, 22 Aug 2024 11:13:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id F111A8001E for ; Thu, 22 Aug 2024 11:13:27 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id A3BF181788 for ; Thu, 22 Aug 2024 15:13:27 +0000 (UTC) X-FDA: 82480225254.14.6F8020D Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf09.hostedemail.com (Postfix) with ESMTP id 15F8D14002E for ; Thu, 22 Aug 2024 15:13:25 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=none; spf=pass (imf09.hostedemail.com: domain of joey.gouly@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=joey.gouly@arm.com; dmarc=pass (policy=none) header.from=arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724339589; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pU8VCuCTIjK7lA3OtU4H5wHq2JK3PvbDWYK/md3Tuyc=; b=oKlHSa6AKdJgRKhPvnBssdHtv83xOwdv17ESbv1p+PELC29JMJQT9BlhVlOZszDhOytD7H Yut66UzVAjqGPfxcWUD55QNjCRQbjCTcVnsw7XivnwE5Tb1MnTNUsK7+4pHDOG+4VWPwrG 2SPJ+0lNRHWwWxz0NDO0Kn6A2G2lcZI= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=none; spf=pass (imf09.hostedemail.com: domain of joey.gouly@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=joey.gouly@arm.com; dmarc=pass (policy=none) header.from=arm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724339589; a=rsa-sha256; cv=none; b=Xax9xr2xtxDlMY6TeEsXjLHjRFeNPx01wke5ege0T26fRR8fw3txOxlOolrtY7RlUjQIxb FDcpTVpq4PLrXMJwqxqKqNLFaHoDma/W1WOXQC+t6HowOqNXRACcfodLcX4+/Oe7YOX2Lc qm6+XpceEnZY+t4+InOttrYvJJvUkyA= Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7664D168F; Thu, 22 Aug 2024 08:13:51 -0700 (PDT) Received: from e124191.cambridge.arm.com (e124191.cambridge.arm.com [10.1.197.45]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 580D03F58B; Thu, 22 Aug 2024 08:13:21 -0700 (PDT) From: Joey Gouly To: linux-arm-kernel@lists.infradead.org Cc: nd@arm.com, akpm@linux-foundation.org, aneesh.kumar@kernel.org, aneesh.kumar@linux.ibm.com, anshuman.khandual@arm.com, bp@alien8.de, broonie@kernel.org, catalin.marinas@arm.com, christophe.leroy@csgroup.eu, dave.hansen@linux.intel.com, hpa@zytor.com, joey.gouly@arm.com, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, maz@kernel.org, mingo@redhat.com, mpe@ellerman.id.au, naveen.n.rao@linux.ibm.com, npiggin@gmail.com, oliver.upton@linux.dev, shuah@kernel.org, skhan@linuxfoundation.org, szabolcs.nagy@arm.com, tglx@linutronix.de, will@kernel.org, x86@kernel.org, kvmarm@lists.linux.dev, linux-kselftest@vger.kernel.org Subject: [PATCH v5 28/30] kselftest/arm64: parse POE_MAGIC in a signal frame Date: Thu, 22 Aug 2024 16:11:11 +0100 Message-Id: <20240822151113.1479789-29-joey.gouly@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240822151113.1479789-1-joey.gouly@arm.com> References: <20240822151113.1479789-1-joey.gouly@arm.com> MIME-Version: 1.0 X-Rspam-User: X-Stat-Signature: owrqf983qorpcnud9sn8jjncf6x7cb7i X-Rspamd-Queue-Id: 15F8D14002E X-Rspamd-Server: rspam11 X-HE-Tag: 1724339605-552413 X-HE-Meta: U2FsdGVkX19cgzdZD/PZC05LQwRK7qlX3stA/1ixet4MHHwf0J+U3DdytL7glYVnhta0ipPtuDTIM85U/6Ec8mRkfAIMpEIVawB0+y5/rp2dYTz35CB1q9iXZJtT5yuurYpKqGI9X97jZ9gN3hrggF1a4RmBOi3xzBUUHriQcdGy+KTuXZbQbMl2PmklPx3Zr0Crow7ACbUrDf5MmIQnw4RH2Q/ZMdnF57XJeSBPNAJRDrFJyIzdoK88O4bapQuw08z2vpAah7jQVKtdQyFAMae3EUHxwTmKJsOpAu9I57NtNsToZRUWsBlGjQYyEHtVljDjXasHEzAgO5bm9tGxTcbQqED108FmfWN0ZcbxrXdFcRRhHGeRLCp32hg4AMeGRjsysxK0pzTdtQweeKybU2WKV3pznaQOiS5b+PSG73X8TfKUGk5uDCHmzIHRjExao5D8GbwZs6lckRFuc6/Sz6wHkGfXGYCstF8L9GLFhY4Ka3JxvLNSsFcTzV37JE5We0xaQdMLjOY/cwgAJWFVomJFjgvw99b9Q/CJYpWQUufra8URxNFkXQmPkZ61iWblCX0XGZw2JaU5j1YARK3nupHb699NgkZINEroIeTDccnoaK0a6C8qir53aTzKs2R6+RR4csS0IWnr/akHTnP7FBeh9GfgtR4Ma2hRHd6OhrOgDFwCxrSqMY132GYaJWub50xD6evZyZd39u7p9xkT+QVCbgt5BR5MkedsP9lBxKQN/2Oik7Xb2lvhuGPyypUYxwhlhrR1Dxbfcz4eTO+p5GsVgKZC7bEoQzYWt+kvEI5/J0T7Dv8hEY4PY3b0fuEgc5B9fcaulJmHO+ngUz87ntQ/GynnjAlpTaSnt5sJdYRN5NHdyIDuqzwf4236KaoHoczNZfdXRyIphPsMR6+Os64Hu9GqTY3AwSlNJtwajRn6EldisFGfpwCrB5PIKL7Fib2d3zPvEVuuzc4Q6s1 HMp5rKkm nDlbPoJNUPU9xMABucconKAxBJduqNRutbH7omSF2B2EOgx8oCg7/Ii5Dh7Y92ddVO2fnVAdzJOnsR4I8ENtC3/3vHZcNzV3qT51J891hbZqeuy1R/uuwDIKzXegcMfYEKibf/f1xeRJJklOGdHQDchwMDWLfzbuHgeK0nwiOg2FJftSvtjHN0SFyh3h+EtgJiYGhK8JJ98Llq+qPo/VP49d9RSO/3BPMTWvx9gPhDY0rMAeJBTCMiWHFMMfTfljUb81cWUyysS0LGsk= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Teach the signal frame parsing about the new POE frame, avoids warning when it is generated. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Brown Cc: Shuah Khan Reviewed-by: Mark Brown --- tools/testing/selftests/arm64/signal/testcases/testcases.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git tools/testing/selftests/arm64/signal/testcases/testcases.c tools/testing/selftests/arm64/signal/testcases/testcases.c index e4331440fed0..e6daa94fcd2e 100644 --- tools/testing/selftests/arm64/signal/testcases/testcases.c +++ tools/testing/selftests/arm64/signal/testcases/testcases.c @@ -161,6 +161,10 @@ bool validate_reserved(ucontext_t *uc, size_t resv_sz, char **err) if (head->size != sizeof(struct esr_context)) *err = "Bad size for esr_context"; break; + case POE_MAGIC: + if (head->size != sizeof(struct poe_context)) + *err = "Bad size for poe_context"; + break; case TPIDR2_MAGIC: if (head->size != sizeof(struct tpidr2_context)) *err = "Bad size for tpidr2_context";