Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe-x86
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomaixenomai
  • ipipe-x86
  • Repository
Switch branch/tag
  • ipipe-x86
  • kernel
  • trace
  • trace.c
Find file BlameHistoryPermalink
  • Oleg Nesterov's avatar
    tracing: Kill the unbalanced tr->ref++ in tracing_buffers_open() · e70e78e3
    Oleg Nesterov authored Jul 19, 2013
    tracing_buffers_open() does trace_array_get() and then it wrongly
    inrcements tr->ref again under trace_types_lock. This means that
    every caller leaks trace_array:
    
    	# cd /sys/kernel/debug/tracing/
    	# mkdir instances/X
    	# true < instances/X/per_cpu/cpu0/trace_pipe_raw
    	# rmdir instances/X
    	rmdir: failed to remove `instances/X': Device or resource busy
    
    Link: http://lkml.kernel.org/r/20130719153644.GA18899@redhat.com
    
    
    
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
    Cc: stable@vger.kernel.org # 3.10
    Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
    Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    e70e78e3

Imprint & Privacy Policy