Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5533768ybi; Sun, 7 Jul 2019 07:05:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7aQQPLp64yoOXInO1QfE+vfT7UlHk9efYauTaF9vwsg8C0fU1s6T6LUSKrzkwOAYQOKHX X-Received: by 2002:a17:90a:228b:: with SMTP id s11mr17802465pjc.23.1562508334603; Sun, 07 Jul 2019 07:05:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562508334; cv=none; d=google.com; s=arc-20160816; b=zOX7MnrhDI28YOaOqv6Ye7jZdgbV7IMLMrbvY08OIPeKBQeGHg84K5d8c67spsD4+x KZLReIE8/mrsGxWhBbuneMhFpypkCD6udkDbqS3p/exf+RTl4TyCxweuup66/4Kmt0oB m1upMUQfwnGdetdegkxgWzAfkEinzex5Vk93PPisDXsAo3/JqMxexq+h0rJOEYD6qlVe 0IuyGKLar8/Wg3sp6QiJaWV/m/0vsZ/edq20hMZ/KYYwPkrO88HeKZdeWvlORfXbXDi4 vWEzAr589tvEC43o2v3NH5TXyovxXjXp+GlB+5VEkEBRFbQp940wlnOcRwjo6zXkSJSo 7WXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=ualpPWNV9jbo+twJXKYAA5Kkw7TOL/V5BNtpdUljf5s=; b=SHdeN+terDK8ilCU7Ai9h87wpWDfXjjHcn3v/LkcrP94J6ur45DmSsDp/wSq+S/Gpw OXh1AWHsuNwrMhYjHHZ2k7bnv2AoHgcljh+gSZjo8RSxU+0TBiQIYk7vsZ+Xhnm+KKHu MIvrLEhzedrvn5JJevkxl9DsPS7ZTARVyWT22QZJpqfzphkJ7g07eQN8AKOX7ju0w1YT oh798NYqXRF9zGaHzQuJyLz3BdBHd+PuQfd4VET0czs3x9ItBsuhe5UwaEi/UF+hWjJz wK8ASHfmaO0qs34u+a7U3zrrx7uPoNayoKhlw2FcLI0fiff/B6WPq1tsnnuPag4AUVk5 KKIg== ARC-Authentication-Results: i=1; mx.google.com; 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 r14si16018627pgm.406.2019.07.07.07.05.18; Sun, 07 Jul 2019 07:05:34 -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; 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 S1727107AbfGGOD4 (ORCPT + 99 others); Sun, 7 Jul 2019 10:03:56 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:54860 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726975AbfGGOD4 (ORCPT ); Sun, 7 Jul 2019 10:03:56 -0400 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hk7lf-0004oJ-JN; Sun, 07 Jul 2019 15:03:51 +0100 Received: from ben by deadeye with local (Exim 4.92) (envelope-from ) id 1hk7lf-0002dy-Cj; Sun, 07 Jul 2019 15:03:51 +0100 Message-ID: Subject: Re: [PATCH 3.16 0/2] Fix FUSE read/write deadlock on stream-like files From: Ben Hutchings To: Kirill Smelkov , stable@vger.kernel.org Cc: Sasha Levin , Greg Kroah-Hartman , Linus Torvalds , Miklos Szeredi , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sun, 07 Jul 2019 15:03:45 +0100 In-Reply-To: <20190609135607.9840-1-kirr@nexedi.com> References: <20190609135607.9840-1-kirr@nexedi.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-mIwC/MMSrvLMA24p43nN" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-mIwC/MMSrvLMA24p43nN Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 2019-06-09 at 15:41 +0000, Kirill Smelkov wrote: > Hello stable team, >=20 > Please consider applying the following 2 patches to Linux-3.16 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. >=20 > 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"). >=20 > 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. >=20 > 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 3.16 (as well as > into other stable trees - I'm sending corresponding series separately - > - one per tree). [...] I've queued these up for 3.16, thanks. Ben. --=20 Ben Hutchings Time is nature's way of making sure that everything doesn't happen at once. --=-mIwC/MMSrvLMA24p43nN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAl0h+8EACgkQ57/I7JWG EQnq9hAAlR7vZ/nErBhetKPo9cqvBuwzcvrDaJZom1x3Ks/kj91MzoAIc4hBdMFc PtwUcAuBvOkURSDY/M2g1cGWs0gdxzNVHSchXw/C5wYErh01t0YHSOSBU9BW5Klb QI7bNm4RWZrnQ4CNfReXhfltbo4DzpBTJG1Ocxw0dNbe+uPFyRRdyC9EZNHCiCf5 XLo8Ik3Yv7plQ1KWG+20fq+8xmwgYqJ1ZDJ3OOwSbTf2d9Zk4jawbMQ4vmZJ62vQ LaLQXCQ/qH0yD99/GGEdaFxCGjnKpGCwLSgs+yZjOyUGrnL5y5kJ5LdZZBRCMhj2 eiaFrJa1YWp6ICH3FSIIZTnYvUvUVSo49QCq37Q9gImsyu+076ytnvVMW14wRuCP GpyVRineOgBo/6iIEykr9juO1XqpqfDLQyGj4bl/9XEPbPqR+lDy9RSY6Cokjfrb 9/5iuoIIipswy40XO6vYSG6RkYKsR2bUOCVcA1E4yckwPNMwxDqVYAix2wlIx7yl UBfQYdf5an5f3fUW3D/0oSA3ZEhgIKbNH6nCV9+24MtqnApGUwdifTEq2hVnHRen m3ScBfD+HL6ON2/swBvJqAUsmD0PQ9k2Z3Yav4daQfxsoSCwCKgYJTO1h8omNPJN kh0nWxvkxqQO925KfQzDuy3kqeDN+EKF++jDSSW4O/EAscUIsZk= =CVYb -----END PGP SIGNATURE----- --=-mIwC/MMSrvLMA24p43nN--