aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm64/include/asm/unistd32.h6
-rw-r--r--arch/arm64/kernel/sys32.S5
-rw-r--r--arch/mips/kernel/scall64-o32.S4
-rw-r--r--arch/parisc/kernel/sys_parisc32.c10
-rw-r--r--arch/parisc/kernel/syscall_table.S6
-rw-r--r--arch/powerpc/include/asm/systbl.h2
-rw-r--r--arch/powerpc/kernel/sys_ppc32.c18
-rw-r--r--arch/s390/kernel/compat_wrapper.S16
-rw-r--r--arch/s390/kernel/syscalls.S6
-rw-r--r--arch/sparc/kernel/signal32.c2
-rw-r--r--arch/sparc/kernel/systbls_64.S6
-rw-r--r--arch/x86/ia32/sys_ia32.c5
-rw-r--r--arch/x86/include/asm/sys_ia32.h1
-rw-r--r--arch/x86/syscalls/syscall_32.tbl6
14 files changed, 19 insertions, 74 deletions
diff --git a/arch/arm64/include/asm/unistd32.h b/arch/arm64/include/asm/unistd32.h
index e60e386178d1..12f22492df4c 100644
--- a/arch/arm64/include/asm/unistd32.h
+++ b/arch/arm64/include/asm/unistd32.h
@@ -40,7 +40,7 @@ __SYSCALL(15, sys_chmod)
40__SYSCALL(16, sys_lchown16) 40__SYSCALL(16, sys_lchown16)
41__SYSCALL(17, sys_ni_syscall) /* 17 was sys_break */ 41__SYSCALL(17, sys_ni_syscall) /* 17 was sys_break */
42__SYSCALL(18, sys_ni_syscall) /* 18 was sys_stat */ 42__SYSCALL(18, sys_ni_syscall) /* 18 was sys_stat */
43__SYSCALL(19, compat_sys_lseek_wrapper) 43__SYSCALL(19, compat_sys_lseek)
44__SYSCALL(20, sys_getpid) 44__SYSCALL(20, sys_getpid)
45__SYSCALL(21, compat_sys_mount) 45__SYSCALL(21, compat_sys_mount)
46__SYSCALL(22, sys_ni_syscall) /* 22 was sys_umount */ 46__SYSCALL(22, sys_ni_syscall) /* 22 was sys_umount */
@@ -113,8 +113,8 @@ __SYSCALL(88, sys_reboot)
113__SYSCALL(89, sys_ni_syscall) /* 89 was sys_readdir */ 113__SYSCALL(89, sys_ni_syscall) /* 89 was sys_readdir */
114__SYSCALL(90, sys_ni_syscall) /* 90 was sys_mmap */ 114__SYSCALL(90, sys_ni_syscall) /* 90 was sys_mmap */
115__SYSCALL(91, sys_munmap) 115__SYSCALL(91, sys_munmap)
116__SYSCALL(92, sys_truncate) 116__SYSCALL(92, compat_sys_truncate)
117__SYSCALL(93, sys_ftruncate) 117__SYSCALL(93, compat_sys_ftruncate)
118__SYSCALL(94, sys_fchmod) 118__SYSCALL(94, sys_fchmod)
119__SYSCALL(95, sys_fchown16) 119__SYSCALL(95, sys_fchown16)
120__SYSCALL(96, sys_getpriority) 120__SYSCALL(96, sys_getpriority)
diff --git a/arch/arm64/kernel/sys32.S b/arch/arm64/kernel/sys32.S
index 6abb05721614..9416d045a687 100644
--- a/arch/arm64/kernel/sys32.S
+++ b/arch/arm64/kernel/sys32.S
@@ -58,11 +58,6 @@ ENDPROC(compat_sys_fstatfs64_wrapper)
58 * in registers or that take 32-bit parameters which require sign 58 * in registers or that take 32-bit parameters which require sign
59 * extension. 59 * extension.
60 */ 60 */
61compat_sys_lseek_wrapper:
62 sxtw x1, w1
63 b sys_lseek
64ENDPROC(compat_sys_lseek_wrapper)
65
66compat_sys_pread64_wrapper: 61compat_sys_pread64_wrapper:
67 orr x3, x4, x5, lsl #32 62 orr x3, x4, x5, lsl #32
68 b sys_pread64 63 b sys_pread64
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S
index 402d7469e1a0..af8887f779f1 100644
--- a/arch/mips/kernel/scall64-o32.S
+++ b/arch/mips/kernel/scall64-o32.S
@@ -284,8 +284,8 @@ sys_call_table:
284 PTR compat_sys_old_readdir 284 PTR compat_sys_old_readdir
285 PTR sys_mips_mmap /* 4090 */ 285 PTR sys_mips_mmap /* 4090 */
286 PTR sys_munmap 286 PTR sys_munmap
287 PTR sys_truncate 287 PTR compat_sys_truncate
288 PTR sys_ftruncate 288 PTR compat_sys_ftruncate
289 PTR sys_fchmod 289 PTR sys_fchmod
290 PTR sys_fchown /* 4095 */ 290 PTR sys_fchown /* 4095 */
291 PTR sys_getpriority 291 PTR sys_getpriority
diff --git a/arch/parisc/kernel/sys_parisc32.c b/arch/parisc/kernel/sys_parisc32.c
index eca69bb8ef5f..051c8b90231f 100644
--- a/arch/parisc/kernel/sys_parisc32.c
+++ b/arch/parisc/kernel/sys_parisc32.c
@@ -79,16 +79,6 @@ asmlinkage long sys32_sendfile64(u32 out_fd, u32 in_fd,
79 (loff_t __user *)offset, count); 79 (loff_t __user *)offset, count);
80} 80}
81 81
82
83/* lseek() needs a wrapper because 'offset' can be negative, but the top
84 * half of the argument has been zeroed by syscall.S.
85 */
86
87asmlinkage int sys32_lseek(unsigned int fd, int offset, unsigned int origin)
88{
89 return sys_lseek(fd, offset, origin);
90}
91
92asmlinkage long sys32_semctl(int semid, int semnum, int cmd, union semun arg) 82asmlinkage long sys32_semctl(int semid, int semnum, int cmd, union semun arg)
93{ 83{
94 union semun u; 84 union semun u;
diff --git a/arch/parisc/kernel/syscall_table.S b/arch/parisc/kernel/syscall_table.S
index fc9cab1cc2df..884b91b028f0 100644
--- a/arch/parisc/kernel/syscall_table.S
+++ b/arch/parisc/kernel/syscall_table.S
@@ -76,7 +76,7 @@
76 ENTRY_SAME(socket) 76 ENTRY_SAME(socket)
77 /* struct stat is MAYBE identical wide and narrow ?? */ 77 /* struct stat is MAYBE identical wide and narrow ?? */
78 ENTRY_COMP(newstat) 78 ENTRY_COMP(newstat)
79 ENTRY_DIFF(lseek) 79 ENTRY_COMP(lseek)
80 ENTRY_SAME(getpid) /* 20 */ 80 ENTRY_SAME(getpid) /* 20 */
81 /* the 'void * data' parameter may need re-packing in wide */ 81 /* the 'void * data' parameter may need re-packing in wide */
82 ENTRY_COMP(mount) 82 ENTRY_COMP(mount)
@@ -165,8 +165,8 @@
165 ENTRY_SAME(mmap2) 165 ENTRY_SAME(mmap2)
166 ENTRY_SAME(mmap) /* 90 */ 166 ENTRY_SAME(mmap) /* 90 */
167 ENTRY_SAME(munmap) 167 ENTRY_SAME(munmap)
168 ENTRY_SAME(truncate) 168 ENTRY_COMP(truncate)
169 ENTRY_SAME(ftruncate) 169 ENTRY_COMP(ftruncate)
170 ENTRY_SAME(fchmod) 170 ENTRY_SAME(fchmod)
171 ENTRY_SAME(fchown) /* 95 */ 171 ENTRY_SAME(fchown) /* 95 */
172 ENTRY_SAME(getpriority) 172 ENTRY_SAME(getpriority)
diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h
index d906f33441c6..535b6d8a41cc 100644
--- a/arch/powerpc/include/asm/systbl.h
+++ b/arch/powerpc/include/asm/systbl.h
@@ -22,7 +22,7 @@ SYSCALL_SPU(chmod)
22SYSCALL_SPU(lchown) 22SYSCALL_SPU(lchown)
23SYSCALL(ni_syscall) 23SYSCALL(ni_syscall)
24OLDSYS(stat) 24OLDSYS(stat)
25SYSX_SPU(sys_lseek,ppc32_lseek,sys_lseek) 25COMPAT_SYS_SPU(lseek)
26SYSCALL_SPU(getpid) 26SYSCALL_SPU(getpid)
27COMPAT_SYS(mount) 27COMPAT_SYS(mount)
28SYSX(sys_ni_syscall,sys_oldumount,sys_oldumount) 28SYSX(sys_ni_syscall,sys_oldumount,sys_oldumount)
diff --git a/arch/powerpc/kernel/sys_ppc32.c b/arch/powerpc/kernel/sys_ppc32.c
index dbc44ba5b078..d0bafc0cdf06 100644
--- a/arch/powerpc/kernel/sys_ppc32.c
+++ b/arch/powerpc/kernel/sys_ppc32.c
@@ -146,24 +146,6 @@ asmlinkage long compat_sys_sendfile64_wrapper(u32 out_fd, u32 in_fd,
146 (off_t __user *)offset, count); 146 (off_t __user *)offset, count);
147} 147}
148 148
149off_t ppc32_lseek(unsigned int fd, u32 offset, unsigned int origin)
150{
151 /* sign extend n */
152 return sys_lseek(fd, (int)offset, origin);
153}
154
155long compat_sys_truncate(const char __user * path, u32 length)
156{
157 /* sign extend length */
158 return sys_truncate(path, (int)length);
159}
160
161long compat_sys_ftruncate(int fd, u32 length)
162{
163 /* sign extend length */
164 return sys_ftruncate(fd, (int)length);
165}
166
167unsigned long compat_sys_mmap2(unsigned long addr, size_t len, 149unsigned long compat_sys_mmap2(unsigned long addr, size_t len,
168 unsigned long prot, unsigned long flags, 150 unsigned long prot, unsigned long flags,
169 unsigned long fd, unsigned long pgoff) 151 unsigned long fd, unsigned long pgoff)
diff --git a/arch/s390/kernel/compat_wrapper.S b/arch/s390/kernel/compat_wrapper.S
index c14faf39ae36..3c98c4dc5aca 100644
--- a/arch/s390/kernel/compat_wrapper.S
+++ b/arch/s390/kernel/compat_wrapper.S
@@ -67,12 +67,6 @@ ENTRY(sys32_lchown16_wrapper)
67 llgfr %r4,%r4 # __kernel_old_uid_emu31_t 67 llgfr %r4,%r4 # __kernel_old_uid_emu31_t
68 jg sys32_lchown16 # branch to system call 68 jg sys32_lchown16 # branch to system call
69 69
70ENTRY(sys32_lseek_wrapper)
71 llgfr %r2,%r2 # unsigned int
72 lgfr %r3,%r3 # off_t
73 llgfr %r4,%r4 # unsigned int
74 jg sys_lseek # branch to system call
75
76#sys32_getpid_wrapper # void 70#sys32_getpid_wrapper # void
77 71
78ENTRY(sys32_mount_wrapper) 72ENTRY(sys32_mount_wrapper)
@@ -331,16 +325,6 @@ ENTRY(sys32_munmap_wrapper)
331 llgfr %r3,%r3 # size_t 325 llgfr %r3,%r3 # size_t
332 jg sys_munmap # branch to system call 326 jg sys_munmap # branch to system call
333 327
334ENTRY(sys32_truncate_wrapper)
335 llgtr %r2,%r2 # const char *
336 lgfr %r3,%r3 # long
337 jg sys_truncate # branch to system call
338
339ENTRY(sys32_ftruncate_wrapper)
340 llgfr %r2,%r2 # unsigned int
341 llgfr %r3,%r3 # unsigned long
342 jg sys_ftruncate # branch to system call
343
344ENTRY(sys32_fchmod_wrapper) 328ENTRY(sys32_fchmod_wrapper)
345 llgfr %r2,%r2 # unsigned int 329 llgfr %r2,%r2 # unsigned int
346 llgfr %r3,%r3 # mode_t 330 llgfr %r3,%r3 # mode_t
diff --git a/arch/s390/kernel/syscalls.S b/arch/s390/kernel/syscalls.S
index aaac708aa110..630b935d1284 100644
--- a/arch/s390/kernel/syscalls.S
+++ b/arch/s390/kernel/syscalls.S
@@ -27,7 +27,7 @@ SYSCALL(sys_chmod,sys_chmod,sys32_chmod_wrapper) /* 15 */
27SYSCALL(sys_lchown16,sys_ni_syscall,sys32_lchown16_wrapper) /* old lchown16 syscall*/ 27SYSCALL(sys_lchown16,sys_ni_syscall,sys32_lchown16_wrapper) /* old lchown16 syscall*/
28NI_SYSCALL /* old break syscall holder */ 28NI_SYSCALL /* old break syscall holder */
29NI_SYSCALL /* old stat syscall holder */ 29NI_SYSCALL /* old stat syscall holder */
30SYSCALL(sys_lseek,sys_lseek,sys32_lseek_wrapper) 30SYSCALL(sys_lseek,sys_lseek,compat_sys_lseek)
31SYSCALL(sys_getpid,sys_getpid,sys_getpid) /* 20 */ 31SYSCALL(sys_getpid,sys_getpid,sys_getpid) /* 20 */
32SYSCALL(sys_mount,sys_mount,sys32_mount_wrapper) 32SYSCALL(sys_mount,sys_mount,sys32_mount_wrapper)
33SYSCALL(sys_oldumount,sys_oldumount,sys32_oldumount_wrapper) 33SYSCALL(sys_oldumount,sys_oldumount,sys32_oldumount_wrapper)
@@ -100,8 +100,8 @@ SYSCALL(sys_reboot,sys_reboot,sys32_reboot_wrapper)
100SYSCALL(sys_ni_syscall,sys_ni_syscall,old32_readdir_wrapper) /* old readdir syscall */ 100SYSCALL(sys_ni_syscall,sys_ni_syscall,old32_readdir_wrapper) /* old readdir syscall */
101SYSCALL(sys_old_mmap,sys_old_mmap,old32_mmap_wrapper) /* 90 */ 101SYSCALL(sys_old_mmap,sys_old_mmap,old32_mmap_wrapper) /* 90 */
102SYSCALL(sys_munmap,sys_munmap,sys32_munmap_wrapper) 102SYSCALL(sys_munmap,sys_munmap,sys32_munmap_wrapper)
103SYSCALL(sys_truncate,sys_truncate,sys32_truncate_wrapper) 103SYSCALL(sys_truncate,sys_truncate,compat_sys_truncate)
104SYSCALL(sys_ftruncate,sys_ftruncate,sys32_ftruncate_wrapper) 104SYSCALL(sys_ftruncate,sys_ftruncate,compat_sys_ftruncate)
105SYSCALL(sys_fchmod,sys_fchmod,sys32_fchmod_wrapper) 105SYSCALL(sys_fchmod,sys_fchmod,sys32_fchmod_wrapper)
106SYSCALL(sys_fchown16,sys_ni_syscall,sys32_fchown16_wrapper) /* 95 old fchown16 syscall*/ 106SYSCALL(sys_fchown16,sys_ni_syscall,sys32_fchown16_wrapper) /* 95 old fchown16 syscall*/
107SYSCALL(sys_getpriority,sys_getpriority,sys32_getpriority_wrapper) 107SYSCALL(sys_getpriority,sys_getpriority,sys32_getpriority_wrapper)
diff --git a/arch/sparc/kernel/signal32.c b/arch/sparc/kernel/signal32.c
index cd5dc4d411d1..b524f91dd0e5 100644
--- a/arch/sparc/kernel/signal32.c
+++ b/arch/sparc/kernel/signal32.c
@@ -726,7 +726,7 @@ static inline void syscall_restart32(unsigned long orig_i0, struct pt_regs *regs
726 * want to handle. Thus you cannot kill init even with a SIGKILL even by 726 * want to handle. Thus you cannot kill init even with a SIGKILL even by
727 * mistake. 727 * mistake.
728 */ 728 */
729void do_signal32(sigset_t *oldset, struct pt_regs * regs) 729void do_signal32(struct pt_regs * regs)
730{ 730{
731 struct ksignal ksig; 731 struct ksignal ksig;
732 unsigned long orig_i0 = 0; 732 unsigned long orig_i0 = 0;
diff --git a/arch/sparc/kernel/systbls_64.S b/arch/sparc/kernel/systbls_64.S
index 260ddcd412bf..088134834dab 100644
--- a/arch/sparc/kernel/systbls_64.S
+++ b/arch/sparc/kernel/systbls_64.S
@@ -21,7 +21,7 @@ sys_call_table32:
21/*0*/ .word sys_restart_syscall, sparc_exit, sys_fork, sys_read, sys_write 21/*0*/ .word sys_restart_syscall, sparc_exit, sys_fork, sys_read, sys_write
22/*5*/ .word compat_sys_open, sys_close, compat_sys_wait4, sys_creat, sys_link 22/*5*/ .word compat_sys_open, sys_close, compat_sys_wait4, sys_creat, sys_link
23/*10*/ .word sys_unlink, sunos_execv, sys_chdir, sys_chown16, sys_mknod 23/*10*/ .word sys_unlink, sunos_execv, sys_chdir, sys_chown16, sys_mknod
24/*15*/ .word sys_chmod, sys_lchown16, sys_brk, sys_nis_syscall, sys_lseek 24/*15*/ .word sys_chmod, sys_lchown16, sys_brk, sys_nis_syscall, compat_sys_lseek
25/*20*/ .word sys_getpid, sys_capget, sys_capset, sys_setuid16, sys_getuid16 25/*20*/ .word sys_getpid, sys_capget, sys_capset, sys_setuid16, sys_getuid16
26/*25*/ .word sys32_vmsplice, compat_sys_ptrace, sys_alarm, compat_sys_sigaltstack, sys_pause 26/*25*/ .word sys32_vmsplice, compat_sys_ptrace, sys_alarm, compat_sys_sigaltstack, sys_pause
27/*30*/ .word compat_sys_utime, sys_lchown, sys_fchown, sys_access, sys_nice 27/*30*/ .word compat_sys_utime, sys_lchown, sys_fchown, sys_access, sys_nice
@@ -43,8 +43,8 @@ sys_call_table32:
43/*110*/ .word sys_setresgid, sys_getresgid, sys_setregid, sys_nis_syscall, sys_nis_syscall 43/*110*/ .word sys_setresgid, sys_getresgid, sys_setregid, sys_nis_syscall, sys_nis_syscall
44 .word sys_getgroups, compat_sys_gettimeofday, sys32_getrusage, sys_nis_syscall, sys_getcwd 44 .word sys_getgroups, compat_sys_gettimeofday, sys32_getrusage, sys_nis_syscall, sys_getcwd
45/*120*/ .word compat_sys_readv, compat_sys_writev, compat_sys_settimeofday, sys_fchown16, sys_fchmod 45/*120*/ .word compat_sys_readv, compat_sys_writev, compat_sys_settimeofday, sys_fchown16, sys_fchmod
46 .word sys_nis_syscall, sys_setreuid16, sys_setregid16, sys_rename, sys_truncate 46 .word sys_nis_syscall, sys_setreuid16, sys_setregid16, sys_rename, compat_sys_truncate
47/*130*/ .word sys_ftruncate, sys_flock, compat_sys_lstat64, sys_nis_syscall, sys_nis_syscall 47/*130*/ .word compat_sys_ftruncate, sys_flock, compat_sys_lstat64, sys_nis_syscall, sys_nis_syscall
48 .word sys_nis_syscall, sys_mkdir, sys_rmdir, compat_sys_utimes, compat_sys_stat64 48 .word sys_nis_syscall, sys_mkdir, sys_rmdir, compat_sys_utimes, compat_sys_stat64
49/*140*/ .word sys_sendfile64, sys_nis_syscall, sys32_futex, sys_gettid, compat_sys_getrlimit 49/*140*/ .word sys_sendfile64, sys_nis_syscall, sys32_futex, sys_gettid, compat_sys_getrlimit
50 .word compat_sys_setrlimit, sys_pivot_root, sys_prctl, sys_pciconfig_read, sys_pciconfig_write 50 .word compat_sys_setrlimit, sys_pivot_root, sys_prctl, sys_pciconfig_read, sys_pciconfig_write
diff --git a/arch/x86/ia32/sys_ia32.c b/arch/x86/ia32/sys_ia32.c
index 592f5a9a9c0e..ad7a20cbc699 100644
--- a/arch/x86/ia32/sys_ia32.c
+++ b/arch/x86/ia32/sys_ia32.c
@@ -218,11 +218,6 @@ asmlinkage long sys32_sendfile(int out_fd, int in_fd,
218 * Some system calls that need sign extended arguments. This could be 218 * Some system calls that need sign extended arguments. This could be
219 * done by a generic wrapper. 219 * done by a generic wrapper.
220 */ 220 */
221long sys32_lseek(unsigned int fd, int offset, unsigned int whence)
222{
223 return sys_lseek(fd, offset, whence);
224}
225
226long sys32_kill(int pid, int sig) 221long sys32_kill(int pid, int sig)
227{ 222{
228 return sys_kill(pid, sig); 223 return sys_kill(pid, sig);
diff --git a/arch/x86/include/asm/sys_ia32.h b/arch/x86/include/asm/sys_ia32.h
index 0218d917f509..8459efc39686 100644
--- a/arch/x86/include/asm/sys_ia32.h
+++ b/arch/x86/include/asm/sys_ia32.h
@@ -43,7 +43,6 @@ asmlinkage long sys32_pwrite(unsigned int, const char __user *, u32, u32, u32);
43asmlinkage long sys32_personality(unsigned long); 43asmlinkage long sys32_personality(unsigned long);
44asmlinkage long sys32_sendfile(int, int, compat_off_t __user *, s32); 44asmlinkage long sys32_sendfile(int, int, compat_off_t __user *, s32);
45 45
46long sys32_lseek(unsigned int, int, unsigned int);
47long sys32_kill(int, int); 46long sys32_kill(int, int);
48long sys32_fadvise64_64(int, __u32, __u32, __u32, __u32, int); 47long sys32_fadvise64_64(int, __u32, __u32, __u32, __u32, int);
49long sys32_vm86_warning(void); 48long sys32_vm86_warning(void);
diff --git a/arch/x86/syscalls/syscall_32.tbl b/arch/x86/syscalls/syscall_32.tbl
index f2fe78ff22cc..e6d55f0064df 100644
--- a/arch/x86/syscalls/syscall_32.tbl
+++ b/arch/x86/syscalls/syscall_32.tbl
@@ -25,7 +25,7 @@
2516 i386 lchown sys_lchown16 2516 i386 lchown sys_lchown16
2617 i386 break 2617 i386 break
2718 i386 oldstat sys_stat 2718 i386 oldstat sys_stat
2819 i386 lseek sys_lseek sys32_lseek 2819 i386 lseek sys_lseek compat_sys_lseek
2920 i386 getpid sys_getpid 2920 i386 getpid sys_getpid
3021 i386 mount sys_mount compat_sys_mount 3021 i386 mount sys_mount compat_sys_mount
3122 i386 umount sys_oldumount 3122 i386 umount sys_oldumount
@@ -98,8 +98,8 @@
9889 i386 readdir sys_old_readdir compat_sys_old_readdir 9889 i386 readdir sys_old_readdir compat_sys_old_readdir
9990 i386 mmap sys_old_mmap sys32_mmap 9990 i386 mmap sys_old_mmap sys32_mmap
10091 i386 munmap sys_munmap 10091 i386 munmap sys_munmap
10192 i386 truncate sys_truncate 10192 i386 truncate sys_truncate compat_sys_truncate
10293 i386 ftruncate sys_ftruncate 10293 i386 ftruncate sys_ftruncate compat_sys_ftruncate
10394 i386 fchmod sys_fchmod 10394 i386 fchmod sys_fchmod
10495 i386 fchown sys_fchown16 10495 i386 fchown sys_fchown16
10596 i386 getpriority sys_getpriority 10596 i386 getpriority sys_getpriority