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 Use the new VNET_DEFINE_STATIC macro when we are defining static VNET 2018-07-24 16:35:52 +00:00
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 Extended pf(4) ioctl interface and pfctl(8) to allow bandwidths of 2018-08-22 19:38:48 +00:00
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: Fix endless loop on NAT exhaustion with sticky-address 2018-12-12 20:15:06 +00:00
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 netpfil: Introduce PFIL_FWD flag 2018-03-23 16:56:44 +00:00