From ec93ed8d95f047bd6cbaa7e0d71a8691980d53b5 Mon Sep 17 00:00:00 2001 From: Patrick Kelsey Date: Fri, 3 Feb 2017 17:02:57 +0000 Subject: Fix VIMAGE-related bugs in TFO. The autokey callout vnet context was not being initialized, and the per-vnet fastopen context was only being initialized for the default vnet. PR: 216613 Reported by: Alex Deiter MFC after: 1 week --- sys/netinet/tcp_fastopen.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/netinet/tcp_fastopen.c') diff --git a/sys/netinet/tcp_fastopen.c b/sys/netinet/tcp_fastopen.c index e2b3b8637f60..561f127c0765 100644 --- a/sys/netinet/tcp_fastopen.c +++ b/sys/netinet/tcp_fastopen.c @@ -209,6 +209,7 @@ tcp_fastopen_init(void) rm_init(&V_tcp_fastopen_keylock, "tfo_keylock"); callout_init_rm(&V_tcp_fastopen_autokey_ctx.c, &V_tcp_fastopen_keylock, 0); + V_tcp_fastopen_autokey_ctx.v = curvnet; V_tcp_fastopen_keys.newest = TCP_FASTOPEN_MAX_KEYS - 1; } -- cgit v1.2.3