From patchwork Mon Sep 23 05:38:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muhammad Usama Anjum X-Patchwork-Id: 13809290 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 78975CF9C6F for ; Mon, 23 Sep 2024 05:39:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9D90B6B0085; Mon, 23 Sep 2024 01:39:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 960C26B0088; Mon, 23 Sep 2024 01:39:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7DB196B0089; Mon, 23 Sep 2024 01:39:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 5F44D6B0085 for ; Mon, 23 Sep 2024 01:39:01 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 15281121069 for ; Mon, 23 Sep 2024 05:39:01 +0000 (UTC) X-FDA: 82594899282.30.D28D8E9 Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) by imf06.hostedemail.com (Postfix) with ESMTP id 34526180006 for ; Mon, 23 Sep 2024 05:38:59 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=collabora.com header.s=zohomail header.b=H1cBJTb7; spf=pass (imf06.hostedemail.com: domain of usama.anjum@collabora.com designates 136.143.188.112 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=pass (policy=none) header.from=collabora.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727069905; 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:references:dkim-signature; bh=PmmGSXySg6IlnsTDXpl7Bn2vkcG7CZ7INIi8sf8r2Gc=; b=yWNXFBT+UX16AxUPsTcc5EsQAww/WES5lZQ97k0uQ2ZdKQy4z/+wQte4mKnglgbmywZVer qlsHx7pCyJv5vuPjtZ3KynILLqAxF+rocyJL+S9HdK976lgfTdTfCngJjuxTo6o5snx/8R LlVJTk15PznnajJYctBToIoGT9Dwvac= ARC-Authentication-Results: i=2; imf06.hostedemail.com; dkim=pass header.d=collabora.com header.s=zohomail header.b=H1cBJTb7; spf=pass (imf06.hostedemail.com: domain of usama.anjum@collabora.com designates 136.143.188.112 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=pass (policy=none) header.from=collabora.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1727069905; a=rsa-sha256; cv=pass; b=X9VnRnqZdgE/yFSU9Q1lNhrfuFHjLwirZ71ChSiSEWIIiMVzmPqbv/ZP9em3FN8cBE/mIZ KRRW1qR5v5qUuF9UxP6ZQGQvz1dkg1705kOPcxxlWAiLnt85dcTa6g6N93X4how7POhnz4 bxDgwOIVHQCduQqQ7XWDJi6iS0yhlfg= ARC-Seal: i=1; a=rsa-sha256; t=1727069929; cv=none; d=zohomail.com; s=zohoarc; b=Z/8Bb/arnKe09EnTuqR2Yvj/va37Jm96E7h5HfhDvnFHWLeWUX3aEyA3bmv7XuAtmu+yTAUvBdbHBEk4bKirUgFA2ppPieA7wNn51MiyZ6W7w/gBHfsGoKV6OLBDVVOYvUYrjDdsHODik6gkcE5jxyp8Bsgv9drL+AZS3qw0s7Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1727069929; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=PmmGSXySg6IlnsTDXpl7Bn2vkcG7CZ7INIi8sf8r2Gc=; b=KLqIQfOyyngHtcEMhpmhYAJJ1fE+MY7LL3HVJFgtEcjH1n1FGOcIRtN2J9LJtj1PeLVWmJf/4gRrCytNrlguJYhpcn3mp7N+qiZh4k6YzznjYQEOGWJoL2dqia+QpEXeZOe0ioe+IVGA7rFRV31B7tov560HfTi3PaYrvXEeukM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=usama.anjum@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1727069929; s=zohomail; d=collabora.com; i=usama.anjum@collabora.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=PmmGSXySg6IlnsTDXpl7Bn2vkcG7CZ7INIi8sf8r2Gc=; b=H1cBJTb7AKHnE3gCNfJHz2jCquRTwqs2VdCWE+0d1tVoP7h7X7t+r4/BwlirNSyY 1jEXzCmMGz0JujOQsPFHLcKljj8bBccKaCcb6kqBn8yGk13+vfThbIvCiiGZb889Qax oc5lPe+sspNpd2RjZFsHcw6HssV5IE9n+phvD4ds= Received: by mx.zohomail.com with SMTPS id 1727069928216470.38431144075696; Sun, 22 Sep 2024 22:38:48 -0700 (PDT) From: Muhammad Usama Anjum To: Andrew Morton , Shuah Khan , David Hildenbrand , John Hubbard Cc: Muhammad Usama Anjum , kernel@collabora.com, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] kselftests: mm: Fix wrong __NR_userfaultfd value Date: Mon, 23 Sep 2024 10:38:36 +0500 Message-Id: <20240923053836.3270393-1-usama.anjum@collabora.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-ZohoMailClient: External X-Rspam-User: X-Stat-Signature: nudamgs1ewwa9naoncw6ruf3sgupgmii X-Rspamd-Queue-Id: 34526180006 X-Rspamd-Server: rspam11 X-HE-Tag: 1727069938-861912 X-HE-Meta: U2FsdGVkX1+MfaMgQ3UkpyK5HqblkJ6Mx2p/sR2oL6Fao6HN+Q50dbu/xXVI3KqyuKYRZe2yZCPI3+ob5N2JxZpxDzlfQhY+L82ZYbDqKvDgZS1JI9Vzlj6QhMKPDukFiH71kstZ8rH20QZumij8x4QxggrtCoz9DAWeWE9WzInCrdJ4o7Nfa0msKPZzQ96E9XWN8OW6vcHI1ntY/YVAFd1+yAnRDs73/rkBh4Ml0zVFtAliiFEBNxHYEOEdY+XkVcCCO0rFQEtKfx2+dT12Y4+RH8NHsYFNdBOn1DCA2ApM1vFbDUiw7L1nB2ErTV+uennOQlQHASzf4tVczGuWFZrlxklAFu9eC2znqdZA9aMJ+bdMs2C9dj4juys3AEK12ygywlXnoU60BrC4DWybwcgepJpOLCCUoiAnqZzG98uxfFPc47cVzXsqye0JU43XKafa5r3cXwk0y7qt0GcO8Yy3YQmHJv01XQL9t9Qmsm5MMpHKtVp2RvYkt92grK17VcGZ8ibHZIXG/YUQhdw9D8pntsW3qQhzyH9lWheMZlGyMcF9i3vgJVRWMZzvOwq2Mk3xKOWtbE1pz8cC4ORH0AqLkTf6KfzGqKzZobU84WcsGwa7wp1LrqpainkgKm5s6C6ogtjefdhn8WPpxFbhq66ibEpdfxuV42BauVC8cYBxbmZm5G2EHrttUn3r63Sl5i/XjT1g9WKDt0LPznruiVSW6qg3F21HLCbIaKlZgOr7d2u3exHiy2W+i77iYDGNSlXlQl9AdvvY71k81E08fw+p3Ic0BmyPxRj55GiRM3gczd13cfKBBttpz3yfQfD8EfCQ1fv2/YWgziH7jgSa+fNYW5oaTWHVrWjFqIkh9mI8bU54HuQNlbNgjHavJzSjWH6CWahTzCMrXhRTtD52473C4BUzFIetd4EA2DqLhRiZ7UBtXLuoWr4D9jsb4L1m/70izDLZCA6BkFj/lFd aTZaXhrO dEhDkWUL1EVpz0m+a8r1gSdroJXdEBIU9u/eteeRJqOA7gXbJbFIrQzFVL51UvgSBdN82QHfjKufA8hit1sP3H++HYql5V5Wt/s6V8oFs8VXCFIucoNofN29iHoXvBgKcg+Dl0v0YwumiY2RJv1p12JqMU6rVzU5HKaKJccOUVgJ94iLLxudD8N/8xP+jVVhV7k7m0Bdr7fU6hvNjLnUpFzTkIijkf6NrO3p6dbbjp4xGTqoKLBwoS7g5YcpIOv4ZqodkYiz1srWuVejei0IqRDGwVeRtUSvt1yBITFfE0WmeD0yxcqI1Fm9iWZkXcEjC57j8M1V49U6O9RfK3EBEC7yA75gHlpuxJE6tLRTr7y7c6cVRgkgiVyKbr9RH5HOuGyx9cXFqTivCie5APR0IHfvSCQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000042, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: grep -rnIF "#define __NR_userfaultfd" tools/include/uapi/asm-generic/unistd.h:681:#define __NR_userfaultfd 282 arch/x86/include/generated/uapi/asm/unistd_32.h:374:#define __NR_userfaultfd 374 arch/x86/include/generated/uapi/asm/unistd_64.h:327:#define __NR_userfaultfd 323 arch/x86/include/generated/uapi/asm/unistd_x32.h:282:#define __NR_userfaultfd (__X32_SYSCALL_BIT + 323) arch/arm/include/generated/uapi/asm/unistd-eabi.h:347:#define __NR_userfaultfd (__NR_SYSCALL_BASE + 388) arch/arm/include/generated/uapi/asm/unistd-oabi.h:359:#define __NR_userfaultfd (__NR_SYSCALL_BASE + 388) include/uapi/asm-generic/unistd.h:681:#define __NR_userfaultfd 282 The number is dependent on the architecture. The above data shows that: x86 374 x86_64 323 The value of __NR_userfaultfd was changed to 282 when asm-generic/unistd.h was included. It makes the test to fail every time as the correct number of this syscall on x86_64 is 323. Fix the header to asm/unistd.h. Fixes: a5c6bc590094 ("selftests/mm: remove local __NR_* definitions") Signed-off-by: Muhammad Usama Anjum Reviewed-by: Shuah Khan Reviewed-by: David Hildenbrand --- tools/testing/selftests/mm/pagemap_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/mm/pagemap_ioctl.c b/tools/testing/selftests/mm/pagemap_ioctl.c index fc90af2a97b80..bcc73b4e805c6 100644 --- a/tools/testing/selftests/mm/pagemap_ioctl.c +++ b/tools/testing/selftests/mm/pagemap_ioctl.c @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include #include