Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1069398pxf; Thu, 8 Apr 2021 22:08:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2pNIzMAqp5+SUbwU6usPzhl8l+8LcG8EYETzlJzx4sOP02aImOaow0VA95zix5L4rwc0s X-Received: by 2002:a17:907:d10:: with SMTP id gn16mr14235747ejc.304.1617944890341; Thu, 08 Apr 2021 22:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617944890; cv=none; d=google.com; s=arc-20160816; b=lR2AjmVYI9BrEKA+UN219QfHwzKkTiyO8h4MpiGrRyyS9XhcN13PI+ZlkW3VpoP3tM 1LFGhIueKQ8fwSY62zmmXP0I2sERQaUYOL31vBFEw+DZrynStGNBTwruBB3pLefOksFC bv3i1vnCiP071SZxP0khkpK5RP2nh5mm0wZkteZNHhStIUD3+ZrvMLttfWUVNqPNGEoU 5v+jzAbqVqWbZAGuocSY7qXHz6DemCn12kKYVEkyajVwYWshce5j4F0o/hk4xJwkMa5N dmBZMSz0VLFWtc9x5+LbCDis1+C7FL8JCi/cnYgvrvpEh3budQ94kBsfNTTFAfv8Xe2u ENWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=92/fxRCOyCgdWZG4WlfN7wC1h4ehqP5qAEgSmLHnpXE=; b=cwVsYeV+Sdi7UjwGF3ORXF+QkDrrhuwFn+BmFufmg998DjpJl3dMofSJ98KnSts7oj XQ/KrG5lM4NzA9xOxkKxNmioo1QohUW8QD2/l8ut94UrzecagvErH+fOSNMAeKlnYu1g F2u+KU5Pn7mjA74m9j/4LK8HYUnyVnDzbnHdrQNwKcUMa/2ZsoUUAuz21Z1tSIXEcUSk X2C1SsBTThhZ30dgqJ1CZ8UIxJT+gIGSjZgqYwMaurNFIyE2Cf9t0jnRgBEM4VcZKinX JVx0xaYhwr6AqUumYVrs0v3BhGC3DrfwU6svLsBLhPqoD3p9YXsW73AGcTPqw7a5Q9Bv J9UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=adLu+IYo; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dy26si1277610edb.174.2021.04.08.22.07.47; Thu, 08 Apr 2021 22:08:10 -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=@linux-foundation.org header.s=korg header.b=adLu+IYo; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231431AbhDIFFA (ORCPT + 99 others); Fri, 9 Apr 2021 01:05:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:50134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbhDIFFA (ORCPT ); Fri, 9 Apr 2021 01:05:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 325B061165; Fri, 9 Apr 2021 05:04:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1617944688; bh=iBZJg2qunvF7v3TtboIlcuUe7mCGQTTjlXG5RowbNuM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=adLu+IYoQ7vk7/cFv+oy0OjM4dI0Fkt/4xsMjVGSoZD7vRwf/RColxjqeB9UXBB72 ubv+mWWeZjLsFl6JK0afRRIgsWPHCt9pvMARzw2h4oP/wuMRaOZF+8YhKYaMMmOBA4 evHoB2QvhdlSOcTjDfAu/EBIDzBiX1XH1PwY3oJM= Date: Thu, 8 Apr 2021 22:04:40 -0700 From: Andrew Morton To: Axel Rasmussen Cc: Alexander Viro , Andrea Arcangeli , Daniel Colascione , Hugh Dickins , Jerome Glisse , Joe Perches , Lokesh Gidra , Mike Kravetz , Mike Rapoport , Peter Xu , Shaohua Li , Shuah Khan , Stephen Rothwell , Wang Qing , linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, Brian Geffon , "Dr . David Alan Gilbert" , Mina Almasry , Oliver Upton Subject: Re: [PATCH 0/9] userfaultfd: add minor fault handling for shmem Message-Id: <20210408220440.aab59f2f06beb840c22377b3@linux-foundation.org> In-Reply-To: <20210408234327.624367-1-axelrasmussen@google.com> References: <20210408234327.624367-1-axelrasmussen@google.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 8 Apr 2021 16:43:18 -0700 Axel Rasmussen wrote: > The idea is that it will apply cleanly to akpm's tree, *replacing* the following > patches (i.e., drop these first, and then apply this series): > > userfaultfd-support-minor-fault-handling-for-shmem.patch > userfaultfd-support-minor-fault-handling-for-shmem-fix.patch > userfaultfd-support-minor-fault-handling-for-shmem-fix-2.patch > userfaultfd-support-minor-fault-handling-for-shmem-fix-3.patch > userfaultfd-support-minor-fault-handling-for-shmem-fix-4.patch > userfaultfd-selftests-use-memfd_create-for-shmem-test-type.patch > userfaultfd-selftests-create-alias-mappings-in-the-shmem-test.patch > userfaultfd-selftests-reinitialize-test-context-in-each-test.patch > userfaultfd-selftests-exercise-minor-fault-handling-shmem-support.patch Well. the problem is, > + if (area_alias == MAP_FAILED) > + err("mmap of memfd alias failed"); `err' doesn't exist until eleventy patches later, in Peter's "userfaultfd/selftests: unify error handling". I got tired of (and lost confidence in) replacing "err(...)" with "fprintf(stderr, ...); exit(1)" everywhere then fixing up the fallout when Peter's patch came along. Shudder. Sorry, all this material pretty clearly isn't going to make 5.12 (potentially nine days hence), so I shall drop all the userfaultfd patches. Let's take a fresh run at all of this after -rc1. I have tentatively retained the first series: userfaultfd-add-minor-fault-registration-mode.patch userfaultfd-add-minor-fault-registration-mode-fix.patch userfaultfd-disable-huge-pmd-sharing-for-minor-registered-vmas.patch userfaultfd-hugetlbfs-only-compile-uffd-helpers-if-config-enabled.patch userfaultfd-add-uffdio_continue-ioctl.patch userfaultfd-update-documentation-to-describe-minor-fault-handling.patch userfaultfd-selftests-add-test-exercising-minor-fault-handling.patch but I don't believe they have had much testing standalone, without the other userfaultfd patches present. So I don't think it's smart to upstream these in this cycle. Or I could drop them so you and Peter can have a clean shot at redoing the whole thing. Please let me know.