google / gvisor

Application Kernel for Containers
https://gvisor.dev
Apache License 2.0
15.86k stars 1.3k forks source link

netstack: revert SND.NXT when purging the write queue #11206

Closed copybara-service[bot] closed 3 days ago

copybara-service[bot] commented 4 days ago

netstack: revert SND.NXT when purging the write queue

There are only 3 places we remove from the write queue. The other two are fairly self-contained and don't look suspicious. They are:

Given that the panic occurs when the write queue is empty and SND.NXT != SND.UNA, the bug likely occurs when either the writeList removes a segment or SND.NXT increments.