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: fix crash in get_ksymbol() when oopsing in module init · 511ca6ae
    Rusty Russell authored Aug 05, 2010
    
    
    Andrew had the sole pleasure of tickling this bug in linux-next; when we set
    up "info->strtab" it's pointing into the temporary copy of the module.  For
    most uses that is fine, but kallsyms keeps a pointer around during module
    load (inside mod->strtab).
    
    If we oops for some reason inside a module's init function, kallsyms will use
    the mod->strtab pointer into the now-freed temporary module copy.
    
    (Later oopses work fine: after init we overwrite mod->strtab to point to a
     compacted core-only strtab).
    
    Reported-by: default avatarAndrew "Grumpy" Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarRusty "Buggy" Russell <rusty@rustcorp.com.au>
    Tested-by: default avatarAndrew "Happy" Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
    511ca6ae
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7