opnsense-src/sys
Kristof Provost a0c64a443e pf: ensure states passed to pf_free_state() are always unlinked
In pf_create_state() we can end up deleting the state immediately. This
can happen if we fail to map the relevant addresses or fail
normalization or fail to insert it into the state table.
If that happens we delete the state again with pf_free_state(). However,
this asserts that the state must be unlinked.

It's correct to simply set the state to PFTM_UNLINKED because we've not
yet linked it.

Submitted by:	Mateusz Guzik <mjg@FreeBSD.org>
Reviewed by:	scottl
MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D31752
2021-09-03 09:36:19 +02:00
..
amd64 vmd(4): Major driver refactoring 2021-09-02 20:58:02 -04:00
arm Revert "arm: Bump KSTACK_PAGES default to match i386/amd64" 2021-09-01 13:13:27 -07:00
arm64 qoriq_dw_pci: Fix typo in link status checking code 2021-08-31 06:22:33 +02:00
bsm Add fspacectl(2), vn_deallocate(9) and VOP_DEALLOCATE(9). 2021-08-05 23:20:42 +08:00
cam ses: Guard the elm_type_names declaration by _KERNEL 2021-09-02 14:47:18 -06:00
cddl Create sys/reg.h for the common code previously in machine/reg.h 2021-08-30 12:50:53 +01:00
compat syscalls.master: switch to CAPENABLED flags 2021-09-01 21:58:16 +01:00
conf vmd(4): Major driver refactoring 2021-09-02 20:58:02 -04:00
contrib zfs: merge openzfs/zfs@3b89d9518 (master) into main 2021-08-31 09:02:21 +02:00
crypto aesni: Avoid a potential out-of-bounds load in aes_encrypt_icm() 2021-08-30 14:22:20 -04:00
ddb Create sys/reg.h for the common code previously in machine/reg.h 2021-08-30 12:50:53 +01:00
dev Missed line from 7af4475a6e. 2021-09-02 22:25:16 -04:00
dts Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
fs unionfs: style 2021-09-01 07:55:37 -07:00
gdb gdb: report specific stop reason for watchpoints 2021-03-30 11:36:41 -03:00
geom graid: Avoid tasting devices with small sector sizes 2021-08-31 17:09:52 -04:00
gnu Remove the old dts imported tree. 2021-01-15 20:09:55 +01:00
i386 vmd(4): Major driver refactoring 2021-09-02 20:58:02 -04:00
isa newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
kern callout(9): Allow spin locks use with callout_init_mtx(). 2021-09-02 21:16:46 -04:00
kgssapi opencrypto: Introduce crypto_dispatch_async() 2021-02-08 09:19:19 -05:00
libkern libkern: remove bcopy 2021-08-24 11:24:07 +00:00
mips Create sys/reg.h for the common code previously in machine/reg.h 2021-08-30 12:50:53 +01:00
modules vmd(4): Major driver refactoring 2021-09-02 20:58:02 -04:00
net pf: Add counters for syncookies 2021-09-01 12:02:19 +02:00
net80211 Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
netgraph routing: Allow using IPv6 next-hops for IPv4 routes (RFC 5549). 2021-08-22 22:56:08 +00:00
netinet sctp: Always check for a vanishing inpcb when processing COOKIE-ECHO 2021-09-01 10:28:17 -04:00
netinet6 inet6(4): Fix a few common typos in source code comments 2021-08-28 18:53:59 +02:00
netipsec ipsec: fix race condition in key.c 2021-08-13 12:52:38 +02:00
netpfil pf: ensure states passed to pf_free_state() are always unlinked 2021-09-03 09:36:19 +02:00
netsmb netsmb: Avoid a read-after-free in smb_t2_request_int() 2021-05-26 10:45:40 -04:00
nfs Fix panic when using BOOTP to resolve root path. 2021-03-28 14:02:40 -05:00
nfsclient nfs: Cleanup dead files 2021-03-17 06:16:31 +11:00
nfsserver nfs: Cleanup dead files 2021-03-17 06:16:31 +11:00
nlm
ofed routing: Allow using IPv6 next-hops for IPv4 routes (RFC 5549). 2021-08-22 22:56:08 +00:00
opencrypto ktls: Support asynchronous dispatch of AEAD ciphers. 2021-08-30 13:11:52 -07:00
powerpc Create sys/reg.h for the common code previously in machine/reg.h 2021-08-30 12:50:53 +01:00
riscv sifive_spi: Add missing case for SPIBUS_MODE_NONE 2021-08-30 23:38:02 +01:00
rpc rpc: Make function tables const 2021-08-14 11:26:12 -04:00
security Add fspacectl(2), vn_deallocate(9) and VOP_DEALLOCATE(9). 2021-08-05 23:20:42 +08:00
sys ktls: Support asynchronous dispatch of AEAD ciphers. 2021-08-30 13:11:52 -07:00
teken loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
tests routing: add IPv6 fib validation procedure. 2021-08-16 23:04:01 +00:00
tools makesyscalls.lua: add a CAPENABLED flag 2021-09-01 21:58:06 +01:00
ufs ffs_update(): Do not assume that EBUSY can only come LK_NOWAIT trylock 2021-08-31 07:38:35 +03:00
vm vm: use __func__ for the correct function name 2021-08-22 17:43:12 +00:00
x86 Create sys/reg.h for the common code previously in machine/reg.h 2021-08-30 12:50:53 +01:00
xdr
xen xen: introduce xen_pv_disks_disabled() 2021-07-28 17:27:04 +02:00
Makefile