diff options
author | Adin Scannell <ascannell@google.com> | 2018-08-08 21:27:58 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-08-08 21:29:19 -0700 |
commit | dbbe9ec91541dba387f8044cbf73fd29f604f902 (patch) | |
tree | 55a2c580a849fe41d8d83bc8c0dc773f28d4cfdb /pkg/tcpip/stack/registration.go | |
parent | 2a44362c0b99c6ab800e1b0d26e4f368a5e7f9f1 (diff) |
Protect PCIDs with a mutex.
Because the Drop method may be called across vCPUs, it is necessary to protect
the PCID database with a mutex to prevent concurrent modification. The PCID is
assigned prior to entersyscall, so it's safe to block.
PiperOrigin-RevId: 207992864
Change-Id: I8b36d55106981f51e30dcf03e12886330bb79d67
Diffstat (limited to 'pkg/tcpip/stack/registration.go')
0 files changed, 0 insertions, 0 deletions