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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2CA00C77B75 for ; Mon, 15 May 2023 05:15:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232916AbjEOFPB (ORCPT ); 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 Precedence: bulk List-ID: X-Mailing-List: linux-perf-users@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.