Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1069495pxx; Tue, 27 Oct 2020 07:35:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpeeXdOa+gM0n50aGWKf+2iemDg10vjxTdASK097Kwv1GyXd50lxc0H+VL9+uMENTWMqSr X-Received: by 2002:a17:906:318f:: with SMTP id 15mr2635386ejy.180.1603809321991; Tue, 27 Oct 2020 07:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603809321; cv=none; d=google.com; s=arc-20160816; b=yx4Rl7OBRAOnILmc/7VUmFjALD9uzklbdLm5FmTA48flUY/QiqAIXd+GR48h8esMDX ZkMxC7QxPmTeAo/Sry6oBSRFQSQZHNRlHiXSHXt3zFAHVMQD+TPoTi1Rn7bX6jd9GfXd IRlJjaToc49BaNml1XJGDExxK9PfIETgCYYVLuE2WGPW/RHvHPFLb7qgzUxB/YCjxuuE xcyB5OElV2KPc3ssy+Kw2GRNg/yx2IarRv8L3GZJWIfYXQ6CE6rjjcsbYPA/GyA58xt+ 4ugGT8g2RyUmleytO8iPqud0mPoVv7c2SQPPAjeBwu2gmRKES5H9WJpTPQsOzBewNTdE YgWw== 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=H673vHbh3Ei9FTScz5oOl7HgbBQ5FEKCguYHuzrrEGA=; b=oM27fsU1OIuhsunApApt/guKEYclBdEy6vyoVfBL5ME1Jc/kFhHVEVZbfI+huyTxC4 h6FihidXyvD5VyfXY/5l2ci1MRCanAsG8gfJ8ef6z6UlZHqeh1EC/wPqlfbaoMYI+pkB R5fHHGOTLyAj+Wn8exKqggf++6W+t1DOPJOK3Nsh2Yru5vilRp5MZIUU0dtEZcvwGAjd kxUZGoDrWEprbzL4i565ZdPrWVEXfYM+xLTMO+phx1mn3+Hv480CjNWV5TJ8MO7RIt3u V+Di8KZfDgbKbyjpgcZmIlh/i2+iEQkH6SJqT0bM6QPvJwedEKRvmy3cXR8ntfzhpgKQ ZS7g== 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 n18si1021912edr.422.2020.10.27.07.35.00; Tue, 27 Oct 2020 07:35:21 -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 S2898458AbgJ0KgA (ORCPT + 99 others); Tue, 27 Oct 2020 06:36:00 -0400 Received: from foss.arm.com ([217.140.110.172]:37778 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436524AbgJ0Keh (ORCPT ); Tue, 27 Oct 2020 06:34:37 -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 71A5F30E; Tue, 27 Oct 2020 03:34:36 -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 762033F66E; Tue, 27 Oct 2020 03:34:33 -0700 (PDT) Subject: Re: [PATCH 6/6] kselftest/arm64: Fix check_user_mem 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-7-vincenzo.frascino@arm.com> From: Amit Kachhap Message-ID: <1fdc6fda-fdba-6640-eca0-194a56ab9326@arm.com> Date: Tue, 27 Oct 2020 16:04:30 +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-7-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_user_mem test reports the error below because the test > plan is not declared correctly: > > # Planned tests != run tests (0 != 4) > > Fix the test adding the correct test plan declaration. This change looks fine and got missed earlier. Acked by: Amit Daniel Kachhap > > Fixes: 4dafc08d0ba4 ("kselftest/arm64: Check mte tagged user address in kernel") > 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_user_mem.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tools/testing/selftests/arm64/mte/check_user_mem.c b/tools/testing/selftests/arm64/mte/check_user_mem.c > index 594e98e76880..4bfa80f2a8c3 100644 > --- a/tools/testing/selftests/arm64/mte/check_user_mem.c > +++ b/tools/testing/selftests/arm64/mte/check_user_mem.c > @@ -92,9 +92,13 @@ int main(int argc, char *argv[]) > err = mte_default_setup(); > if (err) > return err; > + > /* Register signal handlers */ > mte_register_signal(SIGSEGV, mte_default_handler); > > + /* Set test plan */ > + ksft_set_plan(4); > + > evaluate_test(check_usermem_access_fault(USE_MMAP, MTE_SYNC_ERR, MAP_PRIVATE), > "Check memory access from kernel in sync mode, private mapping and mmap memory\n"); > evaluate_test(check_usermem_access_fault(USE_MMAP, MTE_SYNC_ERR, MAP_SHARED), >