Ze Gao 2752741080 fprobe: add recursion detection in fprobe_exit_handler
fprobe_hander and fprobe_kprobe_handler has guarded ftrace recursion
detection but fprobe_exit_handler has not, which possibly introduce
recursive calls if the fprobe exit callback calls any traceable
functions. Checking in fprobe_hander or fprobe_kprobe_handler
is not enough and misses this case.

So add recursion free guard the same way as fprobe_hander. Since
ftrace recursion check does not employ ip(s), so here use entry_ip and
entry_parent_ip the same as fprobe_handler.

Link: https://lore.kernel.org/all/20230517034510.15639-4-zegao@tencent.com/

Fixes: 5b0ab78998e3 ("fprobe: Add exit_handler support")
Signed-off-by: Ze Gao <zegao@tencent.com>
Cc: stable@vger.kernel.org
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
2023-05-18 07:08:01 +09:00
..
2023-04-28 16:11:26 -07:00
2023-04-28 15:57:53 -07:00
2022-06-03 14:05:34 -07:00
2023-05-05 13:11:02 -07:00
2023-03-29 06:52:09 -04:00
2023-04-28 15:57:53 -07:00
2021-06-25 19:57:24 -04:00
2023-02-23 10:20:49 -08:00
2023-04-24 12:16:14 -07:00
2023-05-05 13:11:02 -07:00