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
  • module.c
Find file BlameHistoryPermalink
  • Linus Torvalds's avatar
    Merge tag 'kallsyms_show_value-fix-v5.9-rc1' of... · 6ba0d2e4
    Linus Torvalds authored Aug 07, 2020
    Merge tag 'kallsyms_show_value-fix-v5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
    
    
    
    Pull sysfs module section fix from Kees Cook:
     "Fix sysfs module section output overflow.
    
      About a month after my kallsyms_show_value() refactoring landed, 0day
      noticed that there was a path through the kernfs binattr read handlers
      that did not have PAGE_SIZEd buffers, and the module "sections" read
      handler made a bad assumption about this, resulting in it stomping on
      memory when reached through small-sized splice() calls.
    
      I've added a set of tests to find these kinds of regressions more
      quickly in the future as well"
    
    Sefltests-acked-by: default avatarShuah Khan <skhan@linuxfoundation.org>
    
    * tag 'kallsyms_show_value-fix-v5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
      selftests: splice: Check behavior of full and short splices
      module: Correctly truncate sysfs sections output
    6ba0d2e4
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7