Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Jul 2021 07:12:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        ipfw@FreeBSD.org
Subject:   [Bug 192888] ipfw NAT vulnerable to simple DOS attacks
Message-ID:  <bug-192888-8303-mpevsofROn@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-192888-8303@https.bugs.freebsd.org/bugzilla/>
References:  <bug-192888-8303@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D192888

--- Comment #10 from commit-hook@FreeBSD.org ---
A commit in branch stable/12 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3D1883127de4888b2a30a6cb51e8fb4bdf3=
3b7f411

commit 1883127de4888b2a30a6cb51e8fb4bdf33b7f411
Author:     Lutz Donnerhacke <donner@FreeBSD.org>
AuthorDate: 2021-05-27 21:42:54 +0000
Commit:     Lutz Donnerhacke <donner@FreeBSD.org>
CommitDate: 2021-07-06 07:10:02 +0000

    libalias: Switch to SPLAY trees

    Current data structure is using a hash of unordered lists.  Those
    unordered lists are quite efficient, because the least recently
    inserted entries are most likely to be used again.  In order to avoid
    long search times in other cases, the lists are hashed into many
    buckets.  Unfortunatly a search for a miss needs an exhaustive
    inspection and a careful definition of the hash.

    Splay trees offer a similar feature - almost O(1) for access of the
    least recently used entries), and amortized O(ln(n) - for almost all
    other cases.  Get rid of the hash.

    Now the data structure should able to quickly react to external
    packets without eating CPU cycles for breakfast, preventing a DoS.

    PR:             192888
    Discussed with: Dimitry Luhtionov
    Differential Revision: https://reviews.freebsd.org/D30516
    Differential Revision: https://reviews.freebsd.org/D30536
    Differential Revision: https://reviews.freebsd.org/D30844

    (cherry picked from commit 935fc93af157dee352eb4b6c83f8a2a9e7fd9a4e)
    (cherry picked from commit d261e57deacb0d00d9e827447f235df83dda3e3a)
    (cherry picked from commit f70c98a2f5d993dc518efd606aa341eda99400ef)
    (cherry picked from commit 25392fac9488bcae5c451500df2e2945430484a6)
    (cherry picked from commit 2f4d91f9cb22fc65eb65407e8118b433a5d71976)
    (cherry picked from commit 4060e77f49d1b9fd2254f3f4da94fd64fce83f72)

 sys/netinet/libalias/HISTORY          |   3 +-
 sys/netinet/libalias/alias_db.c       | 502 +++---------------------------=
----
 sys/netinet/libalias/alias_db.h (new) | 443 ++++++++++++++++++++++++++++++
 sys/netinet/libalias/alias_local.h    |  10 +-
 4 files changed, 489 insertions(+), 469 deletions(-)

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192888-8303-mpevsofROn>