1 From foo@baz Thu Aug 7 22:33:35 PDT 2014
2 From: "David S. Miller" <davem@davemloft.net>
3 Date: Wed, 30 Apr 2014 19:37:48 -0700
4 Subject: sparc64: Fix argument sign extension for compat_sys_futex().
6 From: "David S. Miller" <davem@davemloft.net>
8 [ Upstream commit aa3449ee9c87d9b7660dd1493248abcc57769e31 ]
10 Only the second argument, 'op', is signed.
12 Signed-off-by: David S. Miller <davem@davemloft.net>
13 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 arch/sparc/kernel/sys32.S | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
18 --- a/arch/sparc/kernel/sys32.S
19 +++ b/arch/sparc/kernel/sys32.S
20 @@ -87,7 +87,7 @@ SIGN1(sys32_io_submit, compat_sys_io_sub
21 SIGN1(sys32_mq_open, compat_sys_mq_open, %o1)
22 SIGN1(sys32_select, compat_sys_select, %o0)
23 SIGN1(sys32_mkdir, sys_mkdir, %o1)
24 -SIGN3(sys32_futex, compat_sys_futex, %o1, %o2, %o5)
25 +SIGN1(sys32_futex, compat_sys_futex, %o1)
26 SIGN1(sys32_sysfs, compat_sys_sysfs, %o0)
27 SIGN2(sys32_sendfile, compat_sys_sendfile, %o0, %o1)
28 SIGN2(sys32_sendfile64, compat_sys_sendfile64, %o0, %o1)