Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2386511ybi; Sun, 9 Jun 2019 10:26:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzR0eEQYXxI35ZEFZc9M0b6sTmTlJPLw4EOdGXLOFChX/XnIc6025V37WguPusyxrkMtH6O X-Received: by 2002:a17:902:2ba7:: with SMTP id l36mr65766824plb.334.1560101218025; Sun, 09 Jun 2019 10:26:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560101218; cv=none; d=google.com; s=arc-20160816; b=pm/nbecv4hdhUaVjuJMwQkjb6ENaf69fBNcARekw7AlYwJLPmsM+Mkq+P7smiC4k3b WmnIgeWozaGH37xj27tm8S8VRY+emXIxbIkzWXS8k7s8xFeQYeRq7fY4depxZKKjS0hn v0SzhhweF3Gg5tKschKfA2Kl7oiL5eJcCgFHXelkN7On9IQxMRgGyX1o1h4ErApTlM72 MK+CS0GcPUZ0FpmEwwLCrrKvPCeySa4PlGNHrfxZ7mIvn4uaEEQDGXodIQaf60d7pH6w TtRQ890VgHN7+1hK3d+TMBLmR5W/xRP32Pkdl8VMQJw5nLF3qBWFPgK+jFvEOLrizhvg n3+w== 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:mime-version :date:in-reply-to:references:message-id:cc:to:subject:from :dkim-signature:dkim-signature; bh=03p0EHZFqTozGokUZcGA+xQpyWGasJEVs73vt6q7z5Q=; b=gkjUOuLzDKHBUOt1hXikj+kiPBiCRXRqRGli+bFf6zY6KNf00rW4xr8ARaGRGSc3Yn DhIACNy3e5lMLC2rbZaLUcgot7OgknBrp5uotC6m63uJ0cvSObbmc+akDJ5hYqru9klG BTqPQe0SvwLzl95EFwRkVHn+4gQ56P4VjUdGlBhokdcw4Mw63/FoVWSteInESEAggmhY DEPTHdamOx+QqvFvjHqjBzAGIPWhzreYhL/HLHshgb7yctF1188fomUlLkU+xuJZa/JJ EOlwvqMsbLV0irnh1QK92MFbuF70JjIs7rHscj+zZGIX9BG43g3OJ1fHCH0z0c+Ewrqi gz6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexedi.com header.s=mandrill header.b=cX5b7Kdo; dkim=pass header.i=@mandrillapp.com header.s=mandrill header.b=GNp2YFGK; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si8362950pld.40.2019.06.09.10.26.41; Sun, 09 Jun 2019 10:26:58 -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=@nexedi.com header.s=mandrill header.b=cX5b7Kdo; dkim=pass header.i=@mandrillapp.com header.s=mandrill header.b=GNp2YFGK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729181AbfFIRZd (ORCPT + 99 others); Sun, 9 Jun 2019 13:25:33 -0400 Received: from mail177-30.suw61.mandrillapp.com ([198.2.177.30]:55644 "EHLO mail177-30.suw61.mandrillapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728970AbfFIRZd (ORCPT ); Sun, 9 Jun 2019 13:25:33 -0400 X-Greylist: delayed 902 seconds by postgrey-1.27 at vger.kernel.org; Sun, 09 Jun 2019 13:25:31 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=mandrill; d=nexedi.com; h=From:Subject:To:Cc:Message-Id:References:In-Reply-To:Date:MIME-Version:Content-Type:Content-Transfer-Encoding; i=kirr@nexedi.com; bh=03p0EHZFqTozGokUZcGA+xQpyWGasJEVs73vt6q7z5Q=; b=cX5b7KdohDalO3HKYP2QPt4oEJS86bRMGBFUMQYOgjM7SwjvvLU9UGOaZENd4IOc+jFDQcrtl7HL 9YtTXV+H7zoiPMpTDG6SSW9xJgjsPpqttLE8BzFJ7vZY8gT5v1CmCj5bfDIjldcQQWLKncXB4BAw udUEI3AnT/qMDWsLDmQ= Received: from pmta06.mandrill.prod.suw01.rsglab.com (127.0.0.1) by mail177-30.suw61.mandrillapp.com id hvl0go22rtk1 for ; Sun, 9 Jun 2019 17:10:28 +0000 (envelope-from ) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; i=@mandrillapp.com; q=dns/txt; s=mandrill; t=1560100228; h=From : Subject : To : Cc : Message-Id : References : In-Reply-To : Date : MIME-Version : Content-Type : Content-Transfer-Encoding : From : Subject : Date : X-Mandrill-User : List-Unsubscribe; bh=03p0EHZFqTozGokUZcGA+xQpyWGasJEVs73vt6q7z5Q=; b=GNp2YFGKIFHN28miMnLIeeGP1iQeSgvBV3e6DAB2/P7s90biBRW5cinrLnrS7ob2M4cOvU 0RqNOWt3zZpep1nviFJjTBpAXwcW4Wv1A1TBKU5Vja/NUH/G3HyiD7HE2AIqUNw6/9f3UTR0 YuUFQRIyefZQfn1n8cBpiGnNee/BQ= From: Kirill Smelkov Subject: Re: [PATCH 4.14 0/2] Fix FUSE read/write deadlock on stream-like files Received: from [87.98.221.171] by mandrillapp.com id df138bef05124a3cb53ab538cffbb548; Sun, 09 Jun 2019 17:10:28 +0000 To: Greg KH Cc: , Sasha Levin , Ben Hutchings , Linus Torvalds , Miklos Szeredi , , Message-Id: <20190609171020.GA27685@deco.navytux.spb.ru> References: <20190609123831.11489-1-kirr@nexedi.com> <20190609163826.GB26671@kroah.com> In-Reply-To: <20190609163826.GB26671@kroah.com> X-Report-Abuse: Please forward a copy of this message, including all headers, to abuse@mandrill.com X-Report-Abuse: You can also report abuse here: http://mandrillapp.com/contact/abuse?id=31050260.df138bef05124a3cb53ab538cffbb548 X-Mandrill-User: md_31050260 Date: Sun, 09 Jun 2019 17:10:28 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 09, 2019 at 06:38:26PM +0200, Greg KH wrote: > On Sun, Jun 09, 2019 at 12:39:08PM +0000, Kirill Smelkov wrote: > > Hello stable team, > > > > Please consider applying the following 2 patches to Linux-4.14 stable > > tree. The patches fix regression introduced in 3.14 where both read and > > write started to run under lock taken, which resulted in FUSE (and many > > other drivers) deadlocks for cases where stream-like files are used with > > read and write being run simultaneously. > > > > Please see complete problem description in upstream commit 10dce8af3422 > > ("fs: stream_open - opener for stream-like files so that read and write > > can run simultaneously without deadlock"). > > > > The actual FUSE fix (upstream commit bbd84f33652f "fuse: Add > > FOPEN_STREAM to use stream_open()") was merged into 5.2 with `Cc: > > stable@vger.kernel.org # v3.14+` mark and is already included into 5.1, > > 5.0 and 4.19 stable trees. However for some reason it is not (yet ?) > > included into 4.14, 4.9, 4.4, 3.18 and 3.16 trees. > > > > The patches fix a real problem into which my FUSE filesystem ran, and > > which also likely affects OSSPD (full details are in the patches > > description). Please consider including the fixes into 4.14 (as well as > > into earlier stable trees - I will send corresponding series separately - > > - one per tree). > > Many thanks for these. I've queued up all but the 3.16 patches (those > are for Ben). > > I hadn't done the backport yet, as I didn't know how "severe" this was, > and didn't have the time to do it. Thanks for making it easy :) Greg, you are welcome and thanks a lot for feedback and for queueing the patches. Ben, looking forward to 3.16 update to care about Jessie. Thanks again, Kirill