Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp321546yba; Wed, 3 Apr 2019 09:20:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxw1odG2xXX3gBsCCyWNb025YwE5ksL3w38/+zJI3zkTcwbxheGTP27XhDQtfE9tIsS+nTk X-Received: by 2002:a63:465b:: with SMTP id v27mr517683pgk.165.1554308409391; Wed, 03 Apr 2019 09:20:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554308409; cv=none; d=google.com; s=arc-20160816; b=R6c2jOkgSZNwfp/MCQVxeYTU51ySusaQdYb+0didsittb0bdgMEaXJUMYlGSxZdD3z RD7jp8kZz/uDi3JB1WxR1DMYxCERce1TPKQeyj6IYW3ovaX/3Wk2irIixIc0kIqElHSi gIPlnIDT7PH6x3o0sOosZQ2DzJHiAb/Rylfc8I/4Is7C7wGKQYqtWvjVNh3pdEvcrPD/ KXOTAgNox570sXDjIeRkq8MDA6zYSDMsrm213APQE4zYvrk3PFXjFFvJjSI7gd8cOmNR EcbgqmkJegUfR7Z1ZVQU9nX/HZGcHZte8tNBAs90Kh1hg85r+1pbPWVYFZmI/p8h1PLQ fnrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vJg5mbxl1h2+pcmQlh0qCxOUyDFGpUXa3YWQGh6HR58=; b=uiJCzd3g8qb/kcGxshbGH7d2hbigc8DaPDjKm1XruoyFWYYe3i4+afpTGLotoOfzoW dtiLTaK/bOrnGLpa2LCixmbvyZQzwGnfMIh7CR67Wwl0ZWAd1g7lZD+gSjUDmSh7CGX9 WZN2B1sS9pvDAYAvnpAlVf5lsBNxSlkckSgGH7o0sVgFwMBw6g/10sBoMxGt43jNyZyR /GCAHVoWTCi7eNB+D+TIiw80DeK2Vb1TJDoAhATLyQoSJUY2yYGvxrm++HRpGwcexrGY 8h4gXrl2XCYBRJmd2vUXuuMn1yAaM4Q7+B2Ip4eDLRd5UW1WvQfBOl2RP8FzV8CTD+ye v81g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=liWn1Mtv; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q13si13911299pff.3.2019.04.03.09.19.52; Wed, 03 Apr 2019 09:20:09 -0700 (PDT) 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=@kernel.org header.s=default header.b=liWn1Mtv; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726471AbfDCQTJ (ORCPT + 99 others); Wed, 3 Apr 2019 12:19:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:46956 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726199AbfDCQTJ (ORCPT ); Wed, 3 Apr 2019 12:19:09 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D2DCF206C0; Wed, 3 Apr 2019 16:19:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554308348; bh=iFFhhHonh7uwTw2boWMzg7mxjla/UXbjD2M8gquIYgM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=liWn1Mtv/HqOztZ/HjPTD5cMUhq4T4D+moOD+jy8ybqhKFy0AsXYqA9Yfk6iWVq0z 2TTK1pK8JhLTMEgOzlS15ms8LHaWQKAHZtpy4pc7pJwE25yiTsLO7wMetZVYpS0jZB +baH3klF5kShj0eKPJIBys4k57aAWs0usNAjfG9g= Date: Wed, 3 Apr 2019 12:19:06 -0400 From: Sasha Levin To: Steven Rostedt Cc: Slavomir Kaslev , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , "torvalds@linux-foundation.org" , "linux-fsdevel@vger.kernel.org" Subject: Re: [PATCH AUTOSEL 4.9 20/87] fs: Make splice() and tee() take into account O_NONBLOCK flag on pipes Message-ID: <20190403161906.GD16241@sasha-vm> References: <20190327182040.17444-1-sashal@kernel.org> <20190327182040.17444-20-sashal@kernel.org> <3c4595fec941c10beaf4bad8df30170b4e950226.camel@vmware.com> <20190328120417.36bae781@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190328120417.36bae781@gandalf.local.home> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 28, 2019 at 12:04:17PM -0400, Steven Rostedt wrote: >On Thu, 28 Mar 2019 15:37:49 +0000 >Slavomir Kaslev wrote: > >> On Wed, 2019-03-27 at 14:19 -0400, Sasha Levin wrote: >> > From: Slavomir Kaslev >> > >> > [ Upstream commit ee5e001196d1345b8fee25925ff5f1d67936081e ] >> > >> > The current implementation of splice() and tee() ignores O_NONBLOCK >> > set >> > on pipe file descriptors and checks only the SPLICE_F_NONBLOCK flag >> > for >> > blocking on pipe arguments. This is inconsistent since splice()-ing >> > from/to non-pipe file descriptors does take O_NONBLOCK into >> > consideration. >> > >> > Fix this by promoting O_NONBLOCK, when set on a pipe, to >> > SPLICE_F_NONBLOCK. >> >> Hey Sasha, >> >> I don't think that this patch should be merged to stable kernels. It's >> more of a feature rather than a bug/regression fix and it changes how >> splice() has been working from day one. >> >> Can you please drop it from the stable queues? >> > >On the other hand, it keeps stable more in sync with what mainline has. >If someone writes new code against a stable release, and depends on >this behavior, it's less likely to break when they run it on a newer >kernel. Which means its less likely that Linus will revert your >change ;-) I'm going to drop this, I don't really want to take things which knowingly might brake userspace. -- Thanks, Sasha