Skip to content
Commit c46d3efb authored by Ze Gao's avatar Ze Gao Committed by Greg Kroah-Hartman
Browse files

rethook: use preempt_{disable, enable}_notrace in rethook_trampoline_handler

commit be243bac upstream.

This patch replaces preempt_{disable, enable} with its corresponding
notrace version in rethook_trampoline_handler so no worries about stack
recursion or overflow introduced by preempt_count_{add, sub} under
fprobe + rethook context.

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

Fixes: 54ecbe6f

 ("rethook: Add a generic return hook")
Signed-off-by: default avatarZe Gao <zegao@tencent.com>
Acked-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4e38a02b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment