Re: [PATCH v7 2/2] bpftool: Add CET-aware symbol matching for x86_64 architectures

From: Yonghong Song
Date: Mon Aug 25 2025 - 16:40:04 EST




On 8/24/25 7:20 PM, chenyuan_fl@xxxxxxx wrote:
From: Yuan Chen <chenyuan@xxxxxxxxxx>

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@xxxxxxxxxx>

Acked-by: Yonghong Song <yonghong.song@xxxxxxxxx>