1. 09 12月, 2009 17 次提交
  2. 08 12月, 2009 4 次提交
  3. 04 12月, 2009 2 次提交
  4. 02 12月, 2009 1 次提交
  5. 27 11月, 2009 2 次提交
    • D
      powerpc/mm: Fix bug in gup_hugepd() · 39adfa54
      David Gibson 提交于
      Commit a4fe3ce7 introduced a new
      get_user_pages() path for hugepages on powerpc.  Unfortunately, there
      is a bug in it's loop logic, which can cause it to overrun the end of
      the intended region.  This came about by copying the logic from the
      normal page path, which assumes the address and end parameters have
      been pagesize aligned at the top-level.  Since they're not *hugepage*
      size aligned, the simplistic logic could step over the end of the gup
      region without triggering the loop end condition.
      
      This patch fixes the bug by using the technique that the normal page
      path uses in levels above the lowest to truncate the ending address to
      something we know we'll match with.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      39adfa54
    • D
      powerpc/mm: Fix bug in pagetable cache cleanup with CONFIG_PPC_SUBPAGE_PROT · c045256d
      David Gibson 提交于
      Commit a0668cdc cleans up the handling
      of kmem_caches for allocating various levels of pagetables.
      Unfortunately, it conflicts badly with CONFIG_PPC_SUBPAGE_PROT, due to
      the latter's cleverly hidden technique of adding some extra allocation
      space to the top level page directory to store the extra information
      it needs.
      
      Since that extra allocation really doesn't fit into the cleaned up
      page directory allocating scheme, this patch alters
      CONFIG_PPC_SUBPAGE_PROT to instead allocate its struct
      subpage_prot_table as part of the mm_context_t.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      c045256d
  6. 24 11月, 2009 13 次提交
  7. 21 11月, 2009 1 次提交