Hugepage bugfix
Andrew, Linus, please apply:
Fix a stupid unbalanced lock bug in the ppc64 hugepage code. Lead rapidly to a crash if both CONFIG_HUGETLB_PAGE and CONFIG_PREEMPT were enabled (even without actually using hugepages at all).
Signed-off-by David Gibson <[email protected]>
arch/ppc64/mm/hugetlbpage.c +2 -1
@@ -745,7 +745,7 @@ pgdir = mm->context.huge_pgdir;if (! pgdir) -return ; + goto out; mm->context.huge_pgdir =NULL ;
@@ -768,6 +768,7 @@BUG_ON (memcmp (pgdir, empty_zero_page,PAGE_SIZE ));kmem_cache_free (zero_cache, pgdir); + out:spin_unlock (&mm->page_table_lock); }
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist. NOT _the_ _other_ _way_ | _around_! http://www.ozlabs.org/people/dgibson
William Lee Irwin III
Acked-byQuoted 5 lines · David Gibson
Andrew, Linus, please apply:
Fix a stupid unbalanced lock bug in the ppc64 hugepage code. Lead rapidly to a crash if bothCONFIG_HUGETLB_PAGEandCONFIG_PREEMPTwere enabled (even without actually using hugepages at all).Signed-off-by David Gibson <[email protected]>
Acked-by William Irwin <[email protected]>