mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Remove racy access to shm fields.
PiperOrigin-RevId: 239016776 Change-Id: Ia7af4258e7c69b16a4630a6f3278aa8e6b627746
This commit is contained in:
@@ -286,7 +286,7 @@ func (r *Registry) remove(s *Shm) {
|
||||
defer s.mu.Unlock()
|
||||
|
||||
if s.key != linux.IPC_PRIVATE {
|
||||
panic(fmt.Sprintf("Attempted to remove shm segment %+v from the registry whose key is still associated", s))
|
||||
panic(fmt.Sprintf("Attempted to remove shm segment %d (key=%d) from the registry whose key is still associated", s.ID, s.key))
|
||||
}
|
||||
|
||||
delete(r.shms, s.ID)
|
||||
|
||||
Reference in New Issue
Block a user