[GIT PULL] kprobes updates for v5.8

From: Ingo Molnar
Date: Mon Jun 01 2020 - 09:08:12 EST


Linus,

Please pull the latest core/kprobes git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-kprobes-2020-06-01

# HEAD: 66e9b0717102507e64f638790eaece88765cc9e5 kprobes: Prevent probes in .noinstr.text section

Various kprobes updates, mostly centered around cleaning up the no-instrumentation
logic, instead of the current per debug facility blacklist, use the more generic
.noinstr.text approach, combined with a 'noinstr' marker for functions.

Also add instrumentation_begin()/end() to better manage the exact place in entry
code where instrumentation may be used.

Also add a kprobes blacklist for modules.

Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
Thanks,

Ingo

------------------>
Masami Hiramatsu (4):
kprobes: Lock kprobe_mutex while showing kprobe_blacklist
kprobes: Support __kprobes blacklist in modules
kprobes: Support NOKPROBE_SYMBOL() in modules
samples/kprobes: Add __kprobes and NOKPROBE_SYMBOL() for handlers.

Thomas Gleixner (2):
vmlinux.lds.h: Create section for protection against instrumentation
kprobes: Prevent probes in .noinstr.text section


arch/powerpc/kernel/vmlinux.lds.S | 1 +
include/asm-generic/sections.h | 3 ++
include/asm-generic/vmlinux.lds.h | 10 +++++
include/linux/compiler.h | 53 +++++++++++++++++++++++
include/linux/compiler_types.h | 4 ++
include/linux/module.h | 8 ++++
kernel/kprobes.c | 85 ++++++++++++++++++++++++++++++++++++-
kernel/module.c | 10 +++++
samples/kprobes/kprobe_example.c | 6 ++-
samples/kprobes/kretprobe_example.c | 2 +
scripts/mod/modpost.c | 2 +-
11 files changed, 180 insertions(+), 4 deletions(-)