HomeFreeBSD

pf: Fix panic on unload

Description

pf: Fix panic on unload

vnet_pf_uninit() is called through vnet_deregister_sysuninit() and
linker_file_unload() when the pf module is unloaded. This is executed
after pf_unload() so we end up trying to take locks which have been
destroyed already.

Move pf_unload() to a separate SYSUNINIT() to ensure it's called after
all the vnet_pf_uninit() calls.

Differential Revision: https://reviews.freebsd.org/D10025

Details

Provenance
kpAuthored on
Differential Revision
D10025: pf: Fix panic on unload
Parents
rS317772: Add myself (wulf) as a src committer with gonzo and bapt as my mentors.
Branches
Unknown
Tags
Unknown