Re: [PATCH] kprobes: Warn if the kprobe is reregistered
From: Naveen N . Rao
Date: Thu Feb 04 2021 - 01:57:27 EST
On 2021/02/03 11:59PM, Masami Hiramatsu wrote:
> Warn if the kprobe is reregistered, since there must be
> a software bug (actively used resource must not be re-registered)
> and caller must be fixed.
>
> Signed-off-by: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
> ---
> kernel/kprobes.c | 13 ++++++++-----
> 1 file changed, 8 insertions(+), 5 deletions(-)
Suggested-by: Naveen N. Rao <naveen.n.rao@xxxxxxxxxxxxxxxxxx>
Acked-by: Naveen N. Rao <naveen.n.rao@xxxxxxxxxxxxxxxxxx>
Thanks,
Naveen