From patchwork Sat Sep 29 08:43:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Xu X-Patchwork-Id: 10620675 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A89B61750 for ; Sat, 29 Sep 2018 08:43:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8DE4A29546 for ; Sat, 29 Sep 2018 08:43:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7EC0B29702; Sat, 29 Sep 2018 08:43:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F354C29546 for ; Sat, 29 Sep 2018 08:43:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A7EAC8E0002; Sat, 29 Sep 2018 04:43:21 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id A2CB18E0001; Sat, 29 Sep 2018 04:43:21 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 91C4F8E0002; Sat, 29 Sep 2018 04:43:21 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by kanga.kvack.org (Postfix) with ESMTP id 6B0CD8E0001 for ; Sat, 29 Sep 2018 04:43:21 -0400 (EDT) Received: by mail-qt1-f198.google.com with SMTP id b12-v6so7976558qtp.16 for ; Sat, 29 Sep 2018 01:43:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id; bh=Vztg9G6jBrDY2Jzdb21DJgPX+6aYixCpNCTMKH/oPkw=; b=nn5r1oGQ//rdhq2Xe334QDd87CY/GNWDC7z9s8w6aLe/lIZmijXkiNXcCwlsZq/tt5 pH9LQGBQso8nDyz2XoDjrL/h5/GDa18JTSTIxiyAbk3oYa5JmNFiJ3paTlSGSj1P4pUI qUhzqMjCf5jspq2+sd4XcMr1+117WGSPDBuzeJYN+AAhhjm2wFRFGL9Q6w2Df60iLB1X os4x9sV1wG/hOlICSrnRfjRs3YFlis5fRWRsfeYKP925YdaBqOy5M/ch1qTmpUio7euC KOBG2gFmyzYkLCaA49/34dRzXEbf60RU7GQxdlUU5GyJUYYIYKZ+C//qWpjUJAyikbkC Bnjg== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of peterx@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=peterx@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Gm-Message-State: ABuFfogTze+9UXSgrKnK8+FlNy4Qx8L3wgppRXsuAgW84YnB4AdQY6AZ 4lKeXPNOiV6n2R5mrOG4qatc2BjJyDUYYNVYOkw0FLHStEtdBhPrfmUR3ZtMhPRRVqxKu0kBIH0 mP3tiCt5vl3ntWUId0aBbqymCMEw0Qlz8v5dhbXQKDzRe0Ga4PUvQjWkH0vzfc5ZZUA== X-Received: by 2002:ac8:3097:: with SMTP id v23-v6mr1722832qta.335.1538210601175; Sat, 29 Sep 2018 01:43:21 -0700 (PDT) X-Google-Smtp-Source: ACcGV62NN9wVSkh+nytr5Z1n3ZpSsnGxMmOMBA86uW2vkzDkZiVvWkBN4ABlHb/GK94gueNDUeOM X-Received: by 2002:ac8:3097:: with SMTP id v23-v6mr1722820qta.335.1538210600720; Sat, 29 Sep 2018 01:43:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538210600; cv=none; d=google.com; s=arc-20160816; b=wpfJ2nb98lakXR29V1qGoRI3BeJqmMMlVTIpiHUKrKhwvczo4tKT7FVAumOfKYFOkM v48bwL6t52nb8kn+wZnNFaGwk+eIKFI5kVpCuRovL+X/DR7/9B46TfDfHVIAhEZKycvT iREp9ftSpsdje6xRbf2v3qoYEjyGnDykvkRw2Ub5i1CtPkU5wvim/TX2d4+9jcReYM8f IqOMmUvLEtqJ7cJKKvGFMtXNRb8c4mvi+OYpIJCjwM17dvrkUgvucpsAFbWYRmcZfpLU zPtTcxebvZSYe96Px9zzbp8t4mj+9EGajtjhTl0wkPy1y0xEenULxI1HDszMWIeiNEM6 LpEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from; bh=Vztg9G6jBrDY2Jzdb21DJgPX+6aYixCpNCTMKH/oPkw=; b=W5pnhnBtL5KCwOy9LfQ2iAPjGOr+xiGJmGKSs8r0lRyZVdg6sdueiqPl0y4YCSyxmr Rg9ubTDe4w9PsdFlyFWZpvqGw/mGTZq6a8aOqoBuVOIZc94nAonoYfbmP13F8UNeK9Da 8t+PypKaQPTxec61Qud0y5ZtXU+jQRnUNWEXHHuUd4ea5tfA/BJZapGwXVqTz+axr6nb h933gXOVDBHACq6P3Uk+ng5PG1fFnG6uZXwdo/d2X1R+h74YX9XXW9VYvkF1F4mSm1hX MUCwK0uGfwZGnVRLum3xffQg28zUO0QTr3SDYiERdR8XcmdO0mWryhUeMs0D8OGr7IEy ulBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of peterx@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=peterx@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id s1-v6si1075677qkc.287.2018.09.29.01.43.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Sep 2018 01:43:20 -0700 (PDT) Received-SPF: pass (google.com: domain of peterx@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of peterx@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=peterx@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A29B4307D849; Sat, 29 Sep 2018 08:43:19 +0000 (UTC) Received: from xz-x1.nay.redhat.com (dhcp-14-128.nay.redhat.com [10.66.14.128]) by smtp.corp.redhat.com (Postfix) with ESMTP id 38699106A790; Sat, 29 Sep 2018 08:43:12 +0000 (UTC) From: Peter Xu To: linux-kernel@vger.kernel.org Cc: Shuah Khan , Jerome Glisse , Mike Rapoport , Mike Kravetz , peterx@redhat.com, linux-mm@kvack.org, Zi Yan , "Kirill A . Shutemov" , linux-kselftest@vger.kernel.org, Shaohua Li , Andrea Arcangeli , "Dr . David Alan Gilbert" , Andrew Morton Subject: [PATCH 0/3] userfaultfd: selftests: cleanups and trivial fixes Date: Sat, 29 Sep 2018 16:43:08 +0800 Message-Id: <20180929084311.15600-1-peterx@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Sat, 29 Sep 2018 08:43:19 +0000 (UTC) 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: X-Virus-Scanned: ClamAV using ClamSMTP Recently I wrote some uffd write-protection test for the not-yet-published uffd-wp tree, and I picked these common patches out first for the selftest which even suite for master. Any feedback is welcomed. Please have a look, thanks. Peter Xu (3): userfaultfd: selftest: cleanup help messages userfaultfd: selftest: generalize read and poll userfaultfd: selftest: recycle lock threads first tools/testing/selftests/vm/userfaultfd.c | 131 +++++++++++++---------- 1 file changed, 74 insertions(+), 57 deletions(-)