• Tsuneo.Yoshioka@f-secure.com's avatar
    [PATCH] x86-64: Fix 32bit sendfile · 83b942bd
    Tsuneo.Yoshioka@f-secure.com authored
    If we use 64bit kernel on ia64/x86_64/s390 architecture, and we run
    32bit binary on 32bit compatibility mode, sendfile system call seems be
    not set offset argument.
    
    This is because sendfile's return value is not zero but the code regards
    the result by return value is zero or not.
    
    This problem will be affect to ia64/x86_64/s390 and not affect to other
    architecture does not affect other architecture (mips/parisc/ppc64/sparc64).
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    83b942bd
compat_linux.c 26.6 KB