opnsense-src/tests/sys
Kristof Provost e9ca883b12 netinet6: Don't return non-IPv6 enabled interfaces from in6_getlinkifnet()
There are scenarios where we can end up looking up an interface by its scope and
turn up an interface that doesn't have IPv6 enabled on it. If that happens we
could end up dereferencing a NULL pointer accessing ifp->if_afdata[AF_INET6].
Check for this.

One such scenario is if a firewall rewrites a destination address to a
link-local address, with an embedded scope for such an interface. Attach a test
case which provokes this.

PR:		288263
Reported by:	Robert Morris <rtm@lcs.mit.edu>
Reviewed by:	zlei
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D51500
2025-07-29 15:13:10 +02:00
..
acl Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
aio aio_kqueue_test: Fix CID 1558429 2025-01-09 08:42:36 -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: delete dead code in the tests 2025-07-22 16:55:40 -06:00
capsicum capsicum tests: Serialize functional tests 2024-09-04 14:28:28 +00:00
cddl Fix the zfsd_fault_001_pos test 2025-05-02 08:48:58 -06:00
common vnet tests: verify that we can load if_epair and if_bridge 2024-07-23 15:57:25 +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 tests: Adapt existing tests for O_CLOEXEC to O_CLOFORK 2025-07-06 23:08:46 +00:00
fs fusefs: report that all tests require the fusefs kernel module 2025-07-22 16:32:39 -06:00
geom ggate tests: Use unique ports among tests 2024-09-04 14:28:28 +00:00
kern uexterr_gettext: add tests 2025-07-15 14:43:52 -06:00
kqueue tests/kqueue: repair flaky test 2025-06-24 15:29:03 -07:00
mac tests/mac_portacl: enable is_exclusive for now 2025-07-26 04:55:01 +08:00
mqueue Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
net bridge: do not allow a bridge SVI in a bridge 2025-07-28 18:38:02 +01:00
netgraph ng_ksocket: Add tests for IPv6 2025-06-25 12:12:11 +02:00
netinet fibs_test: Mark same_ip_multiple_ifaces_fib0 as expected to fail 2025-06-26 21:27:57 +00:00
netinet6 netinet6: allow binding a raw socket to an anycast address 2025-07-15 06:12:45 +01: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 netinet6: Don't return non-IPv6 enabled interfaces from in6_getlinkifnet() 2025-07-29 15:13:10 +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 shm: Respect PROT_MAX when creating private mappings 2024-10-04 15:56:34 +00:00
ses Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
sound sound tests: Fetch HWBUF_RATE and SWBUF_RATE in sndstat_nv 2025-04-26 12:06:52 +02:00
sys queue(3): Add a test for STAILQ_REVERSE() 2025-05-07 14:34:39 +02:00
vfs Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
vm tests: move some files to the tests package 2025-05-05 16:39:25 +01: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 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00