From: Steven Rostedt <rostedt@goodmis.org>
To: linux-kernel@vger.kernel.org
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Ingo Molnar <mingo@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Thomas Gleixner <tglx@linutronix.de>,
Masami Hiramatsu <mhiramat@kernel.org>
Subject: [PATCH 0/5] [GIT PULL] ftrace/kprobes/x86: Memory Fix Edition
Date: Fri, 26 May 2017 22:48:13 -0400 [thread overview]
Message-ID: <20170527024813.934870008@goodmis.org> (raw)
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
next reply other threads:[~2017-05-27 2:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-27 2:48 Steven Rostedt [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170527024813.934870008@goodmis.org \
--to=rostedt@goodmis.org \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mhiramat@kernel.org \
--cc=mingo@kernel.org \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox