]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ovl: fix memory leak on unlink of indexed file
authorAmir Goldstein <amir73il@gmail.com>
Tue, 18 Sep 2018 13:34:31 +0000 (16:34 +0300)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:52:28 +0000 (19:52 -0600)
commit5efeca499a5262234d5c830b127bdc2ba029d9ab
tree36e8aa9096b52786ecf1bf8868d9d16eac36915b
parentb312b9b9f90cdfbe647caa3b37aa956df5c2e4ba
ovl: fix memory leak on unlink of indexed file

BugLink: https://bugs.launchpad.net/bugs/1836426
commit 63e132528032ce937126aba591a7b37ec593a6bb upstream.

The memory leak was detected by kmemleak when running xfstests
overlay/051,053

Fixes: caf70cb2ba5d ("ovl: cleanup orphan index entries")
Cc: <stable@vger.kernel.org> # v4.13
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
fs/overlayfs/util.c