-
Notifications
You must be signed in to change notification settings - Fork 5
bpftool: Refactor config parsing and add CET symbol matching #5810
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
bpftool: Refactor config parsing and add CET symbol matching #5810
Conversation
|
Upstream branch: 4223bf8 |
|
Upstream branch: 4223bf8 |
fc1ba2a to
c072abc
Compare
|
Upstream branch: 4223bf8 |
c072abc to
4a72a49
Compare
07f2c0d to
3a9c841
Compare
|
Upstream branch: f4c227c |
4a72a49 to
6ff70c8
Compare
3a9c841 to
f4881a6
Compare
|
Upstream branch: d0f27ff |
6ff70c8 to
b8aeb48
Compare
f4881a6 to
8f9c214
Compare
|
Upstream branch: 2465bb8 |
b8aeb48 to
3b957d5
Compare
8f9c214 to
c9c941d
Compare
|
Upstream branch: 2660b9d |
3b957d5 to
9fbc0ab
Compare
c9c941d to
c640618
Compare
|
Upstream branch: d3abefe |
9fbc0ab to
4c14b7d
Compare
c640618 to
721f1da
Compare
|
Upstream branch: 4c229f3 |
4c14b7d to
9097183
Compare
721f1da to
c2e9835
Compare
|
Upstream branch: bd27626 |
9097183 to
bf2f63b
Compare
c2e9835 to
83124e1
Compare
|
Upstream branch: 737433c |
bf2f63b to
84fc373
Compare
83124e1 to
27199db
Compare
|
Upstream branch: 98857d1 |
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]> Acked-by: Yonghong Song <[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]> Acked-by: Yonghong Song <[email protected]>
84fc373 to
7d14eb0
Compare
Pull request for series with
subject: bpftool: Refactor config parsing and add CET symbol matching
version: 7
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=995010