Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1553711rwd; Sun, 14 May 2023 22:45:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6eIgwG+JxQn6ob5mt3HYVCxtEEUtm58e2Jtg0RgZ9dTmojACZ/ygfJrrzAlaC0x7IwVzv6 X-Received: by 2002:a05:6a00:2443:b0:624:7c9a:c832 with SMTP id d3-20020a056a00244300b006247c9ac832mr43470499pfj.8.1684129500777; Sun, 14 May 2023 22:45:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684129500; cv=none; d=google.com; s=arc-20160816; b=LudnpeZJaV4PpcHQpOMlk745k7HUx+hwB6vDuooinxLlIKNI+RQYeIIZncFmBgX/Jg tbtEcKqkow4+dBQubc0Qp0XFLqqY8VrloKE06squd+y85+MDqpz6MKBBrtCnm37c2HEd ERivYh3Z413EwY4zJ9Y1WossuxVKACtJJCFZA4nEB6tGRff8FFjF0vF6LKJXAZ0wH7z1 J7EMILJ3oiani/CDXQFubDmfSbVEtM/z1mGl9louJ0IjSvDx1S3Ho+ptBx4Z47rAJoci XkC15Ayi5goE+3hEF7bP9c+eU6ZEludGQ05MnyhmLwuPAZYnxYvXSTmIP9tv3kV2TyZi x2RQ== 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=8z08rPxfDAASG/XLpN5ZedEBdMlrltNVn22wzFhYK0Q=; b=dc2Ke8LeTXK7fIQqCNejRWvBrkrIDoQKGMAWOKzhTWyByMyTq9ymWnBw1qvZ5kC2jM dTZ2rTwHdbrCR+nyazech3fWFQVqt0dQs0xpbocb+2x6kUGVISSpdcF0Oe8o7u9Otep6 oIhaIjeqIMQoqpRY6puk94jm+neVu7tqio6oysMg1B7gUYVkX2dc7jlf9LER5YLYtdv0 Xd42evN5q6t6S+ktXZwXVPPHJ5bVYEr1NOcu5lEwZQdDdZ1fHauCAG60a6h5axaFidVi fSuv64YAMa/nlhQBD50WW752FtjYGUz5/Fr/GZUbINGWzvasO9zA1OssKWQ54DzlZd+8 rRFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=DBnEYHtg; 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 g9-20020a63fa49000000b0052c73367c13si15290505pgk.871.2023.05.14.22.44.46; Sun, 14 May 2023 22:45:00 -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=DBnEYHtg; 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 S232353AbjEOFPB (ORCPT + 99 others); Mon, 15 May 2023 01:15:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbjEOFO5 (ORCPT ); Mon, 15 May 2023 01:14:57 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AB4E26A0; Sun, 14 May 2023 22:14:54 -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=8z08rPxfDAASG/XLpN5ZedEBdMlrltNVn22wzFhYK0Q=; b=DBnEYHtgDBNHel35RYI8L6MwdG CXYRTUv6uFJgJPOmp1dC7GyFiOrl7T9RDvVL7ssNxrdDZuv06gFGlXD+4TjMNfRR7jllqpFx9ZcPk iWuFmrLuY2w0rXmJFGf+CKrzyNnAMNTmQanAWet7sGxkMm+e3hC8lRgBB4abCj9hzdDZsso1mP7Ys 1fE1HfzlN2Ljyek0uKbAifZ8L0D7nMMqZgNZ0SmvgO7W5OCE/51X3pVXURq5GVUg8GQEZUuig+8l9 /3642c8ZGs8O/jvN0ziHyaxigZGRxPz79VfXkgFV1iczxRORzO1oIQIFuyI2QWGR6oHzFpR50n61u IH83ZVLw==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1pyQXm-000vaf-1t; Mon, 15 May 2023 05:14:46 +0000 Date: Sun, 14 May 2023 22:14:46 -0700 From: Christoph Hellwig To: Lorenzo Stoakes Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Jason Gunthorpe , 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 , Jason Gunthorpe , John Hubbard , Jan Kara , "Kirill A . Shutemov" , 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: <0eb31f6f-a122-4a5b-a959-03ed4dee1f3c@lucifer.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0eb31f6f-a122-4a5b-a959-03ed4dee1f3c@lucifer.local> 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 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 Sun, May 14, 2023 at 08:20:04PM +0100, Lorenzo Stoakes wrote: > As discussed at LSF/MM, on the flight over I wrote a little repro [0] which > reliably triggers the ext4 warning by recreating the scenario described > above, using a small userland program and kernel module. > > This code is not perfect (plane code :) but does seem to do the job > adequately, also obviously this should only be run in a VM environment > where data loss is acceptable (in my case a small qemu instance). It would be really awesome if you could wire it up with and submit it to xfstests.