Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5425972ybv; Mon, 17 Feb 2020 20:00:08 -0800 (PST) X-Google-Smtp-Source: APXvYqwDl+iaWhSZCLQYfz06L+V5XTg3VROy66VEYyJPhq9g2Pw9edTASx9tFEf37wEE6kCnJrX/ X-Received: by 2002:aca:4b46:: with SMTP id y67mr76316oia.122.1581998408474; Mon, 17 Feb 2020 20:00:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581998408; cv=none; d=google.com; s=arc-20160816; b=FXl96ckVY1YR1JwT5k4Eocpw9Ed4uG1Vr3cf//jRA8GrA0umW9t0QDra40M8iAu2bG xsopCphTbj4ck9OV5HGcf8d1CdVe+70wDz9aONVMJZvYMsjbD2fcGDa3klBMSEEYtD1P EYaCGtK/OGs4Qlbf5NH2XxdSKgKs948Jppfu3gGzTFynd4eQflZLc64iUGibpGVywogo oQNvpbJFwpuptfRnN/Ws0wuWDuSdCa1N3VElsp2YjoQ7pHxOt3ZAyPALUtNg1jZrYtIR M1ui1WWgIyeMRCSYdI192ZC0JQecOKgpQW7ePARn56gmBxgm4aEPpI0EslwNuGmhUFE5 zgwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=LYNOedp5wMrP0IW+gzyF6blmcFzT2PovuB4hmH3kGKQ=; b=kgPyhCv6vK+5l9vKGzyVTQkq5Qg4laPGmOANc4B8CzK9sUgUj+2WX9S5Vw8rZ2SUc6 5XBncpGrxYLH3NiH/OmUEBZSVSVsBR2vg3vTfoUwGKUdnuNPTUiuetg64CtnPHC63s1b faZDEbDQOCQYE0OYucxOv/1sVNZizcG/qHxTHt46mxFz0BnOpiEQU79OwCmM/6DVkRQq qf3xbGuouErSDF4MkMkUlKocAwCKGN5O0N8FBdFv1eXGrmJ8S0Jc4QAWDaevY1563opx aRrcCDvLYcYcyRobSJT4igsXJFl9Tq0VxgMAEXRRkThIt8al0IcucWSz8AVCSE2Hhjog lBXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V3PJiyBo; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s17si1197739otr.320.2020.02.17.19.59.53; Mon, 17 Feb 2020 20:00:08 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V3PJiyBo; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726289AbgBRD72 (ORCPT + 99 others); Mon, 17 Feb 2020 22:59:28 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:38951 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726257AbgBRD71 (ORCPT ); Mon, 17 Feb 2020 22:59:27 -0500 Received: by mail-lf1-f65.google.com with SMTP id t23so13405776lfk.6 for ; Mon, 17 Feb 2020 19:59:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LYNOedp5wMrP0IW+gzyF6blmcFzT2PovuB4hmH3kGKQ=; b=V3PJiyBoVL2i5p30BlAXTkxAxZqLFFWaZJilC7w3y7idiZXJubLT3KluMGNkOBuMF7 AUiAvgjsqm39dlayPng3hQ2uf8nC34jjcmhoxI9PDnEA9mNK4I70k6PIQAnya+3qZlkD wbcvyBvYnPOIaGrx7Oj8p+AVjcddTlZV9oazO2n/Lq9LQ0F0flonfVYpn2mmPm6HYILB i1+n+gvOvZt+MuPzRU2KtLy+qJVLLHMlmpjMe2cEw39dxhh4ucotU9OtST7/gErOWIk5 +fAOxw0m3RFFL7xiP4zN2qmsHQiJeOikfekvilXrdEUAd4wNAYhuuR8+NdaNGvoJTH9E /Aww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LYNOedp5wMrP0IW+gzyF6blmcFzT2PovuB4hmH3kGKQ=; b=T8xtfd9gXVNuY1N8Hj9hCuGOQQuTwy5j1UviVaCQGGC0LiS5433cgVi7bJUgiU3hh0 KsLq4pGldfX/lekk2RIQG+BokH/7cnClN2yxPjbEqh8xF5yNYxFK2PlQCnVN5dOEyEj+ UAqi8srq13VEVv/gT+rGznx9bhSU328OX/cs63bT5WKVCMQyYTQDm3B/nuIpq+cKw5nO tHgkKbks8TOrtq5qitmrM8V2MnLI0yipE5R5ykZYgyFW/5rs244Qhx9RsBNmTXY66rwQ nlKuQtrDXPs4Ut8vMzgS+BVYIrpMJpcy8Hn6ZGcGOu6RNQrDqcHt9vvl7fDOemQ7Xzjf GW3Q== X-Gm-Message-State: APjAAAWKNMEWMRtcIL6t5QqPtBj4Pje+7unItOEfiO627epCuINcWKNv 7yLnyBawDBW4917wJcVszUQXNNwPEcraBRmkke25cilrjtE= X-Received: by 2002:ac2:592e:: with SMTP id v14mr9554813lfi.73.1581998364215; Mon, 17 Feb 2020 19:59:24 -0800 (PST) MIME-Version: 1.0 References: <20190620022008.19172-1-peterx@redhat.com> In-Reply-To: <20190620022008.19172-1-peterx@redhat.com> From: Bobby Powers Date: Mon, 17 Feb 2020 19:59:12 -0800 Message-ID: Subject: Re: [PATCH v5 00/25] userfaultfd: write protection support To: Peter Xu Cc: linux-mm@kvack.org, Kernel development list , David Hildenbrand , Hugh Dickins , Maya Gokhale , Jerome Glisse , Pavel Emelyanov , Johannes Weiner , Martin Cracauer , Denis Plotnikov , Shaohua Li , Andrea Arcangeli , Mike Kravetz , Marty McFadden , Mike Rapoport , Mel Gorman , "Kirill A . Shutemov" , "Dr . David Alan Gilbert" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 19, 2019 at 7:20 PM Peter Xu wrote: > This series implements initial write protection support for > userfaultfd. Currently both shmem and hugetlbfs are not supported > yet, but only anonymous memory. This is the 4nd version of it. > > The latest code can also be found at: > > https://github.com/xzpeter/linux/tree/uffd-wp-merged Hi Peter - I ported the branch you had above on top of v5.4.20 (what I happened to be running locally), and fixed one issue that was causing crashes for me: https://github.com/bpowers/linux/commit/61086b5a0fa4aeb494e86d999926551a4323b84f I wrote a small test program here: https://github.com/plasma-umass/Mesh/blob/master/src/test/userfaultfd-kernel-copy.cc and write protection support for userfaultfd (with eventual shmem support) would be _hugely_ helpful for a userspace memory allocator I'm working on. Is there anything I can do to help get this considered for mainline? We have some time before the 5.7 merge window opens up. Tested-by: Bobby Powers