opnsense-src/sys
Alexander Motin d87f1e2e36 Make msgbuf_peekbytes() not return leading zeroes.
Introduce new MSGBUF_WRAP flag, indicating that buffer has wrapped
at least once and does not keep zeroes from the last msgbuf_clear().
It allows msgbuf_peekbytes() to return only real data, not requiring
every consumer to trim the leading zeroes after doing pointless copy.
The most visible effect is that kern.msgbuf sysctl now always returns
proper zero-terminated string, not only after the first buffer wrap.

MFC after:	1 week
Sponsored by:	iXsystems, Inc.

(cherry picked from commit 81dc00331d)
2021-12-17 20:36:23 -05:00
..
amd64 amd64: Reduce the amount of cpuset copying done for TLB shootdowns 2021-12-15 08:31:48 -05:00
arm omap4: Fix a few typos in source code comments 2021-12-07 19:52:00 +01:00
arm64 Remove redundant declarations 2021-12-14 10:58:01 +00:00
bsm
cam cam: Unbreak CAM_IO_STATS build 2021-12-06 08:55:58 -07:00
cddl kern: drop remaining references to removed makesyscalls.sh 2021-09-14 20:53:03 -05:00
compat fcntl(2): add F_KINFO operation 2021-12-13 02:58:22 +02:00
conf ocs_fc: Add gendump and dump_to_host ioctl command support. 2021-12-17 16:00:59 +05:30
contrib ip_log: remove set-but-not-unused vars 2021-12-13 17:13:05 -08:00
crypto aesni: Avoid a potential out-of-bounds load in AES_GCM_encrypt() 2021-11-23 09:32:33 -05:00
ddb ddb: reliably fail with ambiguous commands 2021-07-02 14:13:24 -07:00
dev ocs_fc: Remove unused function delarations. 2021-12-17 16:01:06 +05:30
dts add rk3328 overlay for enabling analog sound 2021-11-21 12:04:42 +02:00
fs nfsd: Sanity check the Layouttype count 2021-12-17 17:32:47 -08:00
gdb
geom GEOM: Switch g_io_deliver() locking from cp to pp. 2021-12-07 23:06:25 -05:00
gnu
i386 x86: add a comment providing source for numbers in legacy XSAVE area layout 2021-12-15 03:41:29 +02:00
isa
kern Make msgbuf_peekbytes() not return leading zeroes. 2021-12-17 20:36:23 -05:00
kgssapi
libkern Switch to an ifunc in the kernel for crc32c 2021-08-30 12:22:21 +01:00
mips Implement GET_STACK_USAGE on remaining archs 2021-12-07 14:13:47 -04:00
modules ocs_fc: Add gendump and dump_to_host ioctl command support. 2021-12-17 16:00:59 +05:30
net if_pflog: fix packet length 2021-12-11 10:38:50 +01:00
net80211 net80211(4): Fix a typo in a sysctl description 2021-12-07 19:53:33 +01:00
netgraph ng_ubt: Avoid attaching to several newer Intel controllers 2021-12-13 08:26:19 -05:00
netinet kernel: partially revert e9efb1125a15, default inet mask 2021-12-10 10:28:06 -06:00
netinet6 netinet6: Fix a typo in a sysctl description 2021-12-03 16:53:41 +01:00
netipsec netinet: Remove unneeded mb_unmapped_to_ext() calls 2021-12-01 07:43:18 -05:00
netpfil pfsync: fix incorrect enabling of defer mode 2021-12-13 14:49:27 +01:00
netsmb netsmb: Avoid a read-after-free in smb_t2_request_int() 2021-06-02 09:34:47 -04:00
nfs kernel: partially revert e9efb1125a15, default inet mask 2021-12-10 10:28:06 -06:00
nfsclient
nfsserver
nlm
ofed socket: Rename sb(un)lock() and interlock with listen(2) 2021-10-07 09:56:47 -04:00
opencrypto ktls: Split encrypt vs decrypt OCF counters. 2021-11-23 15:11:54 -08:00
powerpc arm64, powerpc: fix calculation of 'used' in GET_STACK_USAGE 2021-12-07 14:13:47 -04:00
riscv Implement GET_STACK_USAGE on remaining archs 2021-12-07 14:13:47 -04:00
rpc mbuf: Only allow extpg mbufs if the system has a direct map 2021-11-29 20:34:54 -05:00
security mac: cheaper check for ifnet_create_mbuf and ifnet_check_transmit 2021-07-05 11:32:14 +00:00
sys Make msgbuf_peekbytes() not return leading zeroes. 2021-12-17 20:36:23 -05:00
teken
tests routing: add IPv6 fib validation procedure. 2021-09-07 21:02:58 +00:00
tools makesyscalls.lua: add a CAPENABLED flag 2021-10-20 00:19:56 +01:00
ufs ffs_softdep: Fix a typo in a source code comment 2021-11-28 12:43:32 +01:00
vm Set uninitialized popmap bits in vm_reserv_init 2021-12-13 23:09:13 -06:00
x86 amd64: Reduce the amount of cpuset copying done for TLB shootdowns 2021-12-15 08:31:48 -05:00
xdr
xen
Makefile