lkml.org 
[lkml]   [2017]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [BUGFIX PATCH] kprobes/x86: Remove IRQ disabling from jprobe handlers

* Masami Hiramatsu <mhiramat@kernel.org> wrote:

> Hmm, actually we can not disable jprobe, that has no separate Kconfig.
> So we need to introduce new kconfig for that.
>
> And, there are several network protocols using jprobe to trace events.
> (e.g. NET_DCCPPROBE and NET_TCPPROBE)
> I think they need to migrate to trace-event at first.
>
> So, how about below idea?
>
> 1. Introduce CONFIG_JPROBE_API which only separate jprobe general parts
> (no arch dependent code involves) and make it default n.
> 2. Mark break_handler and jprobe APIs deprecated so that no new user comes up.
> 3. migrate in-kernel jprobe user to trace-event or ftrace.
> (may take some time)

So my suggestion would be to just return from register_jprobe() and don't register
anything. Yes, there are usecases of jprobes in the kernel, but they all look
pretty ancient and unused.

So let's try this for -next and see whether anyone has a real usecase. And no
Kconfig and deprecation messages - those don't really work in practice - just
disable the functionality and force people to (trivially) modify the source if
they want to re-enable it.

If this is fine for a single release then we can just remove it all:

> 4. after that, we can completely remove jprobe which will be a series for
> all archs. (or just one big patch?)

we want a series of patches - but that's for later.

Thanks,

Ingo

\
 
 \ /
  Last update: 2017-10-04 12:41    [W:0.114 / U:5.004 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site