Bug 242045 - pf can't be unloaded if pflog loaded.
Summary: pf can't be unloaded if pflog loaded.
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.1-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-pf (Nobody)
Depends on:
Reported: 2019-11-18 03:42 UTC by sasamotikomi
Modified: 2019-11-18 16:07 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description sasamotikomi 2019-11-18 03:42:49 UTC
But unloading pflog unload pf as well.
But they shouldn't be dependence, pf should work even if pflog hang or crash (but obliviously disabling logging and wait until it available and report about it)
Pflog as well should report about pf crash or hang.
Comment 1 Kristof Provost freebsd_committer 2019-11-18 16:07:15 UTC
pflog depends on pf. It's not possible to load pflog unless pf is loaded (or more accurately, "kldload pflog" will implicitly load pf as well). That also implies that you cannot unload pf itself until pflog is unloaded. That's entirely expected.

There's no scenario where pflog can crash without taking the entire kernel down.