kernel - Zero out syncache_percpu properly
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 22 Oct 2017 00:31:43 +0000 (17:31 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 22 Oct 2017 00:31:43 +0000 (17:31 -0700)
commit3a4ff7dac479af6b7970814288508fc876a607a5
tree600835c9add63314ef935f68dd209b467eaf17ce
parent93e6055a004354cb886749081ab816dae7ce5d62
kernel - Zero out syncache_percpu properly

* The kmalloc for the syncache_percpu was not using M_ZERO
  which I believe can cause cache_count to be some random
  value.  If this value is close to or larger than the syncache
  limit, the garbage collector may run with no entries to reuse,
  causing a NULL pointer dereference and panic.

Reported-by: pa3k #3088
sys/netinet/tcp_syncache.c