[Bug 254478] Panic when using ipfw and divert sockets
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 11 Jul 2021 12:55:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254478
--- Comment #12 from karl@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@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
@@ -1769,7 +1769,8 @@ 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.