Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2614998imm; Sun, 30 Sep 2018 00:43:28 -0700 (PDT) X-Google-Smtp-Source: ACcGV634ZVNBgaWY5QqvX7cB0HiQTRQHq1p8fhqfxqu0p47Fr3SF1UK+CK5toTbfaD0xf6HbVNtE X-Received: by 2002:a63:1b0b:: with SMTP id b11-v6mr5504251pgb.66.1538293408363; Sun, 30 Sep 2018 00:43:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538293408; cv=none; d=google.com; s=arc-20160816; b=lmCLiIunwGZQgzrk1q+9Iwez68gDbvvvJ8yPJXmCisrNzIBLRWOhiD3ByDL7pAqgHv mx1vgUaDcTTqaQ1pUBDa9HM0QcHC8KTebrxmXv3WGU1qNQAw7g2dKrsuPc2ORcH21DOL 8UU9Z4EHGceN4GnrWfXh00LWRz+m4xTXVjv0CZNYC2wn9r++FomzwSvMQQdEHzBa6YMW 34fDAHFL9zzZCuIskWDkRUaD1ga1/AB9JwUSKD8crfhTnoZNSV3Rd/Ap5Ge8LJpC8OnW dfBdIjl5zfI8S2n4jo2MeUCpru1LoAnhLkiZYajtRqphkwZbcbDQlXI1vRv1kAdqOvDj q0ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=H4Rv0CrIFzPIDmmk4zmscBTZTMIrrMWBEXRlyDlCTfg=; b=wW5ZZCEURFvDik/D309jR2nGvHy9lH4LTS2o8kkV5vtFJez2Rufiof3iLRnOxYUJM0 N52Qiv/pAsCk4ibhy7QfCKRIriMKNprndmQKBA5s75ojBh0CL82/ddVqQDKtixkv3wIV tyjwVLjy2ADeWzdWF6YQMVZ3vDxxtCL8+zwlrCeL6+RiP2oHlRBISGVjogdw/JEfrlm0 jSNxEGWGrjqfl6Pk6ti4NTpSu9Nr/rsIXQIomMWWwzMezJpYWGQIRejH/+QPzflXrljY kITSJ1i9Iw1Es8g0+AV6M4Cf+c2k6fXRnfNGMNXi5/CvAlkYWzaUS8FQAJQ59JZyoLJv iDRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6-v6si10528912plm.393.2018.09.30.00.43.11; Sun, 30 Sep 2018 00:43:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727852AbeI3OPB (ORCPT + 99 others); Sun, 30 Sep 2018 10:15:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35398 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727651AbeI3OPB (ORCPT ); Sun, 30 Sep 2018 10:15:01 -0400 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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.17.1