freebsd-dev/sys
Lawrence Stewart 0963c8e431 When a previous call to sbsndptr() leaves sb->sb_sndptroff at the start of an
mbuf that was fully consumed by the previous call, the mbuf ptr returned by the
current call ends up being the previous mbuf in the sb chain to the one that
contains the data we want.

This does not cause any observable issues because the mbuf copy routines happily
walk the mbuf chain to get to the data at the moff offset, which in this case
means they effectively skip over the mbuf returned by sbsndptr().

We can't adjust sb->sb_sndptr during the previous call for this case because the
next mbuf in the chain may not exist yet. We therefore need to detect the
condition and make the adjustment during the current call.

Fix by detecting the special case of moff being at the start of the next mbuf in
the chain and adjust the required accounting variables accordingly.

Reviewed by:	andre
MFC after:	2 weeks
2013-06-19 03:08:01 +00:00
..
amd64 Fix a gcc warning uncovered after r251745. 2013-06-18 23:31:09 +00:00
arm Make support for atomics on ARM complete. 2013-06-15 08:15:22 +00:00
boot - The method introduced as part of r234898 for not altering the boot path 2013-06-09 23:50:30 +00:00
bsm Implement chflagsat(2) system call, similar to fchmodat(2), but operates on 2013-03-21 22:59:01 +00:00
cam Add infrastructure for doing compatibility shims, as has been sorely 2013-06-17 08:57:09 +00:00
cddl MFV r251644: 2013-06-12 07:07:06 +00:00
compat aio_mlock() added: 2013-06-08 13:30:13 +00:00
conf Add quad port probe support, this gives the admin proper information about the slot 2013-06-18 21:28:19 +00:00
contrib The AR9300 HAL uses this config to program AR_PHY_SWITCH_COM_2 on AR9485 2013-06-14 08:15:28 +00:00
crypto When porting XTS-related code from OpenBSD I forgot to update copyright (only 2013-02-20 22:59:53 +00:00
ddb
dev Add quad port probe support, this gives the admin proper information about the slot 2013-06-18 21:28:19 +00:00
fs More ext2fs header cleanups: 2013-06-18 15:49:30 +00:00
gdb
geom Make CAM return and GEOM DISK pass through new GEOM::lunid attribute. 2013-06-12 13:36:20 +00:00
gnu/fs/reiserfs Garbage collect XFS bits which are now already completely disconnected 2013-03-02 15:33:54 +00:00
i386 Adjust i386 Xen PV support for updated Xen interface files. 2013-06-17 01:43:07 +00:00
ia64 Driver 'aacraid' added. Supports Adaptec by PMC RAID controller families Series 6, 7, 8 and upcoming products. Older Adaptec RAID controller families are supported by the 'aac' driver. 2013-05-24 09:22:43 +00:00
isa
kern When a previous call to sbsndptr() leaves sb->sb_sndptroff at the start of an 2013-06-19 03:08:01 +00:00
kgssapi Isilon reported that sec=krb5p NFS mounts had a problem when m_len == 0 2013-05-01 22:07:55 +00:00
libkern Attempt to mitigate poor initialization of arc4 by one-shot 2013-04-19 00:30:52 +00:00
mips Make support for atomics on ARM complete. 2013-06-15 08:15:22 +00:00
modules Add quad port probe support, this gives the admin proper information about the slot 2013-06-18 21:28:19 +00:00
net Return ENETDOWN instead of ENOENT when all lagg(4) links are 2013-06-17 19:31:03 +00:00
net80211 Fix typo (dbM -> dBm) 2013-06-14 23:04:31 +00:00
netatalk Add const qualifier to the dst parameter of the ifnet if_output method. 2013-04-26 12:50:32 +00:00
netgraph Fix several typos 2013-05-12 16:43:26 +00:00
netinet Disable IGMPv3 link timers on a transition to IGMPv2. 2013-06-07 17:12:08 +00:00
netinet6 Really fix netmask address family this time. 2013-05-19 19:42:46 +00:00
netipsec Use IP6STAT_INC/IP6STAT_DEC macros to update ip6 stats. 2013-04-09 07:11:22 +00:00
netipx
netnatm
netpfil Improve locking strategy between keys hash and ID hash. 2013-06-13 06:07:19 +00:00
netsmb If the kernel is compiled with VMIMAGE support, the first attempt of 2013-05-04 16:55:48 +00:00
nfs Move the NFS FHA (File Handle Affinity) code from sys/nfsserver to 2013-04-17 22:42:43 +00:00
nfsclient - Convert the bufobj lock to rwlock. 2013-05-31 00:43:41 +00:00
nfsserver - Convert the bufobj lock to rwlock. 2013-05-31 00:43:41 +00:00
nlm
ofed Store a reference to the vnode associated with a file descriptor in the 2013-06-11 15:37:07 +00:00
opencrypto When porting XTS-related code from OpenBSD I forgot to update copyright (only 2013-02-20 22:59:53 +00:00
pc98 MFi386: revision 251039 2013-06-01 12:21:59 +00:00
pci - Corrrect mispellings of word useful 2013-04-17 11:45:15 +00:00
powerpc Fix a KTR_BUSDMA format string. 2013-06-18 06:55:58 +00:00
rpc Fix a potential socket leak in the NFS server. If a client closes its 2013-04-08 19:03:01 +00:00
security Relax the vm object locking in mac_proc_vm_revoke_recurse(). A read lock 2013-06-04 17:23:09 +00:00
sparc64 Remove conflicting macros from SPARC64's atomic(9) header. 2013-06-15 08:23:53 +00:00
sys Add new FOREACH_FROM variants of the queue(3) FOREACH macros which can 2013-06-18 02:57:56 +00:00
teken
tools Further refine the handling of stop signals in the NFS client. The 2013-02-21 19:02:50 +00:00
ufs - Convert the bufobj lock to rwlock. 2013-05-31 00:43:41 +00:00
vm - Persist the caller's flags in the bucket allocation flags so we don't 2013-06-19 02:30:32 +00:00
x86 Fix a KTR_BUSDMA format string. 2013-06-18 06:55:58 +00:00
xdr Use m_get() and m_getcl() instead of compat macros. 2013-03-15 10:21:18 +00:00
xen Adjust i386 Xen PV support for updated Xen interface files. 2013-06-17 01:43:07 +00:00
Makefile Remove netncp cscope entry missed in r248097 2013-03-12 14:21:52 +00:00