]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bpf: Handle return value of ftrace_set_filter_ip in register_fentry
authorMenglong Dong <menglong8.dong@gmail.com>
Mon, 10 Nov 2025 12:07:05 +0000 (20:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:01 +0000 (14:03 +0100)
commit7547576c6209f510550ddcd342b6c52c85e1a612
treed67d9614914632e000aea8a5c97c8b36f05f377d
parent4a9b0581757a97ed70805bd01b3c254890020be6
bpf: Handle return value of ftrace_set_filter_ip in register_fentry

[ Upstream commit fea3f5e83c5cd80a76d97343023a2f2e6bd862bf ]

The error that returned by ftrace_set_filter_ip() in register_fentry() is
not handled properly. Just fix it.

Fixes: 00963a2e75a8 ("bpf: Support bpf_trampoline on functions with IPMODIFY (e.g. livepatch)")
Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Acked-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20251110120705.1553694-1-dongml2@chinatelecom.cn
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/bpf/trampoline.c