fprobe: Fix to ensure the number of active retprobes is not zero
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Mon, 16 Oct 2023 23:49:45 +0000 (08:49 +0900)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Tue, 17 Oct 2023 01:22:42 +0000 (10:22 +0900)
commit700b2b439766e8aab8a7174991198497345bd411
treef0fef220a2388ccfad7842063cb34fd50dfdce1d
parent2a86ac30a6687e47436e547deadae3bf0fc28697
fprobe: Fix to ensure the number of active retprobes is not zero

The number of active retprobes can be zero but it is not acceptable,
so return EINVAL error if detected.

Link: https://lore.kernel.org/all/169750018550.186853.11198884812017796410.stgit@devnote2/
Reported-by: wuqiang.matt <wuqiang.matt@bytedance.com>
Closes: https://lore.kernel.org/all/20231016222103.cb9f426edc60220eabd8aa6a@kernel.org/
Fixes: 5b0ab78998e3 ("fprobe: Add exit_handler support")
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
kernel/trace/fprobe.c