HomeFreeBSD

pf: do not remove kifs that are referenced by rules

Description

pf: do not remove kifs that are referenced by rules

Even if a kif doesn't have an ifp or if_group pointer we still can't delete it
if it's referenced by a rule. In other words: we must check rulerefs as well.

While we're here also teach pfi_kif_unref() not to remove kifs with flags.

Reported-by: syzbot+b31d1d7e12c5d4d42f28@syzkaller.appspotmail.com
MFC after: 2 weeks

Details

Provenance
kpAuthored on
Parents
rS366666: Bump __FreeBSD_version for the fix to arm64 write-only mappings
Branches
Unknown
Tags
Unknown