lkml.org 
[lkml]   [2020]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v3 0/3] kprobes: Remove MODULES dependency
Date
Remove MODULES dependency and migrate from module_alloc to the new
text_alloc() API Right now one has to compile LKM support only to enable
kprobes. With this change applied, it is somewhat easier to create
custom test kernel's with a proper debugging capabilities, thus making
Linux more developer friendly.

Jarkko Sakkinen (3):
kprobes: Add text_alloc() and text_free()
module: Add lock_modules() and unlock_modules()
kprobes: Flag out CONFIG_MODULES dependent code

arch/Kconfig | 2 +-
arch/x86/Kconfig | 3 ++
arch/x86/kernel/Makefile | 1 +
arch/x86/kernel/module.c | 49 -------------------------
arch/x86/kernel/text.c | 71 +++++++++++++++++++++++++++++++++++++
include/linux/module.h | 29 +++++++++++----
include/linux/text.h | 17 +++++++++
kernel/kprobes.c | 22 ++++++++++--
kernel/livepatch/core.c | 8 ++---
kernel/module.c | 70 ++++++++++++++++++++----------------
kernel/trace/trace_kprobe.c | 20 +++++++++--
11 files changed, 196 insertions(+), 96 deletions(-)
create mode 100644 arch/x86/kernel/text.c
create mode 100644 include/linux/text.h

--
2.25.1

\
 
 \ /
  Last update: 2020-07-15 00:34    [W:0.193 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site