Hello HardenedBSD folks,
on two HardenedBSD VMs of mine, which are constantly under high network load, I am currently observing
frequent hiccups, when HBSD decides to dump its kernel onto disk.
Not being an expert on BSD kernel debugging/troubleshooting at all, the "Panic Strings" left in the
/var/crashes/info.* files look like this has something to do with pf in general or connection tracking
in particular - two other HBSD VMs handling significantly less traffic and connections are running stable.
root@x:/var/crash # cat info.1 info.last
Dump header from device: /dev/da0s1b
Architecture: amd64
Architecture Version: 2
Dump Length: 302120960
Blocksize: 512
Compression: none
Dumptime: 2021-08-05 18:05:28 +0200
Hostname: x
Magic: FreeBSD Kernel Dump
Version String: FreeBSD 13.0-STABLE-HBSD #0 : Wed Jul 28 20:30:12 UTC 2021
ro...@ci-12.md.hardenedbsd.lan:/usr/obj/usr/src/amd64.amd64/sys/HARDENEDBSD
Panic String: pf_free_state: timeout 0 <<<<<
Dump Parity: 1024873034
Bounds: 1
Dump Status: good
Dump header from device: /dev/da0s1b
Architecture: amd64
Architecture Version: 2
Dump Length: 259280896
Blocksize: 512
Compression: none
Dumptime: 2021-08-06 11:35:13 +0200
Hostname: x
Magic: FreeBSD Kernel Dump
Version String: FreeBSD 13.0-STABLE-HBSD #0 : Wed Jul 28 20:30:12 UTC 2021
ro...@ci-12.md.hardenedbsd.lan:/usr/obj/usr/src/amd64.amd64/sys/HARDENEDBSD
Panic String: tcp_hostcache: bucket length too high at 51: 30 <<<<<
Dump Parity: 1299402335
Bounds: 4
Dump Status: good
The latter leads to
https://cgit.freebsd.org/src/commit/?id=d554522f6e687a365ebe935010298024fa2c1c9d, but
kind of leaves me unsure on what to do about it. Due to the massive amount of connections, I increased
pf's default by setting
> set limit states 1000000
in /etc/pf.conf (this was especially necessary for UDP). My first, uneducated guess would be to comment
out this directive, risking dropped connections but getting a stable system on the other hand.
Am I overlooking something? Is somebody else experiencing this on recent HBSD versions?
Thanks in advance,
Tobias