diff options
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2016-02-03 01:57:57 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-02-03 17:28:43 +0100 |
commit | 12c9d70bd5056b3ae84746fca973c286f48384cc (patch) | |
tree | f6b95cb55c397b738b8509c03d895fa8e2bd6f21 /lib/stmp_device.c | |
parent | drivers/hwspinlock: fix race between radix tree insertion and lookup (diff) | |
download | linux-12c9d70bd5056b3ae84746fca973c286f48384cc.tar.xz linux-12c9d70bd5056b3ae84746fca973c286f48384cc.zip |
mm: fix memory leak in copy_huge_pmd()
We allocate a pgtable but do not attach it to anything if the PMD is in
a DAX VMA, causing it to leak.
We certainly try to not free pgtables associated with the huge zero page
if the zero page is in a DAX VMA, so I think this is the right solution.
This needs to be properly audited.
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/stmp_device.c')
0 files changed, 0 insertions, 0 deletions