tailscale/wgengine/netstack
James Tucker c628132b34 wgengine/netstack: do not send packets to netstack after close
Use the local context on Impl to check for shut down state in order to
drop rather than inject packets after close has begun.

Netstack sets endpoint.dispatcher to nil during shutdown. After the
recent adjustment in 920ec69241 we now
wait for netstack to fully shutdown before we release tests. This means
that we may continue to accept packets and attempt to inject them, which
we must prevent in order to avoid nil pointer panic.

References google/gvisor#8765
Fixes #7715

Signed-off-by: James Tucker <james@tailscale.com>
2023-03-28 19:55:45 -07:00
..
netstack_linux.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
netstack_test.go all: pass log IDs as the proper type rather than strings 2023-03-23 11:26:55 -07:00
netstack.go wgengine/netstack: do not send packets to netstack after close 2023-03-28 19:55:45 -07:00
subnet_router_wrapper.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00