Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1068908pxx; Tue, 27 Oct 2020 07:34:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/ScX0Gf8zDFIeH8K8Hl58K1HmudrydsHZM+azid311AWs+nhMRfSgKUL5urC5d8fKlMuq X-Received: by 2002:a17:906:4816:: with SMTP id w22mr2854332ejq.458.1603809277869; Tue, 27 Oct 2020 07:34:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603809277; cv=none; d=google.com; s=arc-20160816; b=iOH06c1XhsVkWw06OksWVHeIsZLVlUGPugT//8M15mmjqNtykktZudn7sB6VGIBsge AD+b5tMz/QoOP7QW47oFom0bnUQ/2kz9t8Z/gj31jGlCrjhiYdL5YBC23gHWKbWD4Hrp oKYeqm4QenZ9tnf+QIK63bHN0fTjIT7UfPPhvPFmwy/5eTFzJUkzPV8bTeKA/5NCdfbV qhGduY65g6DrcsLa+bhEJgZRflefCcVX5x2WJHzTr1ZMvs82rZEmKqC6RyqBuiu8m4F1 9tteQvHR+/eHZKpJKtYGf9GmmO+IA8bqjPBjFdVCAZFjfPfvIngHhRpTIEYdaB/XLRrj jvIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=OOOlKWGECMFTdY3YDUpmxU5Vm3Cq+t0DsUZhngLeE9g=; b=wSB/c4jVMQtkfZCuwHVo0shXwOZMl/YaglE05rGsSAzCV86ZKa3unOtK4KHwWCHNUs KuR6sBESaUi0UC83bKS7zpn0MmZaKDZZO/dgMLdjsPYOipu5NrLgAnOphgs7AgG7l23Z 2W6GOi3fboMTOqTlnUMv/xMmctqt0fzOHFVRhiNO85YQ25RTWi23rxlLFr2z4mBPT68J 515owRN7mPgqkShLWx7iMvzYPVB9B0V9+UxLBtZL0Rou0efvP4K0WfAGT0Agy9Yo74WH AtgiGI8XGoDSDB3uLeMkPVyYpp7A6zvvkKBKncrc+nkzjO+Gp23qDfof/fSnhOYM2yfl /AgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h28si1505574edj.130.2020.10.27.07.34.14; Tue, 27 Oct 2020 07:34:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2898138AbgJ0Kal (ORCPT + 99 others); Tue, 27 Oct 2020 06:30:41 -0400 Received: from foss.arm.com ([217.140.110.172]:37652 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2898137AbgJ0K3j (ORCPT ); Tue, 27 Oct 2020 06:29:39 -0400 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 5C1A830E; Tue, 27 Oct 2020 03:29:38 -0700 (PDT) Received: from [10.57.11.195] (unknown [10.57.11.195]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6AC6E3F66E; Tue, 27 Oct 2020 03:29:35 -0700 (PDT) Subject: Re: [PATCH 3/6] kselftest/arm64: Fix check_child_memory test To: Vincenzo Frascino , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: Shuah Khan , Catalin Marinas , Will Deacon , Gabor Kertesz References: <20201026121248.2340-1-vincenzo.frascino@arm.com> <20201026121248.2340-4-vincenzo.frascino@arm.com> From: Amit Kachhap Message-ID: <415f8728-8379-2094-4186-de7cf338c1e3@arm.com> Date: Tue, 27 Oct 2020 15:59:32 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20201026121248.2340-4-vincenzo.frascino@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/26/20 5:42 PM, Vincenzo Frascino wrote: > The check_child_memory test reports the error below because the test > plan is not declared correctly: > > # Planned tests != run tests (0 != 12) > > Fix the test adding the correct test plan declaration. This change is required and got missed earlier. Acked by: Amit Daniel Kachhap > > Fixes: dfe537cf4718 ("kselftest/arm64: Check forked child mte memory accessibility") > Cc: Shuah Khan > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Gabor Kertesz > Cc: Amit Daniel Kachhap > Signed-off-by: Vincenzo Frascino > --- > tools/testing/selftests/arm64/mte/check_child_memory.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tools/testing/selftests/arm64/mte/check_child_memory.c b/tools/testing/selftests/arm64/mte/check_child_memory.c > index 97bebdecd29e..43bd94f853ba 100644 > --- a/tools/testing/selftests/arm64/mte/check_child_memory.c > +++ b/tools/testing/selftests/arm64/mte/check_child_memory.c > @@ -163,6 +163,9 @@ int main(int argc, char *argv[]) > mte_register_signal(SIGSEGV, mte_default_handler); > mte_register_signal(SIGBUS, mte_default_handler); > > + /* Set test plan */ > + ksft_set_plan(12); > + > evaluate_test(check_child_memory_mapping(USE_MMAP, MTE_SYNC_ERR, MAP_PRIVATE), > "Check child anonymous memory with private mapping, precise mode and mmap memory\n"); > evaluate_test(check_child_memory_mapping(USE_MMAP, MTE_SYNC_ERR, MAP_SHARED), >