Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp184027pxx; Mon, 26 Oct 2020 06:23:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyN22LIlV8ww5ixLc53GrbSwUsRezDFMwY6H2AS58E/YmBp3i/MmRFoyeQzZ+ZtgfcI16OE X-Received: by 2002:a17:906:280a:: with SMTP id r10mr15451538ejc.58.1603718589776; Mon, 26 Oct 2020 06:23:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603718589; cv=none; d=google.com; s=arc-20160816; b=OFYhTukWF+fsjIsjbUdGnHBf8/JhPFPYJqm9OVhBNiJ6qMMfR/TSNqEoOkI/AvGqLs C81vVjmnmmiq8OKJa72L3V+JSqCbqkJSMj+ubNi5POXiM1oHJi9srxrjXDv+pGFE8d6S 25qPm/fxzg6xfmLdfbpC7GXB8iIjGXJZklYz0B0g2FEq5R0Cr4T6LTUswBIWeDDf0jSq HUjJh+MFFHpRAfZo1jY5K10RfX1coLrycvE7fQ0xNoltTAn05lyyYuz1P9h4am5OjmQD 3c69c2YApNgNmX6W4/43STWPjgFBtg57TlIzj5KOCnA+k8H/SAfR7NLOgKRA02lf5OOa nkHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/uvn7BjbKbRH8DokGQ7+Ehl5zzWPsymhZLwtIVYs6Tg=; b=E6WueUOuy7EHsWLyWcg9HwPiJCsC2pjxZMYGPjTQwwsS26qbVv88DuBTV3TUEfCoa2 90M0wRHWepSTikDK22GRHCyOT/Oqhia9Zg2EvtscKna7jLk3pQc6OFkUmKHGpW7PIYSX NFChfNSzunRGLfyTqqzrgKGME/UK4Tcj2So/nWFsy5DCeis7hPkHaXXVIHMg1wudQEGO YtxBReJa9HmBDCA1NyYpWg9Ev/sNKeX1UmIkgORremLO5GjhssnDNLYNJrIq6eE+qrz4 i9AeP8d8gyhbJRpRooNL7SuD+bLqs6b8JtEAw5g9aIpVZR4bmzehUU6lxej4GHvhct3m aAnw== 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 k3si6784743edn.457.2020.10.26.06.22.46; Mon, 26 Oct 2020 06:23:09 -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 S1774818AbgJZMN2 (ORCPT + 99 others); Mon, 26 Oct 2020 08:13:28 -0400 Received: from foss.arm.com ([217.140.110.172]:37160 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1774791AbgJZMNP (ORCPT ); Mon, 26 Oct 2020 08:13:15 -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 D5E7E14BF; Mon, 26 Oct 2020 05:13:14 -0700 (PDT) Received: from e119884-lin.cambridge.arm.com (e119884-lin.cambridge.arm.com [10.1.196.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A10123F719; Mon, 26 Oct 2020 05:13:13 -0700 (PDT) From: Vincenzo Frascino To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: Vincenzo Frascino , Shuah Khan , Catalin Marinas , Will Deacon , Gabor Kertesz , Amit Daniel Kachhap Subject: [PATCH 6/6] kselftest/arm64: Fix check_user_mem test Date: Mon, 26 Oct 2020 12:12:48 +0000 Message-Id: <20201026121248.2340-7-vincenzo.frascino@arm.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201026121248.2340-1-vincenzo.frascino@arm.com> References: <20201026121248.2340-1-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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), -- 2.28.0