From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 736F7C55179 for ; Thu, 29 Oct 2020 09:28:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1512C207DE for ; Thu, 29 Oct 2020 09:28:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="MqqqGoYf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726591AbgJ2J2E (ORCPT ); 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. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Date: Thu, 29 Oct 2020 09:28:00 +0000 From: Christoph Hellwig 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: List-ID: 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 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. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0165C2D0A3 for ; Thu, 29 Oct 2020 09:28:32 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 249A12076B for ; Thu, 29 Oct 2020 09:28:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="XtUFxoGY"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="MqqqGoYf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 249A12076B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=O9DJJgG25to1V2x9USnyPvD+IOyhKEeq0kIHuTM28sQ=; b=XtUFxoGYjQMB5Vlegz48B06bP fzY5Z4Z/Qu6xee/EirPoiHGcBzP2up7KSLrmrbgxAlw1A4MJ2sOSCuQlwiHYCF/SsJ8B2Cz7mFmuF BZFJ1Mxh1ceU3Qr7BGO0l4zIQu62GLTSdaaGqd1cBYd1hX7X/K0X28LWGT4FdwpvcIJzi7QMFXNEV vmQC1d5bb5dVaynQti1hBrMXDw/DyfB/kjM3NhkrsUHrqsARgaCTqslPie7BXPoVfWc0cAJxkex02 v48poU3yERY6EHkCwFHzZC0S+ksML1kyU4yrlQrcManr0v9+PUULLTBU5wsjiIi3B7laRfTxJ23z3 yauWpZAow==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kY4Dz-0007Tt-Oe; Thu, 29 Oct 2020 09:28:03 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kY4Dy-0007Ta-5Z for linux-arm-kernel@merlin.infradead.org; Thu, 29 Oct 2020 09:28:02 +0000 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 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-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-s390 , linux-samsung-soc , KVM list , LKML , DRI Development , Christoph Hellwig , Linux MM , Linux ARM , "open list:DMA BUFFER SHARING FRAMEWORK" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel