Pull kprobes updates from Ingo Molnar: "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. And add a kprobes blacklist for modules" * tag 'core-kprobes-2020-06-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: kprobes: Prevent probes in .noinstr.text section vmlinux.lds.h: Create section for protection against instrumentation samples/kprobes: Add __kprobes and NOKPROBE_SYMBOL() for handlers. kprobes: Support NOKPROBE_SYMBOL() in modules kprobes: Support __kprobes blacklist in modules kprobes: Lock kprobe_mutex while showing kprobe_blacklist
Showing the changes to scripts (1 of 11 files). Show all
Unified · Split
| @@ -948,7 +948,7 @@ static void check_section(const char *modname, struct elf_info *elf, · 947 unmodified lines | ||
| 948 | 948 | |
| 949 | 949 | #define DATA_SECTIONS ".data", ".data.rel" |
| 950 | 950 | #define TEXT_SECTIONS ".text", ".text.unlikely", ".sched.text", \ |
| 951 | − ".kprobes.text", ".cpuidle.text" | |
| 951 | + ".kprobes.text", ".cpuidle.text", ".noinstr.text" | |
| 952 | 952 | #define OTHER_TEXT_SECTIONS ".ref.text", ".head.text", ".spinlock.text", \ |
| 953 | 953 | ".fixup", ".entry.text", ".exception.text", ".text.*", \ |
| 954 | 954 | ".coldtext" |