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

btf: fix race in mutableTypes.copy #1358

Merged
merged 1 commit into from
Feb 22, 2024
Merged

btf: fix race in mutableTypes.copy #1358

merged 1 commit into from
Feb 22, 2024

Commits on Feb 22, 2024

  1. btf: fix race in mutableTypes.copy

    We reference mt.copiedTypeIDs during copy to be able to figure out
    the correct ID for a copied type. This access can currently race
    with mutableTypes.add since we don't protect mt.copiedTypeIDs.
    
    Take a read lock to prevent modification.
    
    Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
    lmb committed Feb 22, 2024
    Configuration menu
    Copy the full SHA
    6d63eea View commit details
    Browse the repository at this point in the history