]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/commit
Reintegrate r250907 (previously reverted as r254754) plus MFS r254947,
authorgjb <gjb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 10 Sep 2013 19:00:32 +0000 (19:00 +0000)
committergjb <gjb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 10 Sep 2013 19:00:32 +0000 (19:00 +0000)
commitf86e46e1ac425e799ad8becb31c3194c616181c2
tree335484a8d759d121a31e8c789fdcc70b72c8a266
parent3930b52b650ac758e9576a848db649c2254aeb5d
Reintegrate r250907 (previously reverted as r254754) plus MFS r254947,
r255443:

r250907 (scottl):
  MFC r248830, r250027, r250409: Several fixes and improvements
  to sendfile()

r254947 (kib):
  NFS implementation of VOP_READ() sometimes upgrades the vnode lock,
  which causes drop of the shared lock and sleep for exclusive.  As
  result, busying of the page before the call to vn_rdwr() makes NFS
  code to wait for vnode lock while page is busy, which contradicts the
  proper order of vnode lock -> busy.

r255443 (des):
  Fix the length calculation for the final block of a sendfile(2)
  transmission which could be tricked into rounding up to the nearest
  page size, leaking up to a page of kernel memory.  [13:11]

Approved by: re (delphij)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/releng/9.2@255456 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/uipc_syscalls.c