summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl/ext
diff options
context:
space:
mode:
authorIan Gudger <igudger@google.com>2020-03-03 13:40:59 -0800
committergVisor bot <gvisor-bot@google.com>2020-03-03 13:42:13 -0800
commitc15b8515eb4a07699e5f2401f0332286f0a51043 (patch)
tree88ddd70d54388e3b1947b87490f45846f3fdf656 /pkg/sentry/fsimpl/ext
parentb3c549d8391e7cadd82a5ab9280bc63bb372aa97 (diff)
Fix datarace on TransportEndpointInfo.ID and clean up semantics.
Ensures that all access to TransportEndpointInfo.ID is either: * In a function ending in a Locked suffix. * While holding the appropriate mutex. This primary affects the checkV4Mapped method on affected endpoints, which has been renamed to checkV4MappedLocked. Also document the method and change its argument to be a value instead of a pointer which had caused some awkwardness. This race was possible in the udp and icmp endpoints between Connect and uses of TransportEndpointInfo.ID including in both itself and Bind. The tcp endpoint did not suffer from this bug, but benefited from better documentation. Updates #357 PiperOrigin-RevId: 298682913
Diffstat (limited to 'pkg/sentry/fsimpl/ext')
0 files changed, 0 insertions, 0 deletions