From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org ([198.145.29.99]:58778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726559AbeLRV7I (ORCPT ); Tue, 18 Dec 2018 16:59:08 -0500 Date: Tue, 18 Dec 2018 16:59:06 -0500 From: Sasha Levin To: gregkh@linuxfoundation.org Cc: chadaustin@fb.com, mszeredi@redhat.com, stable@vger.kernel.org Subject: Re: FAILED: patch "[PATCH] fuse: continue to send FUSE_RELEASEDIR when FUSE_OPEN returns" failed to apply to 4.9-stable tree Message-ID: <20181218215906.GH2746@sasha-vm> References: <1545145239105238@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <1545145239105238@kroah.com> Sender: stable-owner@vger.kernel.org List-ID: On Tue, Dec 18, 2018 at 04:00:39PM +0100, gregkh@linuxfoundation.org wrote: > >The patch below does not apply to the 4.9-stable tree. >If someone wants it applied there, or to any other stable or longterm >tree, then please email the backport, including the original git commit >id to . > >thanks, > >greg k-h > >------------------ original commit in Linus's tree ------------------ > >>>From 2e64ff154ce6ce9a8dc0f9556463916efa6ff460 Mon Sep 17 00:00:00 2001 >From: Chad Austin >Date: Mon, 10 Dec 2018 10:54:52 -0800 >Subject: [PATCH] fuse: continue to send FUSE_RELEASEDIR when FUSE_OPEN returns > ENOSYS > >When FUSE_OPEN returns ENOSYS, the no_open bit is set on the connection. > >Because the FUSE_RELEASE and FUSE_RELEASEDIR paths share code, this >incorrectly caused the FUSE_RELEASEDIR request to be dropped and never sent >to userspace. > >Pass an isdir bool to distinguish between FUSE_RELEASE and FUSE_RELEASEDIR >inside of fuse_file_put. > >Fixes: 7678ac50615d ("fuse: support clients that don't implement 'open'") >Cc: # v3.14 >Signed-off-by: Chad Austin >Signed-off-by: Miklos Szeredi On older kernels this patch depends on the following two: 9a87ad3da905 fuse: release: private_data cannot be NULL 267d84449f52 fuse: cleanup fuse_file refcounting But I'm not sure about taking them as is. -- Thanks, Sasha