git: kernel - Zero out syncache_percpu properly

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Oct 21 17:32:59 PDT 2017


commit 3a4ff7dac479af6b7970814288508fc876a607a5
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Oct 21 17:31:43 2017 -0700

    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

Summary of changes:
 sys/netinet/tcp_syncache.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3a4ff7dac479af6b7970814288508fc876a607a5


-- 
DragonFly BSD source repository



More information about the Commits mailing list