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
  • trace
  • ring_buffer.c
Find file BlameHistoryPermalink
  • Sebastian Andrzej Siewior's avatar
    tracing/rb: Init the CPU mask on allocation · b18cc3de
    Sebastian Andrzej Siewior authored Dec 07, 2016
    Before commit b32614c0 ("tracing/rb: Convert to hotplug state machine")
    the allocated cpumask was initialized to the mask of online or possible
    CPUs. After the CPU hotplug changes the buffer initialization moved to
    trace_rb_cpu_prepare() but the cpumask is allocated with alloc_cpumask()
    and therefor has random content. As a consequence the cpu buffers are not
    initialized and a later access dereferences a NULL pointer.
    
    Use zalloc_cpumask() instead so trace_rb_cpu_prepare() initializes the
    buffers properly.
    
    Fixes: b32614c0
    
     ("tracing/rb: Convert to hotplug state machine")
    Reported-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
    Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
    Cc: rostedt@goodmis.org
    Link: http://lkml.kernel.org/r/20161207133133.hzkcqfllxcdi3joz@linutronix.de
    
    
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    b18cc3de
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7