Page MenuHomeFreeBSD

icmp: improve ICMP limit jitter
ClosedPublic

Authored by glebius on Mar 22 2024, 9:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 14 2024, 9:32 PM
Unknown Object (File)
May 14 2024, 9:31 PM
Unknown Object (File)
May 12 2024, 3:55 AM
Unknown Object (File)
May 12 2024, 3:46 AM
Unknown Object (File)
May 3 2024, 1:41 PM
Unknown Object (File)
Apr 27 2024, 4:01 PM
Unknown Object (File)
Apr 26 2024, 1:41 PM
Unknown Object (File)
Apr 25 2024, 4:23 PM
Subscribers

Details

Summary

Instead of fixing up invalid values set by a user in badport_bandlim()
which is a fast path function, provide a sysctl handler
sysctl_icmplim_and_jitter(), that will check that jitter is less than the
limit.

Provide jitter initilization function icmplim_new_jitter() used at boot,
in the sysctl handler and when we actually hit the limit. This also fixes
no jitter on a fresh booted system until first limit hit.

Instead of CVE number provide link the the actual paper that explains what
and why we are doing here. The CVE number isn't very informative, it will
just tell you what RedHat version you need to upgrade to.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable