-
Notifications
You must be signed in to change notification settings - Fork 6
bpftool: Refactor config parsing and add CET symbol matching #5753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: bpf-next_base
Are you sure you want to change the base?
bpftool: Refactor config parsing and add CET symbol matching #5753
Conversation
Upstream branch: 0786654 |
5e1a4c1
to
91606c1
Compare
Upstream branch: dc0fe95 |
0ae9d7f
to
bdd3a46
Compare
91606c1
to
9e5d665
Compare
Upstream branch: c80d797 |
bdd3a46
to
197e776
Compare
9e5d665
to
f86fd37
Compare
Upstream branch: abdaf49 |
197e776
to
8ce1ac7
Compare
f86fd37
to
2842450
Compare
Extract the kernel configuration file parsing logic from feature.c into a new read_kernel_config() function in common.c. This includes: 1. Moving the config file handling and option parsing code 2. Adding required headers and struct definition 3. Keeping all existing functionality The refactoring enables sharing this logic with other components while maintaining current behavior. This will be used by subsequent patches that need to check kernel config options. Signed-off-by: Yuan Chen <[email protected]>
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 <[email protected]>
Upstream branch: 3ec8560 |
8ce1ac7
to
d295503
Compare
Pull request for series with
subject: bpftool: Refactor config parsing and add CET symbol matching
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=991766