freebsd-nq/sys
Konstantin Belousov 3d31767952 Eliminate the layering violation in the kern_sendfile(). When quering
the file size, use VOP_GETATTR() instead of accessing vnode vm_object
un_pager.vnp.vnp_size.

Take the shared vnode lock earlier to cover the added VOP_GETATTR()
call and, as consequence, the whole internal sendfile loop.  Reduce vm
object lock scope to not protect the local calculations.

Note that this is the last misuse of the vnp_size in the tree, the
others were removed from the ELF image activator by r230246.

Reviewed by:	alc
Tested by:	pho, bf (previous version)
MFC after:	1 week
2013-04-28 19:12:09 +00:00
..
amd64 Add RIP-relative addressing to the instruction decoder. 2013-04-25 04:56:43 +00:00
arm Bring copyright changes with the agreement of Thomas Skibo. 2013-04-28 07:00:36 +00:00
boot Add Xilinx Zynq ARM/FPGA SoC support to FreeBSD/arm port. 2013-04-27 22:38:29 +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 some cam_freeze_devq()'s missed at r249466. 2013-04-28 18:12:43 +00:00
cddl Changed ZFS TRIM sysctl from vfs.zfs.trim_disable -> vfs.zfs.trim.enabled 2013-04-26 11:24:20 +00:00
compat Regen. 2013-04-02 05:30:52 +00:00
conf Add usie to LINT. 2013-04-26 13:03:22 +00:00
contrib Bring over my FreeBSD modifications for the AR9300 HAL to make it 2013-04-28 00:57:47 +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 Let's align correctly by setting to 17. 2013-04-28 16:35:23 +00:00
fs When an NFS unmount occurs, once vflush() writes the last dirty 2013-04-18 23:20:16 +00:00
gdb
geom Return "descr" field alike to "Intel RAID1 volume" for GEOM RAID to make 2013-04-27 06:57:39 +00:00
gnu/fs/reiserfs Garbage collect XFS bits which are now already completely disconnected 2013-03-02 15:33:54 +00:00
i386 Remove redundant definitions of _ALIGN and _ALIGNBYTES. 2013-04-21 11:12:44 +00:00
ia64 Remove ctl(4) from GENERIC. Also remove 'options CTL_DISABLE' 2013-04-12 16:25:03 +00:00
isa
kern Eliminate the layering violation in the kern_sendfile(). When quering 2013-04-28 19:12:09 +00:00
kgssapi
libkern Attempt to mitigate poor initialization of arc4 by one-shot 2013-04-19 00:30:52 +00:00
mips Octeon 2 (6xxx) and newer CPUs don't use the clock CPU speed for its 2013-04-26 05:42:35 +00:00
modules Build uart_dev_lpc.c on arm only. This fixes pc98 build. 2013-04-22 13:02:41 +00:00
net Add const qualifier to the dst parameter of the ifnet if_output method. 2013-04-26 12:50:32 +00:00
net80211 Add const qualifier to the dst parameter of the ifnet if_output method. 2013-04-26 12:50:32 +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 Add const qualifier to the dst parameter of the ifnet if_output method. 2013-04-26 12:50:32 +00:00
netinet Move IPPROTO_IPV6 from #ifdef __BSD_VISIBLE to #if __POSIX_VISIBLE >= 201112 2013-04-27 23:36:01 +00:00
netinet6 Add const qualifier to the dst parameter of the ifnet if_output method. 2013-04-26 12:50:32 +00:00
netipsec Use IP6STAT_INC/IP6STAT_DEC macros to update ip6 stats. 2013-04-09 07:11:22 +00:00
netipx
netnatm
netpfil Add const qualifier to the dst parameter of the ifnet if_output method. 2013-04-26 12:50:32 +00:00
netsmb Call make_dev_credf() rather than using the couple make_dev()/dev_ref(). 2013-03-09 16:58:19 +00:00
nfs Move the NFS FHA (File Handle Affinity) code from sys/nfsserver to 2013-04-17 22:42:43 +00:00
nfsclient When an NFS unmount occurs, once vflush() writes the last dirty 2013-04-18 23:20:16 +00:00
nfsserver Move the NFS FHA (File Handle Affinity) code from sys/nfsserver to 2013-04-17 22:42:43 +00:00
nlm
ofed Add const qualifier to the dst parameter of the ifnet if_output method. 2013-04-27 08:11:48 +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 - Correct mispellings of word resource 2013-04-17 11:47:32 +00:00
pci - Corrrect mispellings of word useful 2013-04-17 11:45:15 +00:00
powerpc Add reset support to the Wii. 2013-04-27 06:54:49 +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 Switch the vm_object mutex to be a rwlock. This will enable in the 2013-03-09 02:32:23 +00:00
sparc64 Remove ctl(4) from GENERIC. Also remove 'options CTL_DISABLE' 2013-04-12 16:25:03 +00:00
sys Bump FreeBSD_version after glebius' changes. 2013-04-26 17:06:36 +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 - Correct mispellings of the word occurrence 2013-04-17 11:40:10 +00:00
vm Convert panic() into KASSERT(). 2013-04-28 18:40:55 +00:00
x86 Introduce kern.timecounter.smp_tsc_adjust tunable (disabled by default) and 2013-04-18 17:07:04 +00:00
xdr Use m_get() and m_getcl() instead of compat macros. 2013-03-15 10:21:18 +00:00
xen
Makefile Remove netncp cscope entry missed in r248097 2013-03-12 14:21:52 +00:00