diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-03-02 11:34:06 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-03-02 11:34:06 -0500 |
commit | 14cc0b55b70e297a4b5411733d58c6cdc2d7f1be (patch) | |
tree | 2aa0fe9d267d5ae1ab1b47a67d31fbbc1dbf928e /arch/s390/kernel | |
parent | 3cfb07743a5bffecba83f0da26444e85c0a9bfbb (diff) | |
parent | 0e803bafbb7d1b8a9031104f1a982a01b45da4c6 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal
Pull signal/compat fixes from Al Viro:
"Fixes for several regressions introduced in the last signal.git pile,
along with fixing bugs in truncate and ftruncate compat (on just about
anything biarch at least one of those two had been done wrong)."
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal:
compat: restore timerfd settime and gettime compat syscalls
[regression] braino in "sparc: convert to ksignal"
fix compat truncate/ftruncate
switch lseek to COMPAT_SYSCALL_DEFINE
lseek() and truncate() on sparc really need sign extension
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r-- | arch/s390/kernel/compat_wrapper.S | 16 | ||||
-rw-r--r-- | arch/s390/kernel/syscalls.S | 6 |
2 files changed, 3 insertions, 19 deletions
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 | ||
70 | ENTRY(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 | ||
78 | ENTRY(sys32_mount_wrapper) | 72 | ENTRY(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 | ||
334 | ENTRY(sys32_truncate_wrapper) | ||
335 | llgtr %r2,%r2 # const char * | ||
336 | lgfr %r3,%r3 # long | ||
337 | jg sys_truncate # branch to system call | ||
338 | |||
339 | ENTRY(sys32_ftruncate_wrapper) | ||
340 | llgfr %r2,%r2 # unsigned int | ||
341 | llgfr %r3,%r3 # unsigned long | ||
342 | jg sys_ftruncate # branch to system call | ||
343 | |||
344 | ENTRY(sys32_fchmod_wrapper) | 328 | ENTRY(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 */ | |||
27 | SYSCALL(sys_lchown16,sys_ni_syscall,sys32_lchown16_wrapper) /* old lchown16 syscall*/ | 27 | SYSCALL(sys_lchown16,sys_ni_syscall,sys32_lchown16_wrapper) /* old lchown16 syscall*/ |
28 | NI_SYSCALL /* old break syscall holder */ | 28 | NI_SYSCALL /* old break syscall holder */ |
29 | NI_SYSCALL /* old stat syscall holder */ | 29 | NI_SYSCALL /* old stat syscall holder */ |
30 | SYSCALL(sys_lseek,sys_lseek,sys32_lseek_wrapper) | 30 | SYSCALL(sys_lseek,sys_lseek,compat_sys_lseek) |
31 | SYSCALL(sys_getpid,sys_getpid,sys_getpid) /* 20 */ | 31 | SYSCALL(sys_getpid,sys_getpid,sys_getpid) /* 20 */ |
32 | SYSCALL(sys_mount,sys_mount,sys32_mount_wrapper) | 32 | SYSCALL(sys_mount,sys_mount,sys32_mount_wrapper) |
33 | SYSCALL(sys_oldumount,sys_oldumount,sys32_oldumount_wrapper) | 33 | SYSCALL(sys_oldumount,sys_oldumount,sys32_oldumount_wrapper) |
@@ -100,8 +100,8 @@ SYSCALL(sys_reboot,sys_reboot,sys32_reboot_wrapper) | |||
100 | SYSCALL(sys_ni_syscall,sys_ni_syscall,old32_readdir_wrapper) /* old readdir syscall */ | 100 | SYSCALL(sys_ni_syscall,sys_ni_syscall,old32_readdir_wrapper) /* old readdir syscall */ |
101 | SYSCALL(sys_old_mmap,sys_old_mmap,old32_mmap_wrapper) /* 90 */ | 101 | SYSCALL(sys_old_mmap,sys_old_mmap,old32_mmap_wrapper) /* 90 */ |
102 | SYSCALL(sys_munmap,sys_munmap,sys32_munmap_wrapper) | 102 | SYSCALL(sys_munmap,sys_munmap,sys32_munmap_wrapper) |
103 | SYSCALL(sys_truncate,sys_truncate,sys32_truncate_wrapper) | 103 | SYSCALL(sys_truncate,sys_truncate,compat_sys_truncate) |
104 | SYSCALL(sys_ftruncate,sys_ftruncate,sys32_ftruncate_wrapper) | 104 | SYSCALL(sys_ftruncate,sys_ftruncate,compat_sys_ftruncate) |
105 | SYSCALL(sys_fchmod,sys_fchmod,sys32_fchmod_wrapper) | 105 | SYSCALL(sys_fchmod,sys_fchmod,sys32_fchmod_wrapper) |
106 | SYSCALL(sys_fchown16,sys_ni_syscall,sys32_fchown16_wrapper) /* 95 old fchown16 syscall*/ | 106 | SYSCALL(sys_fchown16,sys_ni_syscall,sys32_fchown16_wrapper) /* 95 old fchown16 syscall*/ |
107 | SYSCALL(sys_getpriority,sys_getpriority,sys32_getpriority_wrapper) | 107 | SYSCALL(sys_getpriority,sys_getpriority,sys32_getpriority_wrapper) |