Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • kernel
  • fork.c
Find file BlameHistoryPermalink
  • Kees Cook's avatar
    kunit: test: Add vm_mmap() allocation resource manager · 51104c19
    Kees Cook authored Jun 12, 2024
    For tests that need to allocate using vm_mmap() (e.g. usercopy and
    execve), provide the interface to have the allocation tracked by KUnit
    itself. This requires bringing up a placeholder userspace mm.
    
    This combines my earlier attempt at this with Mark Rutland's version[1].
    
    Normally alloc_mm() and arch_pick_mmap_layout() aren't exported for
    modules, so export these only for KUnit testing.
    
    Link: https://lore.kernel.org/lkml/20230321122514.1743889-2-mark.rutland@arm.com/
    
     [1]
    Co-developed-by: default avatarMark Rutland <mark.rutland@arm.com>
    Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
    Reviewed-by: default avatarDavid Gow <davidgow@google.com>
    Signed-off-by: default avatarKees Cook <kees@kernel.org>
    Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
    51104c19
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7