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
  • linux
  • kernel
  • module.c
Find file BlameHistoryPermalink
  • Rusty Russell's avatar
    module: clean up RO/NX handling. · 4480ac38
    Rusty Russell authored Nov 26, 2015
    
    
    Modules have three sections: text, rodata and writable data.  The code
    handled the case where these overlapped, however they never can:
    debug_align() ensures they are always page-aligned.
    
    This is why we got away with manually traversing the pages in
    set_all_modules_text_rw() without rounding.
    
    We create three helper functions: frob_text(), frob_rodata() and
    frob_writable_data().  We then call these explicitly at every point,
    so it's clear what we're doing.
    
    We also expose module_enable_ro() and module_disable_ro() for
    livepatch to use.
    
    Reviewed-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
    Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
    Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
    (cherry picked from commit 85c898db
    
    )
    Signed-off-by: default avatarChris J Arges <chris.j.arges@canonical.com>
    Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
    4480ac38
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7