Skip to content
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

Various fixes to the extension version logic. #3432

Merged
merged 4 commits into from
Apr 19, 2024

Conversation

shankarseal
Copy link
Collaborator

Description

This PR patches some more gaps in #3326 that was found by the regression tests introduced by #3421. Specifically, the previous PR did not take into account the array of ebpf_helper_function_prototype_t in ebpf_program_info_t. Processing program information from an older extension can cause crashes if the size of the individual array elements are not considered. The solution was to "normalize" input ebpf_program_data to the latest version with safe defaults before processing them.

Testing

CI/CD with kernel mode regression tests.

Documentation

No documentation impact.

Installation

No installer impact._

@shankarseal shankarseal changed the title various fixes. Various fixes to the extension version logic. Apr 5, 2024
@matthewige matthewige mentioned this pull request Apr 5, 2024
@shankarseal shankarseal force-pushed the extension_struct_version branch 2 times, most recently from f6af801 to 552bb47 Compare April 16, 2024 20:06
@shankarseal shankarseal marked this pull request as ready for review April 16, 2024 21:19
libs/execution_context/ebpf_program.c Outdated Show resolved Hide resolved
libs/execution_context/ebpf_program.c Outdated Show resolved Hide resolved
libs/execution_context/ebpf_program.c Outdated Show resolved Hide resolved
libs/shared/shared_common.c Outdated Show resolved Hide resolved
scripts/config_test_vm.psm1 Show resolved Hide resolved
libs/shared/shared_common.c Show resolved Hide resolved
libs/execution_context/ebpf_program.c Outdated Show resolved Hide resolved
fix one more leak.
s# Please enter the commit message for your changes. Lines starting
@shankarseal shankarseal added this pull request to the merge queue Apr 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 19, 2024
@shankarseal shankarseal added this pull request to the merge queue Apr 19, 2024
Merged via the queue into microsoft:main with commit 4b40f9f Apr 19, 2024
90 checks passed
@shankarseal shankarseal deleted the extension_struct_version branch April 19, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants