]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
tun: clear virtioNetHdr when deleting item from tcpGROTable master
authorJordan Whited <jordan@tailscale.com>
Wed, 20 May 2026 22:43:17 +0000 (15:43 -0700)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 22 May 2026 21:04:24 +0000 (23:04 +0200)
commitecfc5a8d54462e18e13c72173e2623d16d8e25a0
treece98636488a400938546b2585ae581336d4d5425
parentf333402bd9cbe0f3eeb02507bd14e23d7d639280
tun: clear virtioNetHdr when deleting item from tcpGROTable

Otherwise the deleted packet gets written to the TUN fd with an invalid
virtioNetHdr.

Fixes: 9e2f386 ("conn, device, tun: implement vectorized I/O on Linux")
Signed-off-by: Jordan Whited <jordan@tailscale.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
tun/offload_linux.go
tun/offload_linux_test.go