freebsd-nq/sys
Ian Lepore 1eafc07856 Set the SBUF_INCLUDENUL flag in sbuf_new_for_sysctl() so that sysctl
strings returned to userland include the nulterm byte.

Some uses of sbuf_new_for_sysctl() write binary data rather than strings;
clear the SBUF_INCLUDENUL flag after calling sbuf_new_for_sysctl() in
those cases.  (Note that the sbuf code still automatically adds a nulterm
byte in sbuf_finish(), but since it's not included in the length it won't
get copied to userland along with the binary data.)

Remove explicit adding of a nulterm byte in a couple places now that it
gets done automatically by the sbuf drain code.

PR:		195668
2015-03-14 17:08:28 +00:00
..
amd64 Use lapic_ipi_alloc() to dynamically allocate IPI slots needed by bhyve when 2015-03-14 02:32:08 +00:00
arm Delete stray clause 3 and renumber. 2015-03-13 02:49:55 +00:00
boot Enable bzipfs support in the EFI loader. 2015-03-13 09:41:27 +00:00
bsm
cam Add DA_Q_NO_RC16 quirk for USB mass storage device. 2015-03-07 17:18:06 +00:00
cddl Make DIOCGATTR in device mode handle "GEOM::candelete". 2015-03-12 16:19:18 +00:00
compat Run make sysent. 2015-01-23 21:08:24 +00:00
conf Categorize certain kernel builds as being broken in certain places. 2015-03-12 03:57:19 +00:00
contrib Merge ACPICA 20141107 and 20150204. 2015-02-18 20:33:00 +00:00
crypto Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
ddb
dev Set the SBUF_INCLUDENUL flag in sbuf_new_for_sysctl() so that sysctl 2015-03-14 17:08:28 +00:00
fs Fix white spaces. 2015-03-02 19:14:58 +00:00
gdb
geom Add GUID and alias for Apple Core Storage partition. 2015-03-12 18:51:31 +00:00
gnu File names with commas in them cause issues for freebsd-update. We 2015-03-12 06:43:58 +00:00
i386 Remove write-only variable. 2015-03-12 20:14:48 +00:00
isa
kern Set the SBUF_INCLUDENUL flag in sbuf_new_for_sysctl() so that sysctl 2015-03-14 17:08:28 +00:00
kgssapi
libkern Implement asprintf in libkern 2015-03-01 00:22:16 +00:00
mips Compile some modules - I'm going to eventually just compile all the 2015-03-14 08:29:03 +00:00
modules Use lapic_ipi_alloc() to dynamically allocate IPI slots needed by bhyve when 2015-03-14 02:32:08 +00:00
net Add if_input_default() method, that will be used for if_input 2015-03-12 14:55:33 +00:00
net80211 Fix kern/196290 - don't announce 11n HTINFO rates if the channel is 2015-02-27 04:45:47 +00:00
netgraph Revise default limit for maximum of netgraph data items. 2015-02-12 22:20:34 +00:00
netinet Fix `ipfw fwd tablearg'. Use dedicated field nh4 in struct table_value 2015-03-13 09:03:25 +00:00
netinet6 tcp6_ctlinput() doesn't pass MTU value to in6_pcbnotify(). 2015-03-06 05:50:39 +00:00
netipsec Remove extra '&'. sin6 is already a pointer. 2015-03-07 18:44:52 +00:00
netnatm
netpfil Fix `ipfw fwd tablearg'. Use dedicated field nh4 in struct table_value 2015-03-13 09:03:25 +00:00
netsmb
nfs Avoid closing unallocated socket in case socreate fails. 2015-02-28 20:30:29 +00:00
nfsclient Remove the old NFS client and server from head, 2014-12-23 00:47:46 +00:00
nfsserver Use M_SIZE() instead of hand-crafted (and mostly correct) NFSMSIZ() macro 2015-01-07 17:22:56 +00:00
nlm
ofed Factor out mbuf hashing code from LAGG driver so that other network 2015-03-11 16:02:24 +00:00
opencrypto Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
pc98 Factor out duplicated code from dumpsys() on each architecture into generic 2015-01-07 01:01:39 +00:00
powerpc Deallocate any leftover page table entries in the LPAR at boot. This 2015-03-13 00:08:58 +00:00
rpc rpc: Uninitialized pointer read 2015-02-02 16:07:07 +00:00
security Adjust printf format specifiers for dev_t and ino_t in kernel. 2014-12-17 07:27:19 +00:00
sparc64 Unbreak sparc64 after r276630 by calling __sparc_sigtramp_setup signal 2015-02-16 22:13:03 +00:00
sys Add a new flag, SBUF_INCLUDENUL, and new get/set/clear functions for flags. 2015-03-14 16:02:11 +00:00
teken mdoc: improvements to SEE ALSO. 2014-12-27 07:07:37 +00:00
tools
ufs Partially revert r277922, avoid sleeping and do flush if we a awaken, 2015-02-05 13:00:27 +00:00
vm Set the SBUF_INCLUDENUL flag in sbuf_new_for_sysctl() so that sysctl 2015-03-14 17:08:28 +00:00
x86 Add x86 specific APIs 'lapic_ipi_alloc()' and 'lapic_ipi_free()' to allow IPI 2015-03-14 00:30:41 +00:00
xdr
xen Pacify clang 3.3 by ending the file with a newline. This is common 2015-01-06 21:26:35 +00:00
Makefile