The patch titled
kprobes: refuse kprobe insertion on add/sub_preempt_counter()
has been added to the -mm tree. Its filename is
kprobes-refuse-kprobe-insertion-on-add-sub_preempt_counter.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: kprobes: refuse kprobe insertion on add/sub_preempt_counter()
From: Srinivasa Ds <[EMAIL PROTECTED]>
Kprobes makes use of preempt_disable(),preempt_enable_noresched() and these
functions inturn call add/sub_preempt_count(). So we need to refuse user from
inserting probe in to these functions.
This patch disallows user from probing add/sub_preempt_count().
Signed-off-by: Srinivasa DS <[EMAIL PROTECTED]>
Acked-by: Ananth N Mavinakayanahalli <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
kernel/sched.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -puN
kernel/sched.c~kprobes-refuse-kprobe-insertion-on-add-sub_preempt_counter
kernel/sched.c
--- a/kernel/sched.c~kprobes-refuse-kprobe-insertion-on-add-sub_preempt_counter
+++ a/kernel/sched.c
@@ -3875,7 +3875,7 @@ static inline unsigned long get_parent_i
return addr;
}
-void add_preempt_count(int val)
+void __kprobes add_preempt_count(int val)
{
#ifdef CONFIG_DEBUG_PREEMPT
/*
@@ -3897,7 +3897,7 @@ void add_preempt_count(int val)
}
EXPORT_SYMBOL(add_preempt_count);
-void sub_preempt_count(int val)
+void __kprobes sub_preempt_count(int val)
{
#ifdef CONFIG_DEBUG_PREEMPT
/*
_
Patches currently in -mm which might be from [EMAIL PROTECTED] are
kprobes-refuse-kprobe-insertion-on-add-sub_preempt_counter.patch
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html