opnsense-src/sys
Mark Johnston fcf938e093 tcp, udp: Permit binding with AF_UNSPEC if the address is INADDR_ANY
Prior to commit f161d294b we only checked the sockaddr length, but now
we verify the address family as well.  This breaks at least ttcp.  Relax
the check to avoid breaking compatibility too much: permit AF_UNSPEC if
the address is INADDR_ANY.

Fixes:		f161d294b
Reported by:	Bakul Shah <bakul@iitbombay.org>
Reviewed by:	tuexen
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit f96603b56f)
2021-06-03 09:28:53 -04:00
..
amd64 amd64/linux*: add required header to get the constant value 2021-05-26 15:18:54 -04:00
arm rpi_ft5406: Recognize raspberrypi,firmware-ts touchscreen 2021-05-23 15:31:22 +02:00
arm64 regen syscall files after 0bd5d81f1e 2021-05-19 20:32:47 -04:00
bsm Add aio_writev and aio_readv 2021-01-02 19:57:58 -07:00
cam Introduce "soft" serseq variant. 2021-05-05 23:18:38 -04:00
cddl fbt: Remove some handling for multiple CTF containers 2021-04-15 21:27:24 -04:00
compat Implement read-only VM_SHARED flag in the LinuxKPI. 2021-06-02 13:25:20 +02:00
conf pf: Introduce nvlist variant of DIOCADDRULE 2021-05-07 10:15:41 +02:00
contrib ipfilter: Fix ip_nat memory leak and use-after-free 2021-06-02 17:54:30 -07:00
crypto armv8crypto: note derivation in armv8_crypto_wrap.c 2021-03-22 13:14:51 -03:00
ddb ddb: replace watchpoint set/clear functions 2021-04-21 10:20:33 -03:00
dev cxgb: Avoid a read-after-free in get_packet() when cxgb_debug is on 2021-06-02 09:34:07 -04:00
dts Switch to the new device-tree vendor tree 2021-01-15 20:08:39 +01:00
fs nfscl: Fix NFSv4.1/4.2 mount recovery from an expired lease 2021-06-02 16:54:10 -07:00
gdb gdb: report specific stop reason for watchpoints 2021-04-21 10:20:33 -03:00
geom gmirror: Pre-allocate the timeout event structure 2021-03-17 21:24:20 -04:00
gnu Remove the old dts imported tree. 2021-01-15 20:09:55 +01:00
i386 regen syscall files after 0bd5d81f1e 2021-05-19 20:32:47 -04:00
isa Remove more remnants of sio(4) 2021-04-14 09:19:49 -04:00
kern ktrace: Handle negative array sizes in ktrstructarray 2021-06-03 09:28:42 -04:00
kgssapi State kgssapi dependency on xdr. 2020-09-17 22:29:38 +00:00
libkern tests/sys/kern/crc32: Check for SSE4.2 before using it 2021-04-22 10:41:09 +01:00
mips gdb: report specific stop reason for watchpoints 2021-04-21 10:20:33 -03:00
modules pf: Introduce nvlist variant of DIOCADDRULE 2021-05-07 10:15:41 +02:00
net Fix a use after free in update_rtm_from_rc(). 2021-05-30 10:30:53 +00:00
net80211 net80211: Fix a typo in a comment 2021-03-20 11:13:31 +01:00
netgraph Fix packet cbs/ebs conversion. 2021-06-01 23:40:05 -04:00
netinet tcp, udp: Permit binding with AF_UNSPEC if the address is INADDR_ANY 2021-06-03 09:28:53 -04:00
netinet6 Fix mbuf leaks in various pru_send implementations 2021-05-25 21:49:53 -04:00
netipsec Add missing sockaddr length and family validation to various protocols 2021-05-17 13:43:07 -04:00
netpfil pf: Move nvlist conversion functions to pf_nv 2021-06-01 16:29:50 +02:00
netsmb netsmb: Avoid a read-after-free in smb_t2_request_int() 2021-06-02 09:34:47 -04:00
nfs nfs: clean up empty lines in .c and .h files 2020-09-01 21:25:39 +00:00
nfsclient nfs: clean up empty lines in .c and .h files 2020-09-01 21:25:39 +00:00
nfsserver nfs: Mark unused statistics variable as reserved 2020-11-18 04:35:49 +00:00
nlm nlm: clean up empty lines in .c and .h files 2020-09-01 22:14:52 +00:00
ofed Add missing sockaddr length and family validation to various protocols 2021-05-17 13:43:07 -04:00
opencrypto cryptodev: Fix some input validation bugs 2021-05-14 09:58:54 -04:00
powerpc opal_console: fix serial console output corruption on powerpc64 2021-05-07 02:33:39 -03:00
riscv ddb: replace watchpoint set/clear functions 2021-04-21 10:20:33 -03:00
rpc rpcsec_gss: Use a designated initializer for rpc_gss_ops 2021-06-02 09:34:41 -04:00
security close_range: add audit support 2021-03-17 22:22:48 +00:00
sys lockprof: pass lock type as an argument instead of reading the spin flag 2021-06-02 15:00:23 +00:00
teken loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
tests Enable running fib tests inside vnet jail. 2021-01-17 20:32:26 +00:00
tools makesyscalls.lua: improve generated file style(9) compliance 2021-05-19 20:31:54 -04:00
ufs Move mnt_maxsymlinklen into appropriate fs mount data structures 2021-06-01 02:48:16 +03:00
vm vm: add another pager private flag 2021-05-22 18:28:29 +00:00
x86 Balance parentheses in sysctl descriptions 2021-05-05 13:04:58 +02:00
xdr xdr: clean up empty lines in .c and .h files 2020-09-01 22:13:28 +00:00
xen xen: remove .swp file from public headers 2021-01-11 18:14:11 +01:00
Makefile Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00