tailscale/wgengine
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
..
bench all: update copyright and license headers 2023-01-27 15:36:29 -08:00
capture wgengine: start logging DISCO frames to pcap stream 2023-02-10 11:22:34 -10:00
filter all: use tstest.Replace more 2023-03-04 12:24:55 -08:00
magicsock go.mod, net/tstun, wgengine/magicsock: update wireguard-go (#7712) 2023-03-28 15:37:11 -07:00
monitor net/sockstats: remove explicit dependency on wgengine/monitor 2023-03-03 08:37:14 -08:00
netlog all: replace logtail.{Public,Private}ID with logid.{Public,Private}ID (#7404) 2023-02-28 19:00:00 -08:00
netstack wgengine/netstack: do not send packets to netstack after close 2023-03-28 19:55:45 -07:00
router version/distro,wgengine/router: raise WSL eth0 MTU when too low 2023-03-02 21:33:02 -08:00
wgcfg all: replace logtail.{Public,Private}ID with logid.{Public,Private}ID (#7404) 2023-02-28 19:00:00 -08:00
wgint all: update copyright and license headers 2023-01-27 15:36:29 -08:00
wglog all: update copyright and license headers 2023-01-27 15:36:29 -08:00
winnet all: update copyright and license headers 2023-01-27 15:36:29 -08:00
mem_ios.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
pendopen.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
userspace_ext_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
userspace_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
userspace.go net/tstun: add inital support for NAT v4 2023-03-23 16:54:12 -07:00
watchdog_js.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
watchdog_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
watchdog.go wgengine: start logging DISCO frames to pcap stream 2023-02-10 11:22:34 -10:00
wgengine.go wgengine: start logging DISCO frames to pcap stream 2023-02-10 11:22:34 -10:00