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

[release-4.12] OCPBUGS-14304: fix possible concurrent map read/write #551

Commits on May 30, 2023

  1. fix possible concurrent map read/write

    there is a potential concurrent map read/write in handleAddOrUpdatePod()
    in pkg/network/node/networkpolicy.go
    
    handleAddOrUpdatePod() has to get the networkPolicyPlugin lock before
    calling isOnPodNetwork() because that can call getPodIP() which reads
    the localPodIPs map. If the lock is not grabbed there could be a
    concurrent read/write of the map
    
    this patch grabs the lock before calling isOnPodNetwork()
    JacobTanenbaum committed May 30, 2023
    Configuration menu
    Copy the full SHA
    efacf6d View commit details
    Browse the repository at this point in the history