Message ID | 20210412232753.1012412-2-peterx@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=I+Qj=JJ=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 X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5DC6C433B4 for <linux-mm@archiver.kernel.org>; Mon, 12 Apr 2021 23:28:03 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 38F02613B8 for <linux-mm@archiver.kernel.org>; Mon, 12 Apr 2021 23:28:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 38F02613B8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id B875C6B006E; Mon, 12 Apr 2021 19:28:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B5E7D6B0070; Mon, 12 Apr 2021 19:28:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9FF4D6B0071; Mon, 12 Apr 2021 19:28:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0123.hostedemail.com [216.40.44.123]) by kanga.kvack.org (Postfix) with ESMTP id 85D316B006E for <linux-mm@kvack.org>; Mon, 12 Apr 2021 19:28:02 -0400 (EDT) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 3CB8C180ACF62 for <linux-mm@kvack.org>; Mon, 12 Apr 2021 23:28:02 +0000 (UTC) X-FDA: 78025305204.01.8C0B4DB Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by imf14.hostedemail.com (Postfix) with ESMTP id 7B9F3C0001EE for <linux-mm@kvack.org>; Mon, 12 Apr 2021 23:27:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618270081; 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=8RGMu5U4C672ZFkUHV1HUutAzRw00/5hGpU2qjqaw+g=; b=RnfobR7dF/kZPzLjBlK7FyNB3bQh2To8uhkGemyVWsm3DbNrpBtnD00X3m4CNvcwTfB742 EYzC7/4eIIxPtsjWjCJ1ALzu426re60LGLzU1fcjODfMuL1jF7hkBIY7SdbGSwD+Aw1kHK 8bTXyY41avSFrpfBfJaqqPILqa9sJDo= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-560-4k-LwnxsMI2LvX3CRQOZuw-1; Mon, 12 Apr 2021 19:27:57 -0400 X-MC-Unique: 4k-LwnxsMI2LvX3CRQOZuw-1 Received: by mail-qk1-f200.google.com with SMTP id u5so10003445qkj.10 for <linux-mm@kvack.org>; Mon, 12 Apr 2021 16:27:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8RGMu5U4C672ZFkUHV1HUutAzRw00/5hGpU2qjqaw+g=; b=Xb7SdBRKxs8OUb8dRJ7HEkWQxOctyxkCRKiaFLBcxSTS4OCkJf5g/FrigP2NFZmTrl jhxgM+9V6+4NFWslEUHoFMUS+h54/PNh+as8tue2DCKSxzvic2t8EEWyCllILNZl+I7a 5oVYdXPrXR3rI0JPEv+WzwYVJCuP0hlqwATQgqkz/9KlYxPgLJP2sXA6vkx3xwteMemA mgWo5G73mpXJFOdqIzs+3LkbfQP42+uR1DLZNsu/Qa7z3juruPyqULTRtpcWcjDBd9yA BONByJFYHj8OZC7wmspO6EkZa8OgOdbZBqffdLLG1rxPx1CDojsTY114fBRy3qV//0py 8cJQ== X-Gm-Message-State: AOAM531QkFwFJ7tFTO0KinPb1LsBeuOcOiZs/w1VHEbXJra+CgWeSHk6 PKib18QpbfUiZobgXDvdVJDFkRJaCxZ4XzPZqEKh2Z6zY7yeUKLn7e76y+KXwc7KF4Pc1urU5aU QZXUk2DuvPMFjp5g/SbY576SyYSrZQ6dEZ47dT3LB1AwPxWcqX6tdUDFFLNRb X-Received: by 2002:ac8:6d09:: with SMTP id o9mr3892039qtt.382.1618270076882; Mon, 12 Apr 2021 16:27:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxn5W/tQj+R3pMmXzP0Ur8Z8NUkCG0N6aVa54TjdIDXDmk9C1P06JrNCv3t9AkIZY1b6K3Tow== X-Received: by 2002:ac8:6d09:: with SMTP id o9mr3892019qtt.382.1618270076645; Mon, 12 Apr 2021 16:27:56 -0700 (PDT) Received: from xz-x1.redhat.com (bras-base-toroon474qw-grc-88-174-93-75-154.dsl.bell.ca. [174.93.75.154]) by smtp.gmail.com with ESMTPSA id y29sm8958925qtm.13.2021.04.12.16.27.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Apr 2021 16:27:56 -0700 (PDT) From: Peter Xu <peterx@redhat.com> To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Andrea Arcangeli <aarcange@redhat.com>, peterx@redhat.com, Andrew Morton <akpm@linux-foundation.org>, Mike Rapoport <rppt@linux.vnet.ibm.com>, Axel Rasmussen <axelrasmussen@google.com> Subject: [PATCH v2 1/5] userfaultfd/selftests: Use user mode only Date: Mon, 12 Apr 2021 19:27:49 -0400 Message-Id: <20210412232753.1012412-2-peterx@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210412232753.1012412-1-peterx@redhat.com> References: <20210412232753.1012412-1-peterx@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=peterx@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="US-ASCII" X-Rspamd-Queue-Id: 7B9F3C0001EE X-Stat-Signature: szpo3ddbaxz5muajwp3br6h6auyqdx4i X-Rspamd-Server: rspam02 Received-SPF: none (redhat.com>: No applicable sender policy available) receiver=imf14; identity=mailfrom; envelope-from="<peterx@redhat.com>"; helo=us-smtp-delivery-124.mimecast.com; client-ip=63.128.21.124 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1618270074-678823 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/selftests: A few cleanups
|
expand
|
diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c index f5ab5e0312e7..ce23db8eec26 100644 --- a/tools/testing/selftests/vm/userfaultfd.c +++ b/tools/testing/selftests/vm/userfaultfd.c @@ -831,7 +831,7 @@ static int userfaultfd_open_ext(uint64_t *features) { struct uffdio_api uffdio_api; - uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK); + uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK | UFFD_USER_MODE_ONLY); if (uffd < 0) { fprintf(stderr, "userfaultfd syscall not available in this kernel\n");