Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2358208pxj; Mon, 10 May 2021 00:31:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0eEJ+138334Vv0NsEPBoTxcfIz9hJy0FdqZWSBEZME8tQXl14fMBOnsEYHDNuVI8qcZTr X-Received: by 2002:a02:cab3:: with SMTP id e19mr19943083jap.64.1620631905639; Mon, 10 May 2021 00:31:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620631905; cv=none; d=google.com; s=arc-20160816; b=vWn3FrhLMCre/V6PIld04udbYand0xDjALKrN4dgHnS5XlOmGPlMwfNOXXjs3P3Qvp Gm8GzCikuLq3iyw6BNNRzS70/QvwpbeokPw6Tniu8XNnBS15/jyoNMEk4P9dRUSLzaPi osjz78mEHBRFjE4Hg1ut+wHn+5CzlA0IW4qN3DffkrLilKEYwSwlgMbUyC2nQkx6YE44 HwoJDyuEt0Ezaihhl7mUHAZ2FyL6F3TTWlxCkgyN9suvlMtCNm6cVL/REsFe8nIbkA98 8bLJJfkhpEbhPc16aOjI3kATUOLFMY3jgSipNoOGoDwDVVI1JuuJOVuWrGKvl2CLg9Ac hI5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RlPDTnrGP7VrkHHDZaeu5siASFXrL/7DV46d02KfOg8=; b=b31E05L21Tae7Gs7uggNctkMxvzEg3B2kdmgRmCQqNxA4k9aLJMDN7MxjnLoGnubFD PgKlaCoLkIDM5ObrSlgzZpVfZBvWW9/xK6iOb2CRCl8t00s7RJagEfFwkiV6olMuUM2b IkPxzr+6DIr8mCtb6onrzFX6B1Raft07kDEOI5RcEZzG89L2rxgVa9FAlNSGiEPP24tJ QvUf4lz4vtMjbQ4Gi2x8WwYXVspMjzINBW90IKBLVNhKloLfYcywGzBDnkC50q6j9tPV 4AicJB1lvU34HxxyN/gk0YJKpnWy1JClGAnqRhxxnfx6qDazeVIxR+5JgZs+iwPQOY7Q fYJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=jVtYg1Dp; 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 b11si10876570jat.114.2021.05.10.00.31.33; Mon, 10 May 2021 00:31:45 -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=@infradead.org header.s=casper.20170209 header.b=jVtYg1Dp; 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 S230076AbhEJHcH (ORCPT + 99 others); Mon, 10 May 2021 03:32:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229684AbhEJHcG (ORCPT ); Mon, 10 May 2021 03:32:06 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A5D9C061573; Mon, 10 May 2021 00:31:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=RlPDTnrGP7VrkHHDZaeu5siASFXrL/7DV46d02KfOg8=; b=jVtYg1DpIhoMALo/8L1gTQX3ww 71nqSsTYByFChENtDDk7rl0AnbqCNYwo4kIyhxfdTGMVo2WSUaokSu6XHznVNC+zNG6w1+ZT7teAE U3xD//EkLHc4hnRNpZgrlDLhKr0c4uniH4OXlSCvuWDEqpbXAyJEuvBrmJwwjpntITYYjTHgWxP8+ TEhIsYdtK717BX+ucCD6EA1Ro67VHN9V61suNwsknLSPRw3z/gYot7uhl/qDZsHvzb9XvRvJ3WxY7 MYKLsyXSwII3NUgCBauC/Y3gs/9XnATB/PvFMAq+mU7jEsLMIynM0ji0AW3may0sqatghH7sRC3gx nZxczo9Q==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lg0M8-005oIH-AU; Mon, 10 May 2021 07:29:37 +0000 Date: Mon, 10 May 2021 08:29:32 +0100 From: Christoph Hellwig To: Daniel Vetter Cc: Linus Torvalds , Tomasz Figa , Marek Szyprowski , Mauro Carvalho Chehab , DRI Development , LKML , Linux-MM , Linux ARM , Linux Media Mailing List , linux-samsung-soc Subject: Re: [PULL] topic/iomem-mmap-vs-gup Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 10, 2021 at 09:16:58AM +0200, Daniel Vetter wrote: > > End result: not pulling it, unless somebody can explain to me in small > > words why I'm wrong and have the mental capacity of a damaged rodent. > > No rodents I think, just more backstory of how this all fits. tldr; > pin_user_pages is the only safe use of this vb2 userptr thing. Yes, which is why I advocate for just ripping the follow_pfn path out entirely. It could have been used for crazy ad dangerous peer to peer transfers outside of any infrastructure making it safe, or for pre-CMA kernel memory carveouts for lage contiguous memory allocations (which are pretty broken by design as well). So IMHO the only sensible thing is to remove this cruft entirely, and if it breaks a currently working setup (which I think is unlikely) we'll have to make sure it can work the proper way.