[Bug 254478] Panic when using ipfw and divert sockets

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 11 Jul 2021 12:55:25 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254478

--- Comment #12 from karl_at_denninger.net ---
(In reply to Jack from comment #11)

Same bug. 

Hotfix here will stop it (note this is 12.2-STABLE, may be slightly different
offsets in 13+); I have roughly a day on it now with no panic and previously it
was blowing up within minutes:

[karl_at_NewFS /usr/src]$ git diff .
diff --git a/sys/netinet/libalias/alias_db.c b/sys/netinet/libalias/alias_db.c
index 783a8ca3baa..45faf5a2a40 100644
--- a/sys/netinet/libalias/alias_db.c
+++ b/sys/netinet/libalias/alias_db.c
_at__at_ -1769,7 +1769,8 _at__at_ HouseKeeping(struct libalias *la)
         * Reduce the amount of house keeping work substantially by
         * sampling over the packets.
         */
-       if (packets % packet_limit == 0) {
+       if (packet_limit == 0 || packets % packet_limit == 0) {
+/*     if (packets % packet_limit == 0) {      */
                time_t now;

 #ifdef _KERNEL

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
Received on Sun Jul 11 2021 - 12:55:25 UTC

Original text of this message