Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp673066pxb; Thu, 30 Sep 2021 14:41:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqG7mjAw2bDjfIwIYP8Tw0E/tZh+yMGq0Jjp9hjT9jDX0meO2VL2bRkqYoIutyAJZsU8/T X-Received: by 2002:a17:906:f6cf:: with SMTP id jo15mr1900015ejb.244.1633038082317; Thu, 30 Sep 2021 14:41:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633038082; cv=none; d=google.com; s=arc-20160816; b=IT2Uj1++KbylxeMCKVq7TWHymCMNuWG43h6qabBntQx9bRmpCH/v4HxrI1fXhHqQo3 Jpy0vYpnzVn5buuijytWnoddflzCE8jrTiEdxbNPA458HkRs7vIFlWiuF/zNzmzejnpH Ukoxyoi7ioHo7qi9B9mJpT2s0fAMo/NQTKgLF+y6UbQT3iXbaxtun0LvhKXXsFWtXaOC n7ooY0+VSGH+83aLqJeefdHkoatn/cz5EEER19sUP1Q1xQmOOGgmJA4VmZQSAUenvFKH 0RbhkMaUbrUyx/5jm0RJbJpSF8kMZJsI/HKdtFLusoAsmfZ86Z/7i54tAuxXIzGdQO/T UbFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=CzR1tKPYxsGrhthMkcPeA5o22pdPd8tz6Qctx/cVYlY=; b=tvKKA8uLTPeHMdMaOhFteqsgkDVz11Kn8v6CGZu0Py1GAvRoFZa4shp2twDeZU4NwP u+M6vz2y7wuXTQmAY1bnreQP0Z0t+moE6gLNmXhqgyGX0v2gnqYKl4qLcHMM5LRAsC0f H5OgBzg4WrogGZ4Nuo3DrGcnXzR+aUkH6MasSq2ChL3/YwSvJNNziemVcvsOa6GQuufw gMrVBgCbmV/LNwiEtdfxXHJmRrrxFB56hvzSMv3sIipUDnyCzIewsKp2RA/V/cHK9bSD FXob42n2jRbF7GIV7uG5Kftw+7KytHl1Rv+oUhKUmppUqlxxzZ8Ssljin0dVYVEm18X8 rKhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=gWIUXo1G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 23si5199022ejg.184.2021.09.30.14.40.57; Thu, 30 Sep 2021 14:41:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=gWIUXo1G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229587AbhI3VZB (ORCPT + 99 others); Thu, 30 Sep 2021 17:25:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229701AbhI3VZA (ORCPT ); Thu, 30 Sep 2021 17:25:00 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DFF0C06176A for ; Thu, 30 Sep 2021 14:23:17 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id g2-20020a256b02000000b005b71ee6a855so1510756ybc.8 for ; Thu, 30 Sep 2021 14:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=CzR1tKPYxsGrhthMkcPeA5o22pdPd8tz6Qctx/cVYlY=; b=gWIUXo1GdYI/2/V6Rr0Wcg/w/YTCaQEWkjRdUxQleTXkOlKZoiyug35UB8njWqwc6N Sd8W8Xmk66GFnN6D6r5b5/zz+7i6TDEK1IY7LROn/GarYUXH7jOiR+N0kqZejScVN8v0 1JsSHVa99roHMJQY9Wvb7OaU+3AIjLtjCFm3HXKKfxI5ORI4dwR0wFjvQbMLfp6FGZkT zwND7qotqTvMzSTUuuzdeWJAGuRhO+D0r4kVe9v9lhsFIWcbTDJGT2m9WVaetBIN4xWe y2mMalw2He5t5A/H5Fyt6RQiRlieDHoKS2g3NmKS5NEgR++Q0WSFpGVmy/tg7vaI7DPq H8XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=CzR1tKPYxsGrhthMkcPeA5o22pdPd8tz6Qctx/cVYlY=; b=E8Dn8eFejgz+wjrgfCQItFK4pHeJVQNDM4qC14rrVAjthUoVBED7AJBoPBPh9ahj+L eMR6kjsx3Mm7HmXFBDn7jGfCjZcvAmrtYFA+oOTtANay8tobYwT90HvBqJBch2VKr2M1 5ie9JIzliuOucxYyybmtQjnuOe+09PXKVYg6JLly6mrGPMA6At+OhhAD8jUFRDLTU9S+ YULWuT54EH3uCnAODnSqgzMxI4RMMjfUUutbjmGA0hJ05jEWOq1jdLp/x3lKzUr1YSvR 8zpS980NjOc9xdZyS64iUTub2KjP7mLS4jtvdoXjn7L+sNcckK6fyJ4sA4JR+QpULZn2 8eqQ== X-Gm-Message-State: AOAM531wpjkuhIWUr55B7igRw7tctbFmz5uicJXFKr/BYm0sR8gu0M/g 3B8nJuCftoB8w879TOES9lZLJEZQY6cGUXJ8teno X-Received: from ajr0.svl.corp.google.com ([2620:15c:2cd:203:fa06:3b29:d3c:37e6]) (user=axelrasmussen job=sendgmr) by 2002:a25:90b:: with SMTP id 11mr1685537ybj.192.1633036996833; Thu, 30 Sep 2021 14:23:16 -0700 (PDT) Date: Thu, 30 Sep 2021 14:23:06 -0700 Message-Id: <20210930212309.4001967-1-axelrasmussen@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.33.0.800.g4c38ced690-goog Subject: [PATCH v2 0/3] Small userfaultfd selftest fixups From: Axel Rasmussen To: Andrew Morton , Peter Xu , Shuah Khan Cc: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Axel Rasmussen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes from v1 -> v2: - Substantially rewrote "fix feature support detection"; previously, it tried to do some larger refactor wherein the global test_uffdio_* variables were removed. This was controversial, so it now simply queries features in set_test_type, and leaves the rest of the program structure largely the same. - The "fix calculation of expected ioctls" patch is conceptually the same as v1, but changed slightly to fit with the modified feature support detection in v2. - Moved patch 3/3 to 1/3, since it is uncontroversial and could be merged on its own. I don't want the other two to cause merge conflicts for it in future versions. - Picked up a R-B. Axel Rasmussen (3): userfaultfd/selftests: don't rely on GNU extensions for random numbers userfaultfd/selftests: fix feature support detection userfaultfd/selftests: fix calculation of expected ioctls tools/testing/selftests/vm/userfaultfd.c | 157 +++++++++++------------ 1 file changed, 73 insertions(+), 84 deletions(-) -- 2.33.0.800.g4c38ced690-goog