• David Miller's avatar
    Fix compat sys_ipc() on sparc64 · a95330df
    David Miller authored
    The 32-bit syscall trampoline for sys_ipc() on sparc64
    was sign extending various arguments, which is bogus when
    using compat_sys_ipc() since that function expects zero
    extended copies of all the arguments.
    
    This bug breaks the sparc64 kernel when built with gcc-4.2.x
    among other things.
    
    [SPARC64]: Fix arg passing to compat_sys_ipc().
    
    Do not sign extend args using the sys32_ipc stub, that is
    buggy and unnecessary.
    
    Based upon an excellent report by Mikael Pettersson.
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    a95330df
systbls.S 16.2 KB