From patchwork Sun Sep 30 07:42:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Xu X-Patchwork-Id: 10621175 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 9E87814BD for ; Sun, 30 Sep 2018 07:43:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92F8E295D2 for ; Sun, 30 Sep 2018 07:43:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86AF7295DD; Sun, 30 Sep 2018 07:43:11 +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=unavailable 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 2F353295D2 for ; Sun, 30 Sep 2018 07:43:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B58BC8E0002; Sun, 30 Sep 2018 03:43:09 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id B08BF8E0001; Sun, 30 Sep 2018 03:43:09 -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 A20668E0002; Sun, 30 Sep 2018 03:43:09 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by kanga.kvack.org (Postfix) with ESMTP id 7F7698E0001 for ; Sun, 30 Sep 2018 03:43:09 -0400 (EDT) Received: by mail-qk1-f198.google.com with SMTP id g26-v6so11032360qkm.20 for ; Sun, 30 Sep 2018 00:43:09 -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=H4Rv0CrIFzPIDmmk4zmscBTZTMIrrMWBEXRlyDlCTfg=; b=uO7ND7yiNnx7GxBbGRSsXFhfLW5yym3MNZjOyxVgYoNqhw0X5XfUt73hVeGwKC5lgM TOkZ2nsCNPEHoU9qX59/VEmohZHp+OrUmCayOM4fl4P6IkAw/DNmvDaCJn++fedmDbyc yx23LVJn5wAWN1W7IucnB/kZ/UGWJD7/lFSVyhQkjIubias7zIEcqPtJRPTCRpMDQB2N uARhr5IEkJVw1du9JdMkKfC64JJWtqi4FjeFi9NXuBjf6S0NBpd7RPr56THuMBFWwadw gesMWLP33NNhzTP2tbSYpcTCisHoAAX6R9gt14Bno4tDFWsb7RpWWqNaP8a1h4ZmlM4L 3Tdw== 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: ABuFfojh9+brTtexHLVnYcI644LM4KpKPj7OXV+bnqU+c5nP3RPgP9CX Id1eOzpU0lgUDsw5UcoQ2XDHZKPSP4UrfW6fJonuFqZYSkTzvG7vK3G1XFUy7PbWd61lQhG9V5p QylASpu5HnVhvlCd1Y4KSOomBidWUHbFRn+sGwJBXFmaxZ+j+GeZjvy/g5X4d0m+Iyw== X-Received: by 2002:ae9:c01a:: with SMTP id u26-v6mr3452517qkk.328.1538293389276; Sun, 30 Sep 2018 00:43:09 -0700 (PDT) X-Google-Smtp-Source: ACcGV61PSYGzaeccX0rgxQGKDkQqntKfLd1dOGI8d1qrDtzVD8/zfqD5z0qmw6yEvt6CyT1JVbY6 X-Received: by 2002:ae9:c01a:: with SMTP id u26-v6mr3452505qkk.328.1538293388625; Sun, 30 Sep 2018 00:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538293388; cv=none; d=google.com; s=arc-20160816; b=CE7qwLEiahZtVEaYXws2UCQAUAFkSTHYKC1aOIYGQ5pSMEKDFwaJ6y21GngULB3q6q EiLBztEs50gwiYnnQVf4GEFYny1EOuQrbZZ/By3mU/4chIaiYIFb02MXH4cQ1wK4rTnK 0hyTC2p2RqPOnacPe2uk4i/dNGFIMvASFho0cWaxTJDF4zT89iwUvcLNM36EkFC2vLxU Ex54VQXQyV88Ai1i8LRijvZf7uTf950LhhOYi+YhVEiKYVHIMDC5l8e6kIET0uyw1gO7 NNansm25Rm6GzXR5pkD+T6inD92QEteyJ7Nn5UBKzYMZ7e/WP/eGEOPa0vdzob5UXhvo 1E9Q== 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=H4Rv0CrIFzPIDmmk4zmscBTZTMIrrMWBEXRlyDlCTfg=; b=XKQY7j4IJ4Hu78iJrZ+U78sIqOv8J/oKLg8fsnkFvtoAUjDT5O42oyXwiHUSbovmCq CYbbUR4xED0TxMyns2FPOJj6XZlxpu/J/7OUWDsCI/KjkHV/byW7SAagbgHrd0+BL7ma aex9GZA++1V7r/HROaRvtRmt68bCKwQLHbg80CJHBv7B9ixO2kMhgjRaafVgWFbhsGKb W+CJtVBVoA7PWsH0MNmGv79XrPjKU9DlKkEa7CtHXWGqSbXJwXAPFwCKaS3Ai/tvznZ4 /uJyqM2PPZw/XKfUXB5H5oiFafakmHiQYPf8uP/Sr9Ghlst4gzVGUXvBN45GghMjTagx qNVw== 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 s44-v6si223420qtk.382.2018.09.30.00.43.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Sep 2018 00:43:08 -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-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 319FF3082129; Sun, 30 Sep 2018 07:43:07 +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 8F47B60164; Sun, 30 Sep 2018 07:43:00 +0000 (UTC) From: Peter Xu To: linux-kernel@vger.kernel.org Cc: Shuah Khan , Mike Kravetz , Mike Rapoport , Jerome Glisse , 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 v2 0/3] userfaultfd: selftests: cleanups and trivial fixes Date: Sun, 30 Sep 2018 15:42:56 +0800 Message-Id: <20180930074259.18229-1-peterx@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Sun, 30 Sep 2018 07:43:07 +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 v2: - add a-bs - add examples for non-anon tests [Mike] - use brackets properly for nested ifs [Mike] 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 | 134 +++++++++++++---------- 1 file changed, 77 insertions(+), 57 deletions(-)