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
  • sysctl_binary.c
Find file BlameHistoryPermalink
  • Mateusz Jurczyk's avatar
    kernel/sysctl_binary.c: check name array length in deprecated_sysctl_warning() · 9380fa60
    Mateusz Jurczyk authored Jul 12, 2017
    Prevent use of uninitialized memory (originating from the stack frame of
    do_sysctl()) by verifying that the name array is filled with sufficient
    input data before comparing its specific entries with integer constants.
    
    Through timing measurement or analyzing the kernel debug logs, a
    user-mode program could potentially infer the results of comparisons
    against the uninitialized memory, and acquire some (very limited)
    information about the state of the kernel stack.  The change also
    eliminates possible future warnings by tools such as KMSAN and other
    code checkers / instrumentations.
    
    Link: http://lkml.kernel.org/r/20170524122139.21333-1-mjurczyk@google.com
    
    
    Signed-off-by: default avatarMateusz Jurczyk <mjurczyk@google.com>
    Acked-by: default avatarKees Cook <keescook@chromium.org>
    Cc: "David S. Miller" <davem@davemloft.net>
    Cc: Matthew Whitehead <tedheadster@gmail.com>
    Cc: "Eric W. Biederman" <ebiederm@xmission.com>
    Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
    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>
    9380fa60
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7