Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2166667pxb; Wed, 9 Feb 2022 12:17:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJwFxfBplx7BjuEiJ5dG3G26Cy60W4YF1vB4lD4ZDkwRMWQoA01Q1vgT/Yp+mlQpXl8HRNkf X-Received: by 2002:a17:902:8344:: with SMTP id z4mr3883984pln.12.1644437867666; Wed, 09 Feb 2022 12:17:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644437867; cv=none; d=google.com; s=arc-20160816; b=I2DmXHUdDzj42twPeBARGUlYa1Q7hPZh0j1Rh7/ReyI2Szo2yE3Vx8WNcsUfUvlooI pqIMLLZBuG3HIrAsxnGOW6E7bFQudQRXFe8+TnSMRjRF15cPhn4hb+pzRkk537QAXvGU NvbnI+TBFwiuamJE121QjxLaj/H34gWNfOuF7h+rR23MXWnhzYKfZkTCyu/wc09btWP6 ECgLgt6HGxjpDHxmlfURbOWFznRNFud1JuLRccI8C0BFfu9SSii/lmvUJ11di1dPAuJ3 g2u945mdMzhjB5e1hE/D/DK8rMgwmMycHl+FyOS8g3bawG/4LJTVcEW/5s+K7/86hekw 20qA== 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=9gl0k3PijnwzBappKxAOI37Vix6kLRRS+YqO+Vq3rvI=; b=vRZQanNpPjIqA1txWxjBS9iXz8qTCs2s5R0Fx2RLzgNCahqZarUzZI3FRUi3KKSP/R Bp62c8x8Umw+RJV/T1TgWtVE2b8TeT8YKd/6385hhU+qjg0jl4JlY+nIQUyC27ryWyHZ VcpTuCevuh7GqafBaagc+guW2UYCVrDe5GVXf/ARNVnRDmM/6r6b6FhBc5QPcvQfeFgn Kpgp/zy5t4h+6L+jg+NrnoVK3KLuOEUvAN2Ou72C2qwnQ99j1kXpO7UIWknmch22ky0Z Zs7oKIy5NDhVNJJRyiwhqFys5SO6NEm6qCuwZbJa8f8zVwUjZYbVDIKYh/y8Eg42Kj9f CNdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=qFAtiO6z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id bm1si1404695pgb.602.2022.02.09.12.17.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 12:17:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=qFAtiO6z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 14E00E065952; Wed, 9 Feb 2022 11:57:23 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231416AbiBITMd (ORCPT + 99 others); Wed, 9 Feb 2022 14:12:33 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:58776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiBITMa (ORCPT ); Wed, 9 Feb 2022 14:12:30 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED768C014F39; Wed, 9 Feb 2022 11:12:21 -0800 (PST) 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=9gl0k3PijnwzBappKxAOI37Vix6kLRRS+YqO+Vq3rvI=; b=qFAtiO6z0mbXRm+tzfImRHlYJg OTEmLv3RZ5U4u0wpUQrFULpv3aIekvg8pPgOqufzZ44EoTEJRYqPSLm3JGr+Hkhb9v5cTOHPaGHt+ L1ed4WJpmRlqB70lLATDhIrdvbCy9V7Zxz6O7Gd7OaK2wVVeC2qgUjnErZk0WUeFZepkiwT6rvQdE 8NZyyRdqBDI9s8fqf8jM+8S4NTygZ0SXY80sjtpWI0jW4xrr9WN/nD5/uUjoGEti0DiY0nRVgM/R5 qpAN95PzKrlZ2wQOoHCBtwZMyAIQpzFoKC8ls0PsakKTGsXuShImt2K9EfxTNU36x3onbKSwsTwsG cmiykScg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHsNu-008U5F-Dw; Wed, 09 Feb 2022 19:12:10 +0000 Date: Wed, 9 Feb 2022 19:12:10 +0000 From: Matthew Wilcox To: Lee Jones Cc: Christoph Hellwig , linux-kernel@vger.kernel.org, Stable , Dave Chinner , Goldwyn Rodrigues , "Darrick J . Wong" , Bob Peterson , Damien Le Moal , Theodore Ts'o , Andreas Gruenbacher , Ritesh Harjani , Johannes Thumshirn , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, cluster-devel@redhat.com, syzbot+0ed9f769264276638893@syzkaller.appspotmail.com Subject: Re: [PATCH 1/1] Revert "iomap: fall back to buffered writes for invalidation failures" Message-ID: References: <20220209085243.3136536-1-lee.jones@linaro.org> <20220209150904.GA22025@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, Feb 09, 2022 at 03:59:48PM +0000, Lee Jones wrote: > On Wed, 09 Feb 2022, Christoph Hellwig wrote: > > > On Wed, Feb 09, 2022 at 08:52:43AM +0000, Lee Jones wrote: > > > This reverts commit 60263d5889e6dc5987dc51b801be4955ff2e4aa7. > > > > > > Reverting since this commit opens a potential avenue for abuse. > > > > > > The C-reproducer and more information can be found at the link below. > > > > > > With this patch applied, I can no longer get the repro to trigger. > > > > Well, maybe you should actually debug and try to understand what is > > going on before blindly reverting random commits. > > That is not a reasonable suggestion. > > Requesting that someone becomes an area expert on a huge and complex > subject such as file systems (various) in order to fix your broken > code is not rational. Sending a patch to revert a change you don't understand is also not rational. If you've bisected it to a single change -- great! If reverting the patch still fixes the bug -- also great! But don't send a patch when you clearly don't understand what the patch did. > If you'd like to use the PoC provided as a basis to test your own > solution, then go right ahead. However, as it stands this API should > be considered to contain security risk and should be patched as > quickly as can be mustered. Reversion of the offending commit seems > to be the fastest method to achieve that currently. This is incoherent. There is no security risk.