summaryrefslogtreecommitdiff
path: root/fs/hfs/hfs.h
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2013-12-13 13:31:06 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-01-09 20:25:15 (GMT)
commite93b100931a45490cd07960a1ec51d9d8e5100cb (patch)
tree6a3a27724d1c100990059d13e12348e716c6481e /fs/hfs/hfs.h
parent6d9c4a00e9d7c4506f29b94c85b07d815cc11b8a (diff)
downloadlinux-fsl-qoriq-e93b100931a45490cd07960a1ec51d9d8e5100cb.tar.xz
GFS2: Fix slab memory leak in gfs2_bufdata
commit 502be2a32f09f388e4ff34ef2e3ebcabbbb261da upstream. This patch fixes a slab memory leak that sometimes can occur for files with a very short lifespan. The problem occurs when a dinode is deleted before it has gotten to the journal properly. In the leak scenario, the bd object is pinned for journal committment (queued to the metadata buffers queue: sd_log_le_buf) but is subsequently unpinned and dequeued before it finds its way to the ail or the revoke queue. In this rare circumstance, the bd object needs to be freed from slab memory, or it is forgotten. We have to be very careful how we do it, though, because multiple processes can call gfs2_remove_from_journal. In order to avoid double-frees, only the process that does the unpinning is allowed to free the bd. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/hfs/hfs.h')
0 files changed, 0 insertions, 0 deletions