opnsense-src/sys
Gleb Smirnoff 48a55bbfe9 unix: change error code for recvmsg() failed due to RLIMIT_NOFILE
Instead of returning EMSGSIZE pass the error code from fdallocn() directly
to userland.  That would be EMFILE, which makes much more sense.  This
error code is not listed in the specification[1], but the specification
doesn't cover such edge case at all.  Meanwhile the specification lists
EMSGSIZE as the error code for invalid value of msg_iovlen, and FreeBSD
follows that, see sys_recmsg().  Differentiating these two cases will make
a developer/admin life much easier when debugging.

[1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/recvmsg.html

Reviewed by:		markj
Differential revision:	https://reviews.freebsd.org/D35640
2022-06-29 09:42:58 -07:00
..
amd64 amd64: Reload CPU ext features after resume or cr4 changes 2022-06-29 10:34:43 +03:00
arm elfnote: place note in a PT_NOTE program header 2022-06-28 09:51:57 +02:00
arm64 Split out vfp_new_thread 2022-06-29 15:15:43 +01:00
bsm
cam ses: don't panic if disk elements have really weird descriptors 2022-06-23 11:19:20 -06:00
cddl loader: add support for gzip compression 2022-06-09 20:54:30 +03:00
compat linuxkpi: Add pwm.h 2022-06-29 09:55:26 +02:00
conf ovpn: Introduce OpenVPN DCO support 2022-06-28 11:33:10 +02:00
contrib zfs: merge openzfs/zfs@deb121309 2022-06-23 17:49:33 +02:00
crypto OpenSSL: Regen assembly file for OpenSSSL 1.1.1p 2022-06-21 14:20:33 -04:00
ddb ddb: namespacing of struct command 2022-06-14 13:10:08 -03:00
dev Remove store-only variable and unnecessary bzero() 2022-06-29 20:02:01 +08:00
dts sys/dts: Remove MIPS files 2022-05-20 17:11:27 +01:00
fs cuse(3): Remove PAGE_SIZE from libcuse. 2022-06-25 12:01:59 +02:00
gdb gdb(4): Do not use run length encoding for 3-symbol repetitions 2022-01-22 14:46:06 -05:00
geom ses: don't panic if disk elements have really weird descriptors 2022-06-23 11:19:20 -06:00
gnu bwn: eliminate dead writes in BWN_GPL_PHY 2022-05-04 09:32:59 -04:00
i386 elfnote: place note in a PT_NOTE program header 2022-06-28 09:51:57 +02:00
isa isa: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:59 -07:00
kern unix: change error code for recvmsg() failed due to RLIMIT_NOFILE 2022-06-29 09:42:58 -07:00
kgssapi kgssapi krb5: Remove unused variables. 2022-04-06 16:45:29 -07:00
libkern libkern: Fix a typo in a source code comment 2022-06-05 08:57:26 +02:00
modules ovpn: Introduce OpenVPN DCO support 2022-06-28 11:33:10 +02:00
net if_ovpn: static probe points 2022-06-28 13:50:54 +02:00
net80211 net80211 / LinuxKPI: 802.11: add Control Trigger Subframe information 2022-06-17 22:55:13 +00:00
netgraph ng_ubt(4): Probe USB Bluetooth per USB interface and not per USB device. 2022-06-03 10:49:17 +02:00
netinet blackhole(4): fix operator precedence 2022-06-27 17:52:19 -07:00
netinet6 rip6: Fix a lock order reversal in rip6_bind() 2022-06-14 12:00:59 -04:00
netipsec ipsec_encap: setdf is only used for INET. 2022-04-13 16:08:21 -07:00
netpfil pf: reduce the risk of src/dst mis-use 2022-06-28 14:01:07 +02:00
netsmb smb_smb_treedisconnect: eliminate write only variable mbp 2022-04-04 22:30:57 -06:00
nfs nfs: skip bootpc when vfs.root.mountfrom is other than nfs 2022-05-31 16:07:27 -03:00
nfsclient
nfsserver
nlm sys/nlm: Use C99 fixed-width integer types. 2021-12-28 09:42:42 -08:00
ofed ibcore: Fix a race with disassociate and exit_mmap() 2022-06-21 11:33:27 +02:00
opencrypto crypto: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:58 -07:00
powerpc subr_bus: restore bus_null_rescan() 2022-06-23 16:07:00 -03:00
riscv riscv timer: implement riscv_timer_et_stop() 2022-06-23 15:15:11 -03:00
rpc krpc: Fix NFS-over-TLS for KTLS1.3 2022-05-15 11:51:56 -07:00
security mac_veriexec: Authorize reads of secured sysctls 2022-06-29 10:48:01 +02:00
sys Bump __FreeBSD_version after linuxkpi changes. 2022-06-29 09:57:03 +02:00
teken teken: color #3 is yellow not brown - use TC_YELLOW as the name 2022-03-12 09:17:29 -05:00
tests
tools firmware: Map '@' in filenames to '_' in symbols. 2022-06-14 10:50:51 -07:00
ufs UFS quotaoff: start write before unbusying 2022-06-29 12:36:59 +03:00
vm vm: Fix racy checks for swap objects 2022-06-20 12:48:14 -04:00
x86 amd64: Reload CPU ext features after resume or cr4 changes 2022-06-29 10:34:43 +03:00
xdr sys/xdr: Use C99 fixed-width integer types. 2021-12-28 09:43:26 -08:00
xen xenbus: improve device tracking 2022-06-07 12:29:53 +02:00
Makefile Fix 'make cscope' with ALL_ARCH defined 2022-01-07 11:53:52 -04:00