summaryrefslogtreecommitdiffhomepage
path: root/pkg/cpuid
diff options
context:
space:
mode:
authorBhasker Hariharan <bhaskerh@google.com>2021-07-08 11:32:37 -0700
committergVisor bot <gvisor-bot@google.com>2021-07-08 11:35:18 -0700
commit1fc7a9eac2f27053ed4ca138c6568b14ef520648 (patch)
tree64b27d492dc851dafc97841eaace6159a4eae1a0 /pkg/cpuid
parent02fec8dba5a6148e44da2715e26246a5d91e64fa (diff)
Do not queue zero sized segments.
Commit 16b751b6c610ec2c5a913cb8a818e9239ee7da71 introduced a bug where writes of zero size would end up queueing a zero sized segment which will cause the sandbox to panic when trying to send a zero sized segment(e.g. after an RTO) as netstack asserts that the all non FIN segments have size > 0. This change adds the check for a zero sized payload back to avoid queueing such segments. The associated test panics without the fix and passes with it. PiperOrigin-RevId: 383677884
Diffstat (limited to 'pkg/cpuid')
0 files changed, 0 insertions, 0 deletions