public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Implement a limit on on the number of IPv6 reassembly
@ 2018-08-24 13:11 Sebastian Huber
  0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2018-08-24 13:11 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=823b09647103311555076967369cbc4db70c007a

commit 823b09647103311555076967369cbc4db70c007a
Author: jtl <jtl@FreeBSD.org>
Date:   Tue Aug 14 17:27:41 2018 +0000

    Implement a limit on on the number of IPv6 reassembly
    
    queues per bucket.
    
    There is a hashing algorithm which should distribute IPv6 reassembly
    queues across the available buckets in a relatively even way. However,
    if there is a flaw in the hashing algorithm which allows a large number
    of IPv6 fragment reassembly queues to end up in a single bucket, a per-
    bucket limit could help mitigate the performance impact of this flaw.
    
    Implement such a limit, with a default of twice the maximum number of
    reassembly queues divided by the number of buckets. Recalculate the
    limit any time the maximum number of reassembly queues changes.
    However, allow the user to override the value using a sysctl
    (net.inet6.ip6.maxfragbucketsize).
    
    Reviewed by:	jhb
    Security:	FreeBSD-SA-18:10.ip
    Security:	CVE-2018-6923

Diff:
---
 newlib/libc/sys/rtems/include/netinet6/in6.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/newlib/libc/sys/rtems/include/netinet6/in6.h b/newlib/libc/sys/rtems/include/netinet6/in6.h
index 235c990..00783e5 100644
--- a/newlib/libc/sys/rtems/include/netinet6/in6.h
+++ b/newlib/libc/sys/rtems/include/netinet6/in6.h
@@ -643,7 +643,8 @@ struct ip6_mtuinfo {
 #define	IPV6CTL_INTRDQMAXLEN	52	/* max length of direct IPv6 netisr
 					 * queue */
 #define	IPV6CTL_MAXFRAGSPERPACKET	53 /* Max fragments per packet */
-#define	IPV6CTL_MAXID		54
+#define	IPV6CTL_MAXFRAGBUCKETSIZE	54 /* Max reassembly queues per bucket */
+#define	IPV6CTL_MAXID		55
 #endif /* __BSD_VISIBLE */
 
 /*


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-24 13:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-24 13:11 [newlib-cygwin] Implement a limit on on the number of IPv6 reassembly Sebastian Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).