Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-iv
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Admin message

The Gitlab will upgrade to latest version for security in the Oct 7th (9:00 ~ 12:00 UTC+8), during the time, the Gitlab site will be offline.

  • linux-arm
  • linux-iv
  • Repository
  • linux-iv
  • mm
  • kasan
  • kasan.c
Find file BlameHistoryPermalink
  • Andrey Ryabinin's avatar
    mm/mempool.c: kasan: poison mempool elements · 92393615
    Andrey Ryabinin authored Apr 15, 2015
    
    
    Mempools keep allocated objects in reserved for situations when ordinary
    allocation may not be possible to satisfy.  These objects shouldn't be
    accessed before they leave the pool.
    
    This patch poison elements when get into the pool and unpoison when they
    leave it.  This will let KASan to detect use-after-free of mempool's
    elements.
    
    Signed-off-by: default avatarAndrey Ryabinin <a.ryabinin@samsung.com>
    Tested-by: default avatarDavid Rientjes <rientjes@google.com>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: Dmitry Chernenkov <drcheren@gmail.com>
    Cc: Dmitry Vyukov <dvyukov@google.com>
    Cc: Alexander Potapenko <glider@google.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    92393615