]> Gentwo Git Trees - linux/.git/commit
bpftool: Add CET-aware symbol matching for x86_64 architectures
authorYuan Chen <chenyuan@kylinos.cn>
Fri, 29 Aug 2025 06:11:07 +0000 (07:11 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 2 Sep 2025 15:20:54 +0000 (17:20 +0200)
commit6417ca85305ecaffef13cf9063ac35da8fba8500
tree1a30a895a5db6d3498f0e810b84d74274c23fb20
parent70f32a10ad423fd19e22e71d05d0968e61316278
bpftool: Add CET-aware symbol matching for x86_64 architectures

Adjust symbol matching logic to account for Control-flow Enforcement
Technology (CET) on x86_64 systems. CET prefixes functions with
a 4-byte 'endbr' instruction, shifting the actual hook entry point to
symbol + 4.

Signed-off-by: Yuan Chen <chenyuan@kylinos.cn>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Quentin Monnet <qmo@kernel.org>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/bpf/20250829061107.23905-3-chenyuan_fl@163.com
tools/bpf/bpftool/link.c