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

Protect link->client_data.data with lock #2313

Merged
merged 4 commits into from
Apr 18, 2023

Conversation

Alan-Jowett
Copy link
Member

Resolves: #2312

Description

The function ebpf_link_get_info accesses link->client_data.data with out holding the lock, resulting in a race with ebpf_link_detach_program.

Testing

CI/CD + km stress

Documentation

No.

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
dv-msft
dv-msft previously approved these changes Apr 13, 2023
dthaler
dthaler previously approved these changes Apr 13, 2023
@dthaler dthaler added the bug Something isn't working label Apr 13, 2023
@dthaler dthaler added this pull request to the merge queue Apr 13, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Apr 13, 2023
@dthaler dthaler added this pull request to the merge queue Apr 13, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 13, 2023
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
@Alan-Jowett Alan-Jowett dismissed stale reviews from dthaler and dv-msft via ab0897b April 13, 2023 21:57
@Alan-Jowett Alan-Jowett enabled auto-merge April 14, 2023 16:07
@Alan-Jowett Alan-Jowett added this pull request to the merge queue Apr 17, 2023
Merged via the queue into microsoft:main with commit 0b0e528 Apr 18, 2023
@Alan-Jowett Alan-Jowett deleted the issue2312 branch April 18, 2023 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ebpf_link_get_info accesses attach_data without holding the lock
3 participants