]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
fuse: fix double request_end()
authorMiklos Szeredi <mszeredi@redhat.com>
Thu, 26 Jul 2018 14:13:11 +0000 (16:13 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 23 Apr 2019 15:51:47 +0000 (17:51 +0200)
commit65afa0c5b8dd2561d96115239d47c1f2b4b527dc
tree0da0d97491c8a93b3cb8380e6dddd4b25179c46b
parent8ad1fc81273e4fdcf154a5a6e8fbe8b223be1a38
fuse: fix double request_end()

BugLink: https://bugs.launchpad.net/bugs/1824553
Refcounting of request is broken when fuse_abort_conn() is called and
request is on the fpq->io list:

 - ref is taken too late
 - then it is not dropped

Fixes: 0d8e84b0432b ("fuse: simplify request abort")
Cc: <stable@vger.kernel.org> # v4.2
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
(cherry picked from commit 87114373ea507895a62afb10d2910bd9adac35a8)
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
fs/fuse/dev.c