]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Lower the default limits on the IPv6 reassembly queue.
authorjtl <jtl@FreeBSD.org>
Tue, 14 Aug 2018 17:32:07 +0000 (17:32 +0000)
committerjtl <jtl@FreeBSD.org>
Tue, 14 Aug 2018 17:32:07 +0000 (17:32 +0000)
commitbd4f87b859718952548c9191f7a9178295c5b6ba
tree31fe1213a3b6d6234f58e07ae7fc295e32ee23b9
parent25dd68b7372d444f568c788aeb87acaa13d46259
Lower the default limits on the IPv6 reassembly queue.

Currently, the limits are quite high. On machines with millions of
mbuf clusters, the reassembly queue limits can also run into
the millions. Lower these values.

Also, try to ensure that no bucket will have a reassembly
queue larger than approximately 100 items. This limits the cost to
find the correct reassembly queue when processing an incoming
fragment.

Due to the low limits on each bucket's length, increase the size of
the hash table from 64 to 1024.

Reviewed by: jhb
Security: FreeBSD-SA-18:10.ip
Security: CVE-2018-6923
sys/netinet6/frag6.c