diff options
author | Patrick Kelsey <pkelsey@FreeBSD.org> | 2017-02-03 17:02:57 +0000 |
---|---|---|
committer | Patrick Kelsey <pkelsey@FreeBSD.org> | 2017-02-03 17:02:57 +0000 |
commit | ec93ed8d95f047bd6cbaa7e0d71a8691980d53b5 (patch) | |
tree | 41445709d85b1ea91ab8c1e992be4552dde06d0c /sys/netinet/tcp_fastopen.c | |
parent | bfe9bdb06352bab235797f23ad88e2009ceed408 (diff) | |
download | src-ec93ed8d95f047bd6cbaa7e0d71a8691980d53b5.tar.gz src-ec93ed8d95f047bd6cbaa7e0d71a8691980d53b5.zip |
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 <alex dot deiter at gmail dot com>
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=313168
Diffstat (limited to 'sys/netinet/tcp_fastopen.c')
-rw-r--r-- | sys/netinet/tcp_fastopen.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |