opnsense-src/tests/sys
Gleb Smirnoff c7f803c71d inpcb: fix a panic with SO_REUSEPORT_LB + connect(2) misuse
This combination doesn't make any sense.  This socket option makes sense
only on a socket that is going to be a listening one.  There are two
options here: refuse connect(2) on a socket that has the option set
previously, or ignore (and clear) the option.  After some discussion on
phabricator, we have chosen the former, for safety and consistency
reasons.  Any programmer that runs this sequence is doing something wrong
and should be informed of that with appropriate error code.

Since connect(2) is a SUS API that has a defined set of error codes, none
of which corresponds to "a socket has non-standard incompatible socket
option set", we decided to return the same error that an already listening
socket would return.

Reviewed by:		markj
Differential Revision:	https://reviews.freebsd.org/D49150
2025-03-06 22:57:44 -08: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 Make the CTL tests more resilient 2024-11-04 19:06:53 -07:00
capsicum capsicum tests: Serialize functional tests 2024-09-04 14:28:28 +00:00
cddl zfsd: replace vdevs with the AUX faulted state 2024-10-03 16:21:46 -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 path_test: adjust test for open(O_PATH | O_CREAT) 2025-01-07 04:46:19 +02:00
fs fusefs: fix the 32-bit build after 564c732b5c 2025-01-15 16:31:56 -07:00
geom ggate tests: Use unique ports among tests 2024-09-04 14:28:28 +00:00
kern tests/unix_stream: fix signedness error 2025-02-11 11:07:41 -08:00
kqueue Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
mac Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
mqueue Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
net kern: wg: remove overly-restrictive address family check 2025-03-04 13:57:34 -06:00
netgraph Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
netinet inpcb: fix a panic with SO_REUSEPORT_LB + connect(2) misuse 2025-03-06 22:57:44 -08:00
netinet6 tests: Require python3 when using Scapy 2025-03-03 07:52:33 +00:00
netipsec Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
netlink tests/netlink: Assert the route scope of interface's addresses 2025-03-07 12:14:44 +08:00
netmap netmap: Disable a buggy and unsafe test (sync_kloop_conflict) 2025-03-06 13:22:25 -05:00
netpfil pf: fix nat64 ICMP translation 2025-03-05 10:37:57 +01: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: Fix downshift calculation in pcm_read_write test 2025-02-18 21:37:17 +02:00
sys tests: Add buf_ring overflow checks 2024-09-30 12:04:24 +00:00
vfs Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
vm shm: Respect PROT_MAX when creating private mappings 2024-10-04 15:56:34 +00: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