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

Use volatile write when writing to user buffer #4068

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

Alan-Jowett
Copy link
Member

Description

This pull request includes a change to the ebpf_program_get_info function in the libs/execution_context/ebpf_program.c file. The change ensures that the map_ids array is updated using a volatile user mode pointer to prevent potential issues with compiler optimizations.

  • libs/execution_context/ebpf_program.c: Modified the ebpf_program_get_info function to use WriteNoFence for updating the map_ids array, ensuring proper handling of volatile user mode pointers.

Testing

CI/CD

Documentation

No.

Installation

No.

mikeagun
mikeagun previously approved these changes Dec 3, 2024
@Alan-Jowett Alan-Jowett enabled auto-merge December 4, 2024 18:28
@Alan-Jowett Alan-Jowett added this pull request to the merge queue Dec 9, 2024
Merged via the queue into microsoft:main with commit 4290611 Dec 9, 2024
89 checks passed
@Alan-Jowett Alan-Jowett deleted the fix_volatile_write branch December 9, 2024 17:56
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.

3 participants