diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2012-03-26 16:26:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-02 09:27:21 -0700 |
commit | 12810ac9f485e5ea6106181b3dcb690e986cc06a (patch) | |
tree | 580c24440d9ccb43866f530cf8f8df82d02b725a /net | |
parent | 57ad23326e53fec741be83138643b768e7d2e194 (diff) | |
download | kernel_samsung_crespo-12810ac9f485e5ea6106181b3dcb690e986cc06a.zip kernel_samsung_crespo-12810ac9f485e5ea6106181b3dcb690e986cc06a.tar.gz kernel_samsung_crespo-12810ac9f485e5ea6106181b3dcb690e986cc06a.tar.bz2 |
compat: use sys_sendfile64() implementation for sendfile syscall
commit 1631fcea8399da5e80a80084b3b8c5bfd99d21e7 upstream.
<asm-generic/unistd.h> was set up to use sys_sendfile() for the 32-bit
compat API instead of sys_sendfile64(), but in fact the right thing to
do is to use sys_sendfile64() in all cases. The 32-bit sendfile64() API
in glibc uses the sendfile64 syscall, so it has to be capable of doing
full 64-bit operations. But the sys_sendfile() kernel implementation
has a MAX_NON_LFS test in it which explicitly limits the offset to 2^32.
So, we need to use the sys_sendfile64() implementation in the kernel
for this case.
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions