opnsense-src/sys
Dmitry Chagin ccdf2cd423 linux(4): Check the socket before any others sanity checks
Strictly speaking, this check is performed by the kern_recvit(), but in
the Linux emulation layer before calling the kernel we do other sanity
checks and conversions from Linux types to the native types. This changes
an order of the error returning that is critical for some buggy Linux
applications.

For recvmmsg() syscall this fixes a panic in case when the user-supplied
vlen value is 0, then error is not initialized and garbage passed to the
bsd_to_linux_errno().

MFC after:		2 weeks

(cherry picked from commit 3a99aac66f)
2022-06-17 22:35:32 +03:00
..
amd64 linux(4): Deduplicate execve 2022-06-17 22:35:30 +03:00
arm Retire sv_transtrap 2022-06-17 22:35:27 +03:00
arm64 linux(4): Deduplicate execve 2022-06-17 22:35:30 +03:00
bsm
cam sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
cddl boot/zfs: Extend zfsimpl.h and make it easier to use 2022-06-05 11:15:04 -04:00
compat linux(4): Check the socket before any others sanity checks 2022-06-17 22:35:32 +03:00
conf linux(4): Get rid of Linuxulator kernel build options. 2022-06-17 22:30:22 +03:00
contrib rtw88: plug various skb leaks in error cases 2022-06-08 16:11:19 +00:00
crypto crypto: Validate AES-GCM IV length in check_csp(). 2022-04-29 13:50:04 -07:00
ddb Create sys/reg.h for the common code previously in machine/reg.h 2022-05-12 15:12:59 -07:00
dev urtw(4): Adjust all pause calls to use milliseconds instead of ticks. 2022-06-16 04:55:52 +02:00
dts add overlay for enabling i2c1 on allwinner h3 2022-02-09 11:35:59 +02:00
fs sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
gdb gdb(4): Do not use run length encoding for 3-symbol repetitions 2022-02-04 20:58:34 -05:00
geom geom(4): Fix a common typo in a source code comment 2022-06-10 14:25:26 +02:00
gnu bwn: eliminate dead writes in BWN_GPL_PHY 2022-05-12 08:56:04 -04:00
i386 linux(4): Deduplicate execve 2022-06-17 22:35:30 +03:00
isa
kern Finish cpuset_getaffinity() after f35093f8 2022-06-17 22:35:31 +03:00
kgssapi
libkern libkern: Fix a typo in a source code comment 2022-06-10 14:24:24 +02:00
mips mips: Remove EXT_RESOURCES from kernel configs. 2022-05-17 14:15:45 -07:00
modules linux(4); Move vdso_selector_x86.c to the linux_common module 2022-06-17 22:35:30 +03:00
net if_bridge(4): Fix a typo in a source code comment 2022-06-10 14:28:01 +02:00
net80211 net80211: remove (optional) RSN from preobereq 2022-06-03 16:56:13 +00:00
netgraph ng_ubt(4): Probe USB Bluetooth per USB interface and not per USB device. 2022-06-14 11:39:23 +02:00
netinet sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
netinet6 sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
netipsec IPsec: Use protocol-specific malloc types instead of M_XDATA. 2022-05-10 16:33:00 -07:00
netpfil pf: fix more syncookie memory leaks 2022-06-06 09:01:34 +02:00
netsmb
nfs nfs: do not panic on bootpc_init when no interfaces are found 2022-05-06 09:14:28 -03:00
nfsclient
nfsserver
nlm
ofed ibcore: Fix missing ib_cm_destroy_id() in ib_cm_insert_listen() 2022-06-07 08:44:29 +02:00
opencrypto KTLS: Free the MAC session when destroying AES-CBC software sessions. 2022-05-13 16:48:48 -07:00
powerpc Retire sv_transtrap 2022-06-17 22:35:27 +03:00
riscv Retire sv_transtrap 2022-06-17 22:35:27 +03:00
rpc krpc: Fix NFS-over-TLS for KTLS1.3 2022-05-30 17:38:43 -07:00
security sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
sys Finish cpuset_getaffinity() after f35093f8 2022-06-17 22:35:31 +03:00
teken teken: color #3 is yellow not brown - use TC_YELLOW as the name 2022-05-03 14:20:44 -04:00
tests
tools Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2022-02-08 15:00:55 -05:00
ufs ufs: Fix a typo a source code comment 2022-06-10 14:32:08 +02:00
vm vm_page: Fix a typo in a source code comment 2022-06-10 14:30:17 +02:00
x86 linux(4): Deduplicate bsd_to_linux_trapcode() 2022-06-17 22:35:28 +03:00
xdr
xen xen(3): Fix a typo in a source code comment 2022-04-02 15:32:40 +02:00
Makefile