chore(ebpf): check for CONFIG_X86_FRED#4713
Merged
geyslan merged 2 commits intoaquasecurity:mainfrom Aug 31, 2025
Merged
Conversation
There was a problem hiding this comment.
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
Comments suppressed due to low confidence (1)
pkg/ebpf/c/vmlinux_flavors.h:111
- [nitpick] The structure name 'fred_info___check' uses triple underscores, which can be confusing. Consider renaming it to 'fred_info_check' for improved clarity.
struct fred_info___check {
Member
Author
|
@yanivagman some thoughts? |
Collaborator
|
Does this PR solve some concrete bug we know about? |
Member
Author
|
None found so far, it's just a proactive change. |
If in a kernel lacking bpf_task_pt_regs() but somehow with CONFIG_X86_FRED suppport, calculate pt_regs considering FRED extra padding.
This reflects pt_regs struct in kernel 6.15.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1. Explain what the PR does
5ff4388 chore(ebpf): update pt_regs struct
a568a5e chore(ebpf): check for CONFIG_X86_FRED
2. Explain how to test it
3. Other comments
https://lore.kernel.org/all/[email protected]/