freebsd-dev/sys
Mark Johnston f96603b56f 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
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D30539
2021-05-31 18:53:34 -04:00
..
amd64 amd64: Avoid enabling interrupts when handling kernel mode prot faults 2021-05-31 18:49:33 -04:00
arm arm: SOCFPGA: Add ext_resources driver 2021-05-31 19:08:08 +02:00
arm64 linux(4); Retire unnecessary __packed attribute from some struct's 2021-05-31 21:56:34 +03:00
bsm
cam cam_sim: style: sort includes 2021-05-25 09:56:56 -06:00
cddl fbt: Remove some handling for multiple CTF containers 2021-04-02 17:49:13 -04:00
compat linux(4): Microoptimize futimesat, utimes, utime. 2021-05-31 22:54:18 +03:00
conf cxgbe(4): Update firmwares to 1.25.6.0. 2021-05-29 01:00:20 -07:00
contrib VFS_QUOTACTL(9): allow implementation to indicate busy state changes 2021-05-30 14:53:47 -07:00
crypto ossl: Use crypto_cursor_segment(). 2021-05-25 16:59:19 -07:00
ddb fix style nit: space after if 2021-05-05 15:26:09 -06:00
dev iichid(4): disable interrupt on suspend 2021-05-31 22:33:07 +03:00
dts arm64: rockchip: Add some DTSO to disable sd/mmc 2021-05-13 18:15:31 +02:00
fs nfs: even up value returned by nfsrv_parsename with copyinstr 2021-05-31 16:32:04 +00:00
gdb gdb: report specific stop reason for watchpoints 2021-03-30 11:36:41 -03:00
geom gmultipath: make physpath distinct from the underlying providers' 2021-05-06 12:32:27 -06:00
gnu
i386 linux(4); Retire unnecessary __packed attribute from some struct's 2021-05-31 21:56:34 +03:00
isa Remove more remnants of sio(4) 2021-04-07 14:33:02 -04:00
kern thread_reap_barrier(): remove unused variable 2021-05-31 23:03:42 +03:00
kgssapi
libkern Use '.arch_extension crc' in the arm64 crc32 code 2021-05-06 07:42:35 +00:00
mips [mips/broadcom] set sysctl "hw.model" by SoC ChipCommon ID 2021-05-28 23:35:37 +03:00
modules cxgbe(4): Update firmwares to 1.25.6.0. 2021-05-29 01:00:20 -07:00
net pf: Track the original kif for floating states 2021-05-20 12:49:27 +02:00
net80211 net80211: prefix get_random_bytes() with net80211_ 2021-03-24 22:16:09 +00:00
netgraph [netflow] fix gateway reporting in ng_netflow 2021-05-30 10:12:49 +00:00
netinet tcp, udp: Permit binding with AF_UNSPEC if the address is INADDR_ANY 2021-05-31 18:53:34 -04:00
netinet6 Fix mbuf leaks in various pru_send implementations 2021-05-12 13:00:09 -04:00
netipsec Add missing sockaddr length and family validation to various protocols 2021-05-03 13:35:19 -04:00
netpfil pf: Convenience function for optional (numeric) arguments 2021-05-31 14:19:17 +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 OFED: migrate LinuxKPI net_device/ifnet macros into ofed 2021-05-27 12:26:01 +00:00
opencrypto cryptosoft: Use crypto_cursor_segment(). 2021-05-25 16:59:19 -07:00
powerpc Wrap the default SPE config in its own #define 2021-05-29 21:53:26 -05:00
riscv arm64, riscv: remove reference to fsu_intr_fault 2021-05-25 12:26:52 -03:00
rpc rpcsec_gss: Use a designated initializer for rpc_gss_ops 2021-05-26 10:45:40 -04:00
security tcp_input/syncache: acquire only read lock on PCB for SYN,!ACK packets 2021-04-12 08:25:31 -07:00
sys Add thread_reap_barrier() 2021-05-31 18:09:22 +03:00
teken
tests Revise FIB lookups per second benchmarking routines. 2021-05-05 12:28:17 +02:00
tools makesyscalls.lua: improve generated file style(9) compliance 2021-05-13 13:59:25 -04:00
ufs VFS_QUOTACTL(9): allow implementation to indicate busy state changes 2021-05-30 14:53:47 -07:00
vm vm: add another pager private flag 2021-05-15 20:47:29 +00:00
x86 x86: Fix lapic_ipi_alloc() on i386 2021-05-31 18:51:14 -04:00
xdr
xen x86/xen: remove PVHv1 code 2021-05-17 11:41:21 +02:00
Makefile