Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1792599rwd; Wed, 17 May 2023 01:09:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kocPn+udvUOwM+G3EqVeXMfjfIuUln694w192DSyFpcH0MGwLa5ir2BAn7LFZAOrKuExF X-Received: by 2002:a17:903:185:b0:1aa:db0f:1aba with SMTP id z5-20020a170903018500b001aadb0f1abamr48534499plg.47.1684310991181; Wed, 17 May 2023 01:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684310991; cv=none; d=google.com; s=arc-20160816; b=V3EXmHMb6cXhp3xcUr+0gKntbVqmnAcBx00jWhJgoHJT0x9/z4SX4H2Hg8Ec9ug8Lk ZAgy1eRwRWVFN1J1pWWJy266+nZll71rmgXrdXkE5inc4I7jaEuQzmIYRL4TquF0GNlP 3qzOpLt2j1tmniiw1OnkjxURdZNDCHrzOjCV6Al2GRtkbXtVYbp15FIATwosqtyVSh1S jk29E/faIp4rJa39mVBmigZpuP3BOgUbEosGfrUJjH8hYKUJhyFQN148bnL7TAPRP8yL 1IBuyhhEJIZK+vVapN4mhBsvKYMCvPDwZG+k5IinV6KXGNUiyGrvwmcZQ2RAe2ig4s5Y GJow== 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=epIz9WNLfn/uDEbQVAxaXtzYiN9TCXftS0bKHjTl38Y=; b=OwF7+OY9+xytTEOyZoYF+zy4Y1DP5pzO33hogVZdRuGmrjzfeCo9IjoipS1NpPkof6 UfiaNVTmI4pkaDxQV/wFGlBTfBWTSpsZwtjFUxi2j2UbhbuMUw734vjHwDRL3vlH5BQx kYvXCOZbw2J9ffTU+gzBfg64xtsFw06wd1Yk4OnuldeMAFhReZkYBM4N0M6vMlbRywlX EvkX5HJIVEPAAJ7I9L+q16VrWiZZJBJCib8vAULM11jZYCTGjrrVnGm279ysl2H7tIpj GJ/DnfdV7yRSK1TXAIGV6f+1w4oYBW6rsQ1F3ewDuZEA5wgP4pgGM0yzpvsvTcnI0Xd4 kIMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=tldy3unv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y17-20020a17090322d100b001adeb1635e1si12776114plg.155.2023.05.17.01.09.36; Wed, 17 May 2023 01:09:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=tldy3unv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230169AbjEQHnp (ORCPT + 99 others); Wed, 17 May 2023 03:43:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229607AbjEQHnl (ORCPT ); Wed, 17 May 2023 03:43:41 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44AF8DA; Wed, 17 May 2023 00:43:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=epIz9WNLfn/uDEbQVAxaXtzYiN9TCXftS0bKHjTl38Y=; b=tldy3unv0O0ScM26uWYfvGYwqV RIUAc42Wa5JqJlmli6hN7aarUI2WLa8u8hlYjNKRB9TsgpEWZlEJCuIEdQvhVYt3TNdVyyJVlbDB3 McAms7oQTK8UeRCDjBuP4nYMDWDVtNsavChSiigR7jrv2lUpxm7fs3B5Lqi4SjWgiOHdpyXB/o3+3 z4mOJSgbkesaYtKiPshob4b3L49efh/RSG90s556lsuexl7EQv2MB9M9fSUPoaDBESoJ61XAsivf6 Vl+rGJ/8ui1Rix5kgi60q3e9OFbxnYhc7eh7WfFfgtOiNvtETDLHKi9n6MN9b3LYRm9xWn47Y5JFU OhncL+Qg==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1pzBos-008iVo-1m; Wed, 17 May 2023 07:43:34 +0000 Date: Wed, 17 May 2023 00:43:34 -0700 From: Christoph Hellwig To: Lorenzo Stoakes Cc: Jan Kara , Jason Gunthorpe , "Kirill A . Shutemov" , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Jens Axboe , Matthew Wilcox , Dennis Dalessandro , Leon Romanovsky , Christian Benvenuti , Nelson Escobar , Bernard Metzler , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Bjorn Topel , Magnus Karlsson , Maciej Fijalkowski , Jonathan Lemon , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Christian Brauner , Richard Cochran , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , linux-fsdevel@vger.kernel.org, linux-perf-users@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Oleg Nesterov , John Hubbard , Pavel Begunkov , Mika Penttila , David Hildenbrand , Dave Chinner , Theodore Ts'o , Peter Xu , Matthew Rosato , "Paul E . McKenney" , Christian Borntraeger Subject: Re: [PATCH v9 0/3] mm/gup: disallow GUP writing to file-backed mappings by default Message-ID: References: <20230515110315.uqifqgqkzcrrrubv@box.shutemov.name> <7f6dbe36-88f2-468e-83c1-c97e666d8317@lucifer.local> <20230517072920.bfs7gfo4whdmi6ay@quack3> 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 bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 17, 2023 at 08:40:26AM +0100, Lorenzo Stoakes wrote: > > I'm not sure what you mean by "total flexibility" here. In my opinion it is > > also about how HW performs checksumming etc. > > I mean to say *_ops allow a lot of flexibility in how things are > handled. Certainly checksumming is a great example but in theory an > arbitrary filesystem could be doing, well, anything and always assuming > that only userland mappings should be modifying the underlying data. File systems need a wait to track when a page is dirtied so that it can be written back. Not much to do with flexbility.