[PATCH 0/3][RFC] x86: Catch stray non-kprobe breakpoints

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: LKML <linux-kernel@...>
Cc: <jkenisto@...>, <ananth@...>, Masami Hiramatsu <mhiramat@...>, Ingo Molnar <mingo@...>
Date: Sunday, January 27, 2008 - 5:08 am

Greetings,

Non kprobe breakpoints in the kernel might lie inside the .kprobes.text section. Such breakpoints can easily be identified by in_kprobes_functions and can be caught early. These are problematic and a warning should be emitted to discourage them (in any rare case, if they actually occur).

For this, a check can route the trap handling of such breakpoints away from kprobe_handler (which ends up calling even more functions marked as __kprobes) from inside kprobe_exceptions_notify.

All comments/suggestions are welcome.

--
Thanks & Regards,
Abhishek Sagar
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3][RFC] x86: Catch stray non-kprobe breakpoints, Abhishek Sagar, (Sun Jan 27, 5:08 am)
Re: [PATCH 0/3][RFC] x86: Catch stray non-kprobe breakpoints, Ananth N Mavinakayanahalli..., (Tue Jan 29, 2:02 am)
Re: [PATCH 0/3][RFC] x86: Catch stray non-kprobe breakpoints, Masami Hiramatsu, (Tue Jan 29, 11:13 am)
Re: [PATCH 0/3][RFC] x86: Catch stray non-kprobe breakpoints, Masami Hiramatsu, (Tue Jan 29, 3:29 pm)
Re: [PATCH 0/3][RFC] x86: Catch stray non-kprobe breakpoints, Ananth N Mavinakayanahalli..., (Wed Jan 30, 12:07 am)
Re: [PATCH 0/3][RFC] x86: Catch stray non-kprobe breakpoints, Ananth N Mavinakayanahalli..., (Tue Jan 29, 9:18 am)