Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1224552ybl; Fri, 6 Dec 2019 13:28:40 -0800 (PST) X-Google-Smtp-Source: APXvYqyVEobRKFtWIIIplmWt0/SiexZHXV3Jd4OqWc9oaaYt7Ac2Bel9PO3E22d7ugDCN1+orr5q X-Received: by 2002:a05:6830:1d6e:: with SMTP id l14mr12703909oti.32.1575667720084; Fri, 06 Dec 2019 13:28:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575667720; cv=none; d=google.com; s=arc-20160816; b=r+7aMUITut7mkjYBLq39vN14AEWIzSi6pxWYGL0MIchFwLLBj0c2NleU4QnBKLvNN0 ykE9BUh6pRRHBeDh7Ym/FYZDO3942kDTFhklIA8v6wQvwze5yU/3j5Rf+iaXfhg30SC1 eAbqDnipe0DQBW9EJcwQBVMak1sEQJerVkimjlJv01I2BSSKWWzmwXGWEM3LKx36b1pt ftXoIUdY4Gms2EMCz44nvYw9yvoB6m5mfW3k26TaswG4a3v8FnEgNjPgmJFBtfonbXUw K1vCybeb/9MhNpow1xgqA3qSfnwGbzwlFEW1yLfXGiBhL38hW9NUxKVlD3364+HjCfnO amJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:message-id:date :content-id:mime-version:subject:cc:to:references:in-reply-to:from :organization:dkim-signature; bh=+ro7bTB1Lb1Dw2x6kGNQy3f1bBvltzngF6vogTIyx+E=; b=URKLLDC3k1UXQqF/9XrXxkPvUv3VX132l8TMKGooXQ9FF8STb5CMRVXpqjgsDMQRIC FWmXaoap7goFEv4EkL7Mhj2DNvntylZdBTkjDhnQHFH/a0QSdWxWUCIRfWMULkQeqFBD Mm9h6ez+vmkY9bxBmvgf+QeTFSkKMLkdVnrbWfrJi5rY9aprxiOMTWls9uGt4gjjPOV1 tSZi4HaXl9L46rUjnBkkWpECFa1d9vohMw3JFiRY2fNpkGQZTocork/lvvrC3RWkwuBC eJvjnsx7IcRX6yXGaRT0HWH54Yc39u+1x2r5DSk4gAvQ+uiDYRe2dpHj2roCcS0w7kfE UT+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fbjVuvhH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3si8460820otk.297.2019.12.06.13.28.26; Fri, 06 Dec 2019 13:28:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fbjVuvhH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726410AbfLFV0W (ORCPT + 99 others); Fri, 6 Dec 2019 16:26:22 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:40866 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726330AbfLFV0W (ORCPT ); Fri, 6 Dec 2019 16:26:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575667581; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+ro7bTB1Lb1Dw2x6kGNQy3f1bBvltzngF6vogTIyx+E=; b=fbjVuvhHvzfhB3qWQYv+zEcgg1MZ0OlVfWKOk+bl+Yy3Jl6OJEdZBjyMniFCyVA8hQ7+nv HMVKnTtsweNgpPjFEjgMbMlNYTl0j177FBtjTbEFhi+csnAXztrUNon9CcdQF9D7X7JMpj gi7FomDwIqHMHbzqEg6c9IdgyqOPnr8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-99-ZJ8EjDzDPOCgzxfMJ7PhWg-1; Fri, 06 Dec 2019 16:26:17 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 149758F808A; Fri, 6 Dec 2019 21:26:16 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-250.rdu2.redhat.com [10.10.120.250]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8D3E85C1D4; Fri, 6 Dec 2019 21:26:13 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <157558502272.10278.8718685637610645781.stgit@warthog.procyon.org.uk> <20191206135604.GB2734@twin.jikos.cz> To: Linus Torvalds Cc: dhowells@redhat.com, David Sterba , Eric Biggers , Al Viro , linux-fsdevel , Linux Kernel Mailing List Subject: Re: [PATCH 0/2] pipe: Fixes [ver #2] MIME-Version: 1.0 Content-ID: <15057.1575667572.1@warthog.procyon.org.uk> Date: Fri, 06 Dec 2019 21:26:12 +0000 Message-ID: <15058.1575667572@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: ZJ8EjDzDPOCgzxfMJ7PhWg-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds wrote: > I think I found it. >=20 > TOTALLY UNTESTED patch appended. It's whitespace-damaged and may be > completely wrong. And might not fix it. >=20 > The first hunk is purely syntactic sugar - use the normal head/tail > order. The second/third hunk is what I think fixes the problem: > iter_file_splice_write() had the same buggy "let's cache > head/tail/mask" pattern as pipe_write() had. >=20 > You can't cache them over a 'pipe_wait()' that drops the pipe lock, > and there's one in splice_from_pipe_next(). That seems to fix it. Tested-by: David Howells