Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • I ipipe
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomaixenomai
  • ipipe
  • Repository
  • ipipe
  • mm
  • hugetlb.c
Find file BlameHistoryPermalink
  • Andy Whitcroft's avatar
    hugetlb: ensure we do not reference a surplus page after handing it to buddy · e5df70ab
    Andy Whitcroft authored Feb 23, 2008
    
    
    When we free a page via free_huge_page and we detect that we are in surplus
    the page will be returned to the buddy.  After this we no longer own the page.
    
    However at the end free_huge_page we clear out our mapping pointer from
    page private.  Even where the page is not a surplus we free the page to
    the hugepage pool, drop the pool locks and then clear page private.  In
    either case the page may have been reallocated.  BAD.
    
    Make sure we clear out page private before we free the page.
    
    Signed-off-by: default avatarAndy Whitcroft <apw@shadowen.org>
    Acked-by: default avatarAdam Litke <agl@us.ibm.com>
    Cc: <stable@kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    e5df70ab

Imprint & Privacy Policy