public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] [GIT PULL] ftrace/kprobes/x86: Memory Fix Edition
@ 2017-05-27  2:48 Steven Rostedt
  2017-05-27  2:48 ` [PATCH 1/5] ftrace: Fix memory leak in ftrace_graph_release() Steven Rostedt
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Steven Rostedt @ 2017-05-27  2:48 UTC (permalink / raw)
  To: linux-kernel
  Cc: Linus Torvalds, Ingo Molnar, Andrew Morton, Thomas Gleixner,
	Masami Hiramatsu


Linus,

There's been a few memory issues found with ftrace.

One was simply a memory leak where not all was being freed that should
have been in releasing a file pointer on set_graph_function.

Then Thomas found that the ftrace trampolines were marked for read/write
as well as execute. To shrink the possible attack surface, he added
calls to set them to ro. Which also uncovered some other issues with
freeing module allocated memory that had its permissions changed.

Kprobes had a similar issue which is fixed and a selftest was added
to trigger that issue again.

Please pull the latest trace-v4.12-rc2 tree, which can be found at:


  git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git
trace-v4.12-rc2

Tag SHA1: 61ffee417e15b119c84e95b07348fdffd916f254
Head SHA1: 6ee98ffeea0bc9e072e419497d78697d8afcdd6d


Luis Henriques (1):
      ftrace: Fix memory leak in ftrace_graph_release()

Masami Hiramatsu (2):
      kprobes/x86: Fix to set RWX bits correctly before releasing trampoline
      selftests/ftrace: Add a testcase for many kprobe events

Steven Rostedt (VMware) (1):
      x86/mm/ftrace: Do not bug in early boot on irqs_disabled in cpu_flush_range()

Thomas Gleixner (1):
      x86/ftrace: Make sure that ftrace trampolines are not RWX

----
 arch/x86/kernel/ftrace.c                            | 20 ++++++++++++++------
 arch/x86/kernel/kprobes/core.c                      |  9 +++++++++
 arch/x86/mm/pageattr.c                              |  2 +-
 kernel/kprobes.c                                    |  2 +-
 kernel/trace/ftrace.c                               |  2 +-
 .../ftrace/test.d/kprobe/multiple_kprobes.tc        | 21 +++++++++++++++++++++
 6 files changed, 47 insertions(+), 9 deletions(-)
 create mode 100644 tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-05-27  2:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-27  2:48 [PATCH 0/5] [GIT PULL] ftrace/kprobes/x86: Memory Fix Edition Steven Rostedt
2017-05-27  2:48 ` [PATCH 1/5] ftrace: Fix memory leak in ftrace_graph_release() Steven Rostedt
2017-05-27  2:48 ` [PATCH 2/5] kprobes/x86: Fix to set RWX bits correctly before releasing trampoline Steven Rostedt
2017-05-27  2:48 ` [PATCH 3/5] selftests/ftrace: Add a testcase for many kprobe events Steven Rostedt
2017-05-27  2:48 ` [PATCH 4/5] x86/mm/ftrace: Do not bug in early boot on irqs_disabled in cpu_flush_range() Steven Rostedt
2017-05-27  2:48 ` [PATCH 5/5] x86/ftrace: Make sure that ftrace trampolines are not RWX Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox