Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3112800pxx; Sun, 1 Nov 2020 23:32:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfFxj2bG8BGkVakuiluZF6HjG1XuhLTkQ2SB17U/ZTZeW1C53+NOAqvVmYF/RzPLB3+knp X-Received: by 2002:a17:906:3fc5:: with SMTP id k5mr14454270ejj.158.1604302324023; Sun, 01 Nov 2020 23:32:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604302324; cv=none; d=google.com; s=arc-20160816; b=XFBb+cKEkWiCXITwecflo+8S/wvJoAtjRAtzrxUjy2lvJMZex9p/NG/I9pKjxhtTi0 FZ67PfyEzAs2n+ZZ3uK+maoNFEyfEc18dovH9gGgBCOZ4muhT6jIvkTf9cq/9xAqk2na Z10xdyCr6/GSKe3V8cf1EbZtFJdiPkD4n/6RFLQfiv7RJeaz4ISXJZE52UEc0bc5Kvt2 Sih/hAlr0WIt3x47D2fDi+aGJfUMsFoU2255TlYpRBalz19zLmoqf5jNYuvWDwvnMrv3 lKmVzngGrgSg68f9PROmeaO5vRdagPQVivohmBFVBZjrXi4tiiGHGJ+jS0rfOKr5/S52 ty8Q== 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=7kqil5vrmEb2Nddp3OQTQBXQGkc9niPiGcaNE67tBY8=; b=F9DqgxMqEk9fHrUXzmxcfnasVjNZoOZNuOlA0gWm22as6ic9lT/SHhWX4boXK6Xzix prj3fC68axmWS7MeEP7E7x9j4XQorLVALTq/jNt0bfv+tA3Bhf/H9Yq0c6RpfJ6eGH6k 4orDu8Y7BcCkD3xsFAesQhmxUYESBrKiYaSMtzJ8kpaAdH7Gr4FxeXd+UgK/86qgZzyh j+Gn/vQGGmfyhg0o4lYe0mKACplUg/RTBP5pMRvTz6yyZelIO5+NBnhwXAsAdOlN01bD Ypd4kuw3yha7d0jn7jTPx4or5GfFBAIqcbSUtAd5zsHuTd5zmsYCK8KHaYh6gLu7GwuD MewA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Erkn5URR; 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 v3si9192038eje.479.2020.11.01.23.31.41; Sun, 01 Nov 2020 23:32:04 -0800 (PST) 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=Erkn5URR; 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 S1728135AbgKBH3i (ORCPT + 99 others); Mon, 2 Nov 2020 02:29:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728064AbgKBH3h (ORCPT ); Mon, 2 Nov 2020 02:29:37 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79640C0617A6; Sun, 1 Nov 2020 23:29:37 -0800 (PST) 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=7kqil5vrmEb2Nddp3OQTQBXQGkc9niPiGcaNE67tBY8=; b=Erkn5URR+wSGh9C0rgWsbo+p9y ppm6PQDbDGHOGGA2h3Hrj/hAaUJmZb7bckVW0bAUthsA1/1XR/stYVsLsHGSL+0cUvzAzwZBKG4Z+ 1X+JPSn7x/00wDea9bTorvr41bTNvJ1tZplphwfSACELJOmWElB84jaIHXnye8gKSTw7PYtIkp+cK WGyQCz7gr/AM/kILQY6/E3kR8Ur/Rw382iwx+IpLcP8isCw9xGb2Ye7bH/QCr3P+yArX+AJnphOaO aU9VCRUV9hCMajGMKNzrOpgkRoBtDaIgpUmG5ro2Cv7DaRGobrM3PjNsUJlNDtS1sygQt/v3/GLna efXx4F/w==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZUHU-0004O4-0T; Mon, 02 Nov 2020 07:29:32 +0000 Date: Mon, 2 Nov 2020 07:29:31 +0000 From: Christoph Hellwig To: Daniel Vetter Cc: DRI Development , LKML , kvm@vger.kernel.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-media@vger.kernel.org, Daniel Vetter , Christoph Hellwig , Jason Gunthorpe , Kees Cook , Dan Williams , Andrew Morton , John Hubbard , J??r??me Glisse , Jan Kara Subject: Re: [PATCH v5 08/15] mm: Add unsafe_follow_pfn Message-ID: <20201102072931.GA16419@infradead.org> References: <20201030100815.2269-1-daniel.vetter@ffwll.ch> <20201030100815.2269-9-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201030100815.2269-9-daniel.vetter@ffwll.ch> 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 Fri, Oct 30, 2020 at 11:08:08AM +0100, Daniel Vetter wrote: > Also mark up follow_pfn as EXPORT_SYMBOL_GPL. The only safe way to use > that by drivers/modules is together with an mmu_notifier, and that's > all _GPL stuff. I also think it also needs to be renamed to explicitly break any existing users out of tree or int the submission queue.