mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
65783256ca
`notifier.addFD()` was simply updating the FD map, assuming that the queue is new and has no events registered. However, this assumption may not hold for some callers of fdnotifier.AddFD(), notably transport.connectionedEndpoint.SetBoundSocketFD(). This situation can arise if the application does socket(2) -> epoll_ctl(EPOLL_CTL_ADD) -> bind(2). This change gets rid of the said assumption. Fixes #9848 PiperOrigin-RevId: 595171718