kprobes/x86: Remove unneeded arch_within_kprobe_blacklist from x86
authorMasami Hiramatsu <[email protected]>
Mon, 17 Dec 2018 08:21:53 +0000 (17:21 +0900)
committerIngo Molnar <[email protected]>
Mon, 17 Dec 2018 16:48:40 +0000 (17:48 +0100)
Remove x86 specific arch_within_kprobe_blacklist().

Since we have already added all blacklisted symbols to the
kprobe blacklist by arch_populate_kprobe_blacklist(),
we don't need arch_within_kprobe_blacklist() on x86
anymore.

Tested-by: Andrea Righi <[email protected]>
Signed-off-by: Masami Hiramatsu <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Anil S Keshavamurthy <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Naveen N. Rao <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Yonghong Song <[email protected]>
Link: http://lkml.kernel.org/r/154503491354.26176.13903264647254766066.stgit@devbox
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/kprobes/core.c

index 6011a4a90f0ae29aca1fd6dc60e34ac219e1f358..d5f88fe570644eaa050020557ba89d044d6f0031 100644 (file)
@@ -1026,14 +1026,6 @@ int kprobe_fault_handler(struct pt_regs *regs, int trapnr)
 }
 NOKPROBE_SYMBOL(kprobe_fault_handler);
 
-bool arch_within_kprobe_blacklist(unsigned long addr)
-{
-       return  (addr >= (unsigned long)__kprobes_text_start &&
-                addr < (unsigned long)__kprobes_text_end) ||
-               (addr >= (unsigned long)__entry_text_start &&
-                addr < (unsigned long)__entry_text_end);
-}
-
 int __init arch_populate_kprobe_blacklist(void)
 {
        return kprobe_add_area_blacklist((unsigned long)__entry_text_start,