]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Oct 2023 10:03:12 +0000 (12:03 +0200)
commitdf2cc87f2c38eba1e0cf4607f8a29513c0a41aa3
treed690addd02f8a58db69ae45811e476f25d35f76a
parentf177a579d2e870fa32aceaf13a0e1c540de2f9e2
fprobe: Fix to ensure the number of active retprobes is not zero

[ Upstream commit 700b2b439766e8aab8a7174991198497345bd411 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/trace/fprobe.c