freebsd-dev/sys
Pawel Jakub Dawidek 03385af198 sbuf_trim() cannot be used on sbuf with drain function set.
This fixes panic when listing sysctls on INVARIANTS-enabled kernel while
having wbwd loaded.

This panic was not fatal, at worst one additional space was printed.

Also sbuf_trim() makes some sense even if drain function is set. The drain
function is called only when buffer is to be expanded. So we could still trim
existing buffer before drain is called. In this case it worked just fine - the
trailing space was correctly trimmed.

Obtained from:	WHEEL Systems
MFC after:	1 week
2012-12-15 22:26:16 +00:00
..
amd64 Revert r243960 based on feedback regarding keeping x86 headers unified 2012-12-13 21:27:20 +00:00
arm Add support for QEMU's version of Versatile Platform Board 2012-12-13 23:19:13 +00:00
boot Ignore a warning in ubldr where clang doesn't understand the %D printf 2012-12-15 21:47:05 +00:00
bsm Merge OpenBSM 1.2-alpha2 changes from contrib/openbsm to 2012-12-01 13:46:37 +00:00
cam Fix a couple of CTL locking issues and clean up some duplicated code. 2012-12-09 19:53:21 +00:00
cddl Added vfs.zfs.vdev.trim_on_init sysctl which allows full vdev trim on 2012-12-13 17:39:07 +00:00
compat Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
conf Four .c files from OpenBSM are used, in modified form, by the kernel to 2012-12-15 15:21:09 +00:00
contrib Allow this file to build on FreeBSD. 2012-11-27 02:03:41 +00:00
crypto Revert previous commit... 2012-10-10 08:36:38 +00:00
ddb Small textdump enhancements. 2012-11-01 04:07:08 +00:00
dev sbuf_trim() cannot be used on sbuf with drain function set. 2012-12-15 22:26:16 +00:00
fs Add "nfsstat -m" support for the two new NFS mount options 2012-12-09 22:23:50 +00:00
gdb
geom - Don't pass geom and provider names as format strings. 2012-11-20 12:32:18 +00:00
gnu/fs r16312 is not any longer real since many years (likely since when VFS 2012-11-19 22:43:45 +00:00
i386 Revert r243960 based on feedback regarding keeping x86 headers unified 2012-12-13 21:27:20 +00:00
ia64 Flip the semantic of M_NOWAIT to only require the allocation to not 2012-11-14 20:01:40 +00:00
isa
kern When mnt_vnode_next_active iterator cannot lock the next vnode and 2012-12-15 02:04:46 +00:00
kgssapi
libkern Sync strlcpy with userland version. 2012-11-03 04:29:24 +00:00
mips Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
modules Add the btcoex code into the module compilation. 2012-12-03 23:38:08 +00:00
net Fix problem in r238990. The LLE_LINKED flag should be tested prior to 2012-12-13 11:11:15 +00:00
net80211 Adjust the channel to correctly setup the HT flags when transitioning 2012-12-10 07:00:46 +00:00
netatalk Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
netgraph Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
netinet Fix problem in r238990. The LLE_LINKED flag should be tested prior to 2012-12-13 11:11:15 +00:00
netinet6 In additional to the tailq of IPv6 addresses add the hash table. 2012-12-15 20:04:24 +00:00
netipsec Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
netipx Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
netnatm Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
netncp Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
netpfil In pfioctl, if the permission checks failed we returned with vnet context 2012-12-15 17:19:36 +00:00
netsmb Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
nfs Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
nfsclient Move the NFSv4.1 client patches over from projects/nfsv4.1-client 2012-12-08 22:52:39 +00:00
nfsserver Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
nlm Remove the support for using non-mpsafe filesystem modules. 2012-10-22 17:50:54 +00:00
ofed Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
opencrypto Revert previous commit... 2012-10-10 08:36:38 +00:00
pc98 Reduce diffs against i386. 2012-11-10 13:48:41 +00:00
pci Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
powerpc Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
rpc Add support for backchannels to the kernel RPC. Backchannels 2012-12-08 00:29:16 +00:00
security Four .c files from OpenBSM are used, in modified form, by the kernel to 2012-12-15 15:21:09 +00:00
sparc64 Move the declaration of vm_phys_paddr_to_vm_page() from vm/vm_page.h 2012-11-16 05:55:56 +00:00
sys When mnt_vnode_next_active iterator cannot lock the next vnode and 2012-12-15 02:04:46 +00:00
teken
tools Revert previous commit... 2012-10-10 08:36:38 +00:00
ufs Fix a typo, resulting in the NULL pointer dereference. 2012-12-15 02:03:59 +00:00
vm In the past four years, we've added two new vm object types. Each time, 2012-12-09 00:32:38 +00:00
x86 Add bus_space_read_8 and bus_space_write_8 for amd64. 2012-12-13 21:40:11 +00:00
xdr
xen Move the corresponding MTX_SYSINIT() next to their struct mtx declaration 2012-10-26 17:31:35 +00:00
Makefile Run cscope with the -v parameter to make it more user-friendly. 2012-12-02 20:51:24 +00:00