]> git.baikalelectronics.ru Git - kernel.git/commit
Merge tag 'ftrace-urgent-3.12-v2' of git://git.kernel.org/pub/scm/linux/kernel/git...
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Nov 2013 23:54:53 +0000 (08:54 +0900)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Nov 2013 23:54:53 +0000 (08:54 +0900)
commitd9a849c6d15c2b6dee4b65e5322cc9615fd68fed
tree47963d4a27f4dd318474de096ba2aca7e90f7150
parent3f9c267d87c9487040ca65cc754afea5debd5ce3
parent3457a44d5e529b6a4c2d6cce5b2c6cf982d00b11
Merge tag 'ftrace-urgent-3.12-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace

Pull perf/ftrace fix from Steven Rostedt:
 "Dave Jones's trinity program was able to enable the function tracer
  from a normal user account via the perf syscall "perf_event_open()".
  When I was able to reproduce it with trinity, I was able to track down
  exactly how it happened.

  I discovered that the check for whether the function tracepoint should
  be activated or not was using the "perf_paranoid_kernel()" check which
  by default, lets the user continue.  The user should not by default be
  able to enable function tracing.

  The fix is to use "perf_paranoid_tracepoint_raw()" which will not let
  the user enable function tracing.  This is a security fix as normal
  users should never be allowed to enable the function tracer"

* tag 'ftrace-urgent-3.12-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
  perf/ftrace: Fix paranoid level for enabling function tracer