freebsd-dev/sys/netpfil/pf
Kristof Provost 52b83a0618 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
2020-10-13 11:04:00 +00:00
..
if_pflog.c
if_pfsync.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
in4_cksum.c
pf_altq.h
pf_if.c pf: do not remove kifs that are referenced by rules 2020-10-13 11:04:00 +00:00
pf_ioctl.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
pf_lb.c
pf_mtag.h
pf_norm.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
pf_osfp.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
pf_ruleset.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
pf_table.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
pf.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
pf.h