Message ID | 20211115080406.75377-1-peterx@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=Pe7y=QC=kvack.org=owner-linux-mm@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7489EC433EF for <linux-mm@archiver.kernel.org>; Mon, 15 Nov 2021 08:04:24 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 1D6F561B97 for <linux-mm@archiver.kernel.org>; Mon, 15 Nov 2021 08:04:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1D6F561B97 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id B18776B0093; Mon, 15 Nov 2021 03:04:23 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id AA2536B009A; Mon, 15 Nov 2021 03:04:23 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 91D006B009B; Mon, 15 Nov 2021 03:04:23 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0025.hostedemail.com [216.40.44.25]) by kanga.kvack.org (Postfix) with ESMTP id 7AD676B0093 for <linux-mm@kvack.org>; Mon, 15 Nov 2021 03:04:23 -0500 (EST) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 3DBEC18036FE2 for <linux-mm@kvack.org>; Mon, 15 Nov 2021 08:04:23 +0000 (UTC) X-FDA: 78810427206.28.C86E95A Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf26.hostedemail.com (Postfix) with ESMTP id 9161020019F0 for <linux-mm@kvack.org>; Mon, 15 Nov 2021 08:04:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1636963462; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4fjb0FATaPAZrC5jaWcL/YcRV73dv6wRjJXclwNYe0A=; b=E+aO84nZu1cvvZALGyoNM/TvOHk6koSzD80XtIbeAa06aaULQX9N5JsbKUhA7PmlH9oL4u v6hLtz6LO2kJuFGvaUsqcq02WCk13yY6tLHDDB6m/Z0vuEZKnlAxOxIAG6OvDUysikyB5T slPKc02FENzt/zDeNCigMqjIy8TYkCw= Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-133-gpUBE64tNCqMFteDK99UcQ-1; Mon, 15 Nov 2021 03:04:21 -0500 X-MC-Unique: gpUBE64tNCqMFteDK99UcQ-1 Received: by mail-pl1-f197.google.com with SMTP id e4-20020a170902b78400b00143c2e300ddso523753pls.17 for <linux-mm@kvack.org>; Mon, 15 Nov 2021 00:04:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4fjb0FATaPAZrC5jaWcL/YcRV73dv6wRjJXclwNYe0A=; b=pB3Pyihn7SwwerIj0VUFR5xyXkOeCQt6Gs6HtmqTiq5b087tmkqZlb4c+J2wFp+Xfk lIaasPU1R/KyLApxGJZe9jLcr24VsU5FE8FApPTklmXp35GoIOFShJF8ZjTFioGOSo9B ho5TFKQOU1v5p8FtSEXrUvvwMzSlD3bLoKijA3OEV+6G71o66JBv4ZqfN+Vmsga4c3XI VEiYlvZa1icStEHq28fXEH24tobWdRDMxfxMj3/67vkpKuOJ7slGSxo65sUjj7XZxx0o d/3O6JJD7Jlw6+DfBSwRSQqSLQmaKY9Koo0Ls1tCOMG6DEu0WD8g1/Hf1M9ldKZa9cpg GO0w== X-Gm-Message-State: AOAM532lEgTWwjH6Ly4V7P1N7VM21UHQx9RMV5QoAOI5Vda9QCbAaCG0 iDOwIT5twnn866tDAIp0tG13o9JIymV7Q0ch7EBp9XOtE1nk9WMCxA2bLf4C0T4EaHeO2dpG4PR sE4XkqeLwGe0rN304oPpBlbtAOcgZAto1szud3Cv38PC8yGpbgU7DDeuVlKnj X-Received: by 2002:a05:6a00:1ad0:b0:49f:d04e:78da with SMTP id f16-20020a056a001ad000b0049fd04e78damr32260451pfv.77.1636963460012; Mon, 15 Nov 2021 00:04:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYov+lN99bqz8/ojCZuJTialWNO5qsxTAc2MyPy6CwRqTAK/GxA7hVywDwqPIq9fwS60hHOg== X-Received: by 2002:a05:6a00:1ad0:b0:49f:d04e:78da with SMTP id f16-20020a056a001ad000b0049fd04e78damr32260406pfv.77.1636963459693; Mon, 15 Nov 2021 00:04:19 -0800 (PST) Received: from localhost.localdomain ([94.177.118.89]) by smtp.gmail.com with ESMTPSA id d24sm13594745pfn.62.2021.11.15.00.04.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Nov 2021 00:04:19 -0800 (PST) From: Peter Xu <peterx@redhat.com> To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Nadav Amit <nadav.amit@gmail.com>, peterx@redhat.com, Alistair Popple <apopple@nvidia.com>, Andrew Morton <akpm@linux-foundation.org>, Mike Kravetz <mike.kravetz@oracle.com>, Mike Rapoport <rppt@linux.vnet.ibm.com>, Matthew Wilcox <willy@infradead.org>, Jerome Glisse <jglisse@redhat.com>, Axel Rasmussen <axelrasmussen@google.com>, "Kirill A . Shutemov" <kirill@shutemov.name>, David Hildenbrand <david@redhat.com>, Andrea Arcangeli <aarcange@redhat.com>, Hugh Dickins <hughd@google.com> Subject: [PATCH v6 23/23] selftests/uffd: Enable uffd-wp for shmem/hugetlbfs Date: Mon, 15 Nov 2021 16:04:06 +0800 Message-Id: <20211115080406.75377-1-peterx@redhat.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211115075522.73795-1-peterx@redhat.com> References: <20211115075522.73795-1-peterx@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="US-ASCII" X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 9161020019F0 X-Stat-Signature: bueyet8o3996dy3adpktxnradqkhgrdw Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=E+aO84nZ; spf=none (imf26.hostedemail.com: domain of peterx@redhat.com has no SPF policy when checking 170.10.129.124) smtp.mailfrom=peterx@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-HE-Tag: 1636963463-295596 Content-Transfer-Encoding: quoted-printable 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: <linux-mm.kvack.org> |
Series |
userfaultfd-wp: Support shmem and hugetlbfs
|
expand
|
diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c index 64845be3971d..232cc6083039 100644 --- a/tools/testing/selftests/vm/userfaultfd.c +++ b/tools/testing/selftests/vm/userfaultfd.c @@ -81,7 +81,7 @@ static int test_type; static volatile bool test_uffdio_copy_eexist = true; static volatile bool test_uffdio_zeropage_eexist = true; /* Whether to test uffd write-protection */ -static bool test_uffdio_wp = false; +static bool test_uffdio_wp = true; /* Whether to test uffd minor faults */ static bool test_uffdio_minor = false; @@ -1588,8 +1588,6 @@ static void set_test_type(const char *type) if (!strcmp(type, "anon")) { test_type = TEST_ANON; uffd_test_ops = &anon_uffd_test_ops; - /* Only enable write-protect test for anonymous test */ - test_uffdio_wp = true; } else if (!strcmp(type, "hugetlb")) { test_type = TEST_HUGETLB; uffd_test_ops = &hugetlb_uffd_test_ops;
After we added support for shmem and hugetlbfs, we can turn uffd-wp test on always now. Signed-off-by: Peter Xu <peterx@redhat.com> --- tools/testing/selftests/vm/userfaultfd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)