opnsense-src/tests/sys
Bojan Novković 65a7d0af51 bind(2): Lookup local address in current FIB if '*.bind_all_fibs' is active
When a protocol-specific 'bind_all_fibs' tunable is set to 0, a
listening socket will only receive traffic originating from the FIB
it was bound to. However, there are no checks to determine whether
an address exists in the target FIB when binding the socket, which can
lead to a situation where a socket and the address it was bound to
belong to different FIBs.

Prevent this footgun by looking up the requested address in the current
FIB if 'bind_all_fibs' is active and returning an error if the address
does not exist.

Sponsored by:	Stormshield
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D58281
Reviewed by:	glebius, pouria, markj
MFC after:	2 weeks

(cherry picked from commit 948ad32ae1e0811f45e1d38f26636fefed5051f0)
2026-09-14 07:30:53 +02:00
..
acl Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
aio aio(4) tests: do not rely on (int *)-1 being invalid address 2026-03-26 08:45:17 -06:00
audit Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
auditpipe Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
cam CTL: add ATF tests for REPORT SUPPORTED OPCODES 2026-04-30 11:24:06 -06:00
capsicum sigqueue: In capability mode, only allow signalling self 2026-06-09 02:59:42 +00:00
cddl zfsd: don't try to fix an OFFLINE condition 2025-08-04 10:00:52 -06:00
common tests: disable transmit checksum offloading for epair interfaces 2025-09-04 13:52:37 +02:00
compat32 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
devrandom Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
fifo Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
file closefrom_test: Convert to atf-c(3) 2025-12-18 13:42:23 -05:00
fs Revert "unionfs: Support renaming symbolic links" 2026-07-06 10:20:26 +02:00
geom tests: Increase timeout 2026-01-20 16:36:55 +00:00
kern unix: Fix some bugs in the SOCK_STREAM receive path 2026-08-26 10:16:44 +02:00
kqueue kqueue: Avoid enqueuing an already-enqueued knote 2026-08-11 07:43:51 +02:00
mac tests: Increase timeout 2026-01-20 16:36:55 +00:00
mqueue Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
net wg(4): Add a test that the driver handles a decryption failure 2026-08-11 07:43:58 +02:00
netgraph tests/netgraph: Add a test for races between if_detach() and vnet_if_return() 2026-04-30 17:52:02 +08:00
netinet bind(2): Lookup local address in current FIB if '*.bind_all_fibs' is active 2026-09-14 07:30:53 +02:00
netinet6 tests: Add some simple regression tests for ip_mroute 2026-09-14 07:26:27 +02:00
netipsec tests: fix test for NULL encription 2025-03-25 10:23:40 +03:00
netlink netlink: Move static arrays of parsers into tests that use them 2025-04-11 09:52:39 -04:00
netmap netmap: Disable a buggy and unsafe test (sync_kloop_conflict) 2025-03-06 13:22:25 -05:00
netpfil pfctl: fix printing of wildcard anchors 2026-09-11 09:40:55 +02:00
opencrypto Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
pjdfstest Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
posixshm posixshm: Fix handling of sendfile() with largepage objects 2026-07-06 10:29:39 +02:00
ses
sound sound: Fix software buffer lifetime issues 2026-06-09 02:59:34 +00:00
sys bitstring_test: fix bit_nclear/bit_nset tests for last iteration 2025-10-28 02:20:35 -07:00
vfs Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
vm device_pager: Avoid double-insertion of pages into the pager list 2026-07-06 10:29:21 +02:00
vmm vmm tests: Check for /dev/vmmctl to decide if vmm is initialized 2025-02-08 16:05:37 +00:00
Makefile ctl: add some ATF tests for READ BUFFER 2024-09-04 14:38:12 +00:00
Makefile.depend
Makefile.inc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00