diff options
author | Joe Thornber <ejt@redhat.com> | 2015-08-31 18:20:08 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-21 10:10:59 -0700 |
commit | 38c7d7770013cdbac508cf10f542b1ed52c70176 (patch) | |
tree | 4e0f76d8c563fd552ee9ca79ab4c63749bfbc0bb /security/selinux/hooks.c | |
parent | 8f019cb9644f46b00a2cb489ae53c1413ae68238 (diff) |
dm cache: fix leaking of deferred bio prison cells
commit 9153df7405ae04c1b0466de720e0a685cfea1a3a upstream.
There were two cases where dm_cell_visit_release() was being called,
which removes the cell from the prison's rbtree, but the callers didn't
also return the cell to the mempool. Fix this by having them call
free_prison_cell().
This leak manifested as the 'kmalloc-96' slab growing until OOM.
Fixes: 651f5fa2a3 ("dm cache: defer whole cells")
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions