Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp283669pxx; Thu, 29 Oct 2020 02:29:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmjZrUHifbgu4dWq3L2p9r0wCRAen02wrKZTs1Vqshsomve82/YVWpzgYUm5JIUl2Adw2u X-Received: by 2002:a17:906:a4b:: with SMTP id x11mr3228660ejf.11.1603963798998; Thu, 29 Oct 2020 02:29:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603963798; cv=none; d=google.com; s=arc-20160816; b=yE7MViZoJ3V7LuYH5smgpwrQYcscMZLnADCthUv+PdRl1cUlsLMynpPTw9sIPRZcyk 1zFeeINhnmgfa253IGZMzxUZkPEIPoLJGFCfQ0ZabfxjlP4Nc9e92SRRHMcGDe5HfqvZ Z2Bn2MpYm5vLPOIUDxvz2HBmZW3AxoGApiHqffkBuiKuyS9iTPSsBqzGwtP5mnBDXaA4 zFafjwwxlz+H4s2JaP27Fie+207LRdT+1uPHGcgSq7yaFPylHurN3+T58wjJUMioX1qJ PCk/2mJgz2jPSihamm04A3etbMG0taG4lYfFSJ/3KNQrJUQPd+DPFr5SoA8BwIUsDnPp fLvQ== 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=HMNKQsqBsKX9+0k6m5XFcNMbHKyJ5WQO76fwZYbzlHU=; b=C2/E8A8UiD9CvkouinGWde66Wf3KWVUfo/bMXZTMwIYXVv3Db6HFvYlbYahDY1sg7m UkuipzzGDBpDfnZViamdwtyqqeBGhxFViSNYWYYcVXYAuAMCP0Q810/CZzYeNrSTVNsk HVi0nMRW2LwOqtKNsEL7yhCd/6SRatWeC3mwQZe8wrVJKjoiihKjGZQbFtDwhd/On76/ 0A35qbwi6nHH86qFOnLebeIVbWMWnZM/ZBJisDKcwuF4A9J5zSmV0G/u8WH6WPsIGm7J NouumvfVJWlOmLX3DH5UVqTwYy/byGRwFLAXVm2sSElpI8xrcuBc0OkNS15dY0pk0qi5 Nlgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=MqqqGoYf; 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 bu8si1939310edb.95.2020.10.29.02.29.35; Thu, 29 Oct 2020 02:29:58 -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=MqqqGoYf; 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 S1726445AbgJ2J2E (ORCPT + 99 others); Thu, 29 Oct 2020 05:28:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725808AbgJ2J2D (ORCPT ); Thu, 29 Oct 2020 05:28:03 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FCD5C0613CF; Thu, 29 Oct 2020 02:28:03 -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=HMNKQsqBsKX9+0k6m5XFcNMbHKyJ5WQO76fwZYbzlHU=; b=MqqqGoYfwKrE3KISkpzbqHy/Ob uwVusthktdIZQSLnndLf88E75ofqEvbWgesgfeJfESvYr36PMyTzf8xDx9ObwIrnCaqC1jXHyrrEL 6JMcnxyv9llSjA36fJwqh/119FIzHvvDdu2PPzJ/ZMlqjGtl3E4yTV495esSFXmAorzfgxzSVhEAn x3+Z9WX0MQlUP/mxT54fA+7vKmCUZkTIkr7rTMgMTNOUgOnrFxHfNf64sjDR+pkCAFSIrpqRRogAo ejWSe3+wxOeEr2U/JYm132fimQVhTTK3d0aumI3wRGQuZE24e5seUrCq9JzOrgmV3Q5iiH/rjO8Gu DV3kSWTQ==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kY4Dw-0000CZ-NJ; Thu, 29 Oct 2020 09:28:00 +0000 Date: Thu, 29 Oct 2020 09:28:00 +0000 From: Christoph Hellwig To: Daniel Vetter Cc: Christoph Hellwig , DRI Development , LKML , KVM list , Linux MM , Linux ARM , linux-samsung-soc , "open list:DMA BUFFER SHARING FRAMEWORK" , linux-s390 Subject: Re: [PATCH v4 00/15] follow_pfn and other iomap races Message-ID: <20201029092800.GA494@infradead.org> References: <20201026105818.2585306-1-daniel.vetter@ffwll.ch> <20201029085749.GB25658@infradead.org> 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 Thu, Oct 29, 2020 at 10:25:16AM +0100, Daniel Vetter wrote: > On Thu, Oct 29, 2020 at 9:57 AM Christoph Hellwig wrote: > > > > Maybe I'm missing something, but shouldn't follow_pfn be unexported > > at the end of the series? > > kvm is a legit user and modular afaict. But since you can't use this > without an mmu_notifier anyway (or digging around in pagetable > locking), maybe it should be EXPORT_SYMBOL_GPL now at least? I think it should then take the notifier as an argument even if it isn't diretly used as a safety check, and get a new name describing it. EXPORT_SYMBOL_GPL is probably ok for now, but I'm drafting a new EXPORT_SYMBOL_FOR_MODULE() which will export symbols that can only be used by one specific module, with kvm being a prime user due to all the odd exports it requires that aren't really the kernel interface by any normal means.