]> www.infradead.org Git - users/jedix/linux-maple.git/commit
memory leak with RCU_TABLE_FREE
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Sun, 30 Oct 2011 14:16:08 +0000 (15:16 +0100)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:17:57 +0000 (11:17 -0800)
commitce6c7869dcf711b34bca7ff32a2230b9b0e7fb89
tree1922e48519ab1bd95888519adbde4bb4b5ffe05a
parent0dfab0bb9d1d2ff778e2be53244b71a4a306f579
memory leak with RCU_TABLE_FREE

commit e73b7fffe487c315fd1a4fa22282e3362b440a06 upstream.

The rcu page table free code uses a couple of bits in the page table
pointer passed to tlb_remove_table to discern the different page table
types. __tlb_remove_table extracts the type with an incorrect mask which
leads to memory leaks. The correct mask is ((FRAG_MASK << 4) | FRAG_MASK).

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/s390/mm/pgtable.c