Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
208096ee
Commit
208096ee
authored
Feb 25, 2014
by
Heiko Carstens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s390/compat: convert to COMPAT_SYSCALL_DEFINEx part 2
Signed-off-by:
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
parent
c6c0f58f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
44 deletions
+18
-44
arch/s390/kernel/compat_linux.c
arch/s390/kernel/compat_linux.c
+8
-7
arch/s390/kernel/compat_linux.h
arch/s390/kernel/compat_linux.h
+5
-5
arch/s390/kernel/compat_wrapper.S
arch/s390/kernel/compat_wrapper.S
+0
-27
arch/s390/kernel/syscalls.S
arch/s390/kernel/syscalls.S
+5
-5
No files found.
arch/s390/kernel/compat_linux.c
View file @
208096ee
...
...
@@ -113,23 +113,24 @@ COMPAT_SYSCALL_DEFINE1(s390_setgid16, u16, gid)
return
sys_setgid
((
gid_t
)
gid
);
}
asmlinkage
long
sys32_setreuid16
(
u16
ruid
,
u16
euid
)
COMPAT_SYSCALL_DEFINE2
(
s390_setreuid16
,
u16
,
ruid
,
u16
,
euid
)
{
return
sys_setreuid
(
low2highuid
(
ruid
),
low2highuid
(
euid
));
}
asmlinkage
long
sys32_setuid16
(
u16
uid
)
COMPAT_SYSCALL_DEFINE1
(
s390_setuid16
,
u16
,
uid
)
{
return
sys_setuid
((
uid_t
)
uid
);
}
asmlinkage
long
sys32_setresuid16
(
u16
ruid
,
u16
euid
,
u16
suid
)
COMPAT_SYSCALL_DEFINE3
(
s390_setresuid16
,
u16
,
ruid
,
u16
,
euid
,
u16
,
suid
)
{
return
sys_setresuid
(
low2highuid
(
ruid
),
low2highuid
(
euid
),
low2highuid
(
suid
));
}
asmlinkage
long
sys32_getresuid16
(
u16
__user
*
ruidp
,
u16
__user
*
euidp
,
u16
__user
*
suidp
)
COMPAT_SYSCALL_DEFINE3
(
s390_getresuid16
,
u16
__user
*
,
ruidp
,
u16
__user
*
,
euidp
,
u16
__user
*
,
suidp
)
{
const
struct
cred
*
cred
=
current_cred
();
int
retval
;
...
...
@@ -146,7 +147,7 @@ asmlinkage long sys32_getresuid16(u16 __user *ruidp, u16 __user *euidp, u16 __us
return
retval
;
}
asmlinkage
long
sys32_setresgid16
(
u16
rgid
,
u16
egid
,
u16
sgid
)
COMPAT_SYSCALL_DEFINE3
(
s390_setresgid16
,
u16
,
rgid
,
u16
,
egid
,
u16
,
sgid
)
{
return
sys_setresgid
(
low2highgid
(
rgid
),
low2highgid
(
egid
),
low2highgid
(
sgid
));
...
...
arch/s390/kernel/compat_linux.h
View file @
208096ee
...
...
@@ -81,11 +81,11 @@ long compat_sys_s390_lchown16(const char __user *filename, u16 user, u16 group);
long
compat_sys_s390_fchown16
(
unsigned
int
fd
,
u16
user
,
u16
group
);
long
compat_sys_s390_setregid16
(
u16
rgid
,
u16
egid
);
long
compat_sys_s390_setgid16
(
u16
gid
);
long
sys32
_setreuid16
(
u16
ruid
,
u16
euid
);
long
sys32
_setuid16
(
u16
uid
);
long
sys32
_setresuid16
(
u16
ruid
,
u16
euid
,
u16
suid
);
long
sys32
_getresuid16
(
u16
__user
*
ruid
,
u16
__user
*
euid
,
u16
__user
*
suid
);
long
sys32
_setresgid16
(
u16
rgid
,
u16
egid
,
u16
sgid
);
long
compat_sys_s390
_setreuid16
(
u16
ruid
,
u16
euid
);
long
compat_sys_s390
_setuid16
(
u16
uid
);
long
compat_sys_s390
_setresuid16
(
u16
ruid
,
u16
euid
,
u16
suid
);
long
compat_sys_s390
_getresuid16
(
u16
__user
*
ruid
,
u16
__user
*
euid
,
u16
__user
*
suid
);
long
compat_sys_s390
_setresgid16
(
u16
rgid
,
u16
egid
,
u16
sgid
);
long
sys32_getresgid16
(
u16
__user
*
rgid
,
u16
__user
*
egid
,
u16
__user
*
sgid
);
long
sys32_setfsuid16
(
u16
uid
);
long
sys32_setfsgid16
(
u16
gid
);
...
...
arch/s390/kernel/compat_wrapper.S
View file @
208096ee
...
...
@@ -75,10 +75,6 @@ ENTRY(sys32_oldumount_wrapper)
llgtr
%
r2
,%
r2
#
char
*
jg
sys_oldumount
#
branch
to
system
call
ENTRY
(
sys32_setuid16_wrapper
)
llgfr
%
r2
,%
r2
#
__kernel_old_uid_emu31_t
jg
sys32_setuid16
#
branch
to
system
call
#
sys32_getuid16_wrapper
#
void
ENTRY
(
sys32_ptrace_wrapper
)
...
...
@@ -204,11 +200,6 @@ ENTRY(sys32_dup2_wrapper)
#
sys32_setsid_wrapper
#
void
ENTRY
(
sys32_setreuid16_wrapper
)
llgfr
%
r2
,%
r2
#
__kernel_old_uid_emu31_t
llgfr
%
r3
,%
r3
#
__kernel_old_uid_emu31_t
jg
sys32_setreuid16
#
branch
to
system
call
ENTRY
(
sys_sigsuspend_wrapper
)
lgfr
%
r2
,%
r2
#
int
lgfr
%
r3
,%
r3
#
int
...
...
@@ -555,30 +546,12 @@ ENTRY(sys32_mremap_wrapper)
llgfr
%
r6
,%
r6
#
unsigned
long
jg
sys_mremap
#
branch
to
system
call
ENTRY
(
sys32_setresuid16_wrapper
)
llgfr
%
r2
,%
r2
#
__kernel_old_uid_emu31_t
llgfr
%
r3
,%
r3
#
__kernel_old_uid_emu31_t
llgfr
%
r4
,%
r4
#
__kernel_old_uid_emu31_t
jg
sys32_setresuid16
#
branch
to
system
call
ENTRY
(
sys32_getresuid16_wrapper
)
llgtr
%
r2
,%
r2
#
__kernel_old_uid_emu31_t
*
llgtr
%
r3
,%
r3
#
__kernel_old_uid_emu31_t
*
llgtr
%
r4
,%
r4
#
__kernel_old_uid_emu31_t
*
jg
sys32_getresuid16
#
branch
to
system
call
ENTRY
(
sys32_poll_wrapper
)
llgtr
%
r2
,%
r2
#
struct
pollfd
*
llgfr
%
r3
,%
r3
#
unsigned
int
lgfr
%
r4
,%
r4
#
int
jg
sys_poll
#
branch
to
system
call
ENTRY
(
sys32_setresgid16_wrapper
)
llgfr
%
r2
,%
r2
#
__kernel_old_gid_emu31_t
llgfr
%
r3
,%
r3
#
__kernel_old_gid_emu31_t
llgfr
%
r4
,%
r4
#
__kernel_old_gid_emu31_t
jg
sys32_setresgid16
#
branch
to
system
call
ENTRY
(
sys32_getresgid16_wrapper
)
llgtr
%
r2
,%
r2
#
__kernel_old_gid_emu31_t
*
llgtr
%
r3
,%
r3
#
__kernel_old_gid_emu31_t
*
...
...
arch/s390/kernel/syscalls.S
View file @
208096ee
...
...
@@ -31,7 +31,7 @@ SYSCALL(sys_lseek,sys_lseek,compat_sys_lseek)
SYSCALL
(
sys_getpid
,
sys_getpid
,
sys_getpid
)
/
*
20
*/
SYSCALL
(
sys_mount
,
sys_mount
,
sys32_mount_wrapper
)
SYSCALL
(
sys_oldumount
,
sys_oldumount
,
sys32_oldumount_wrapper
)
SYSCALL
(
sys_setuid16
,
sys_ni_syscall
,
sys32_setuid16_wrapper
)
/
*
old
setuid16
syscall
*/
SYSCALL
(
sys_setuid16
,
sys_ni_syscall
,
compat_sys_s390_setuid16
)
/
*
old
setuid16
syscall
*/
SYSCALL
(
sys_getuid16
,
sys_ni_syscall
,
sys32_getuid16
)
/
*
old
getuid16
syscall
*/
SYSCALL
(
sys_stime
,
sys_ni_syscall
,
sys32_stime_wrapper
)
/
*
25
old
stime
syscall
*/
SYSCALL
(
sys_ptrace
,
sys_ptrace
,
sys32_ptrace_wrapper
)
...
...
@@ -78,7 +78,7 @@ SYSCALL(sys_setsid,sys_setsid,sys_setsid)
SYSCALL
(
sys_sigaction
,
sys_sigaction
,
compat_sys_sigaction
)
NI_SYSCALL
/
*
old
sgetmask
syscall
*/
NI_SYSCALL
/
*
old
ssetmask
syscall
*/
SYSCALL
(
sys_setreuid16
,
sys_ni_syscall
,
sys32_setreuid16_wrapper
)
/
*
old
setreuid16
syscall
*/
SYSCALL
(
sys_setreuid16
,
sys_ni_syscall
,
compat_sys_s390_setreuid16
)
/
*
old
setreuid16
syscall
*/
SYSCALL
(
sys_setregid16
,
sys_ni_syscall
,
compat_sys_s390_setregid16
)
/
*
old
setregid16
syscall
*/
SYSCALL
(
sys_sigsuspend
,
sys_sigsuspend
,
sys_sigsuspend_wrapper
)
SYSCALL
(
sys_sigpending
,
sys_sigpending
,
compat_sys_sigpending_wrapper
)
...
...
@@ -172,13 +172,13 @@ SYSCALL(sys_sched_get_priority_min,sys_sched_get_priority_min,sys32_sched_get_pr
SYSCALL
(
sys_sched_rr_get_interval
,
sys_sched_rr_get_interval
,
compat_sys_sched_rr_get_interval
)
SYSCALL
(
sys_nanosleep
,
sys_nanosleep
,
compat_sys_nanosleep_wrapper
)
SYSCALL
(
sys_mremap
,
sys_mremap
,
sys32_mremap_wrapper
)
SYSCALL
(
sys_setresuid16
,
sys_ni_syscall
,
sys32_setresuid16_wrapper
)
/
*
old
setresuid16
syscall
*/
SYSCALL
(
sys_getresuid16
,
sys_ni_syscall
,
sys32_getresuid16_wrapper
)
/
*
165
old
getresuid16
syscall
*/
SYSCALL
(
sys_setresuid16
,
sys_ni_syscall
,
compat_sys_s390_setresuid16
)
/
*
old
setresuid16
syscall
*/
SYSCALL
(
sys_getresuid16
,
sys_ni_syscall
,
compat_sys_s390_getresuid16
)
/
*
165
old
getresuid16
syscall
*/
NI_SYSCALL
/
*
for
vm86
*/
NI_SYSCALL
/
*
old
sys_query_module
*/
SYSCALL
(
sys_poll
,
sys_poll
,
sys32_poll_wrapper
)
NI_SYSCALL
/
*
old
nfsservctl
*/
SYSCALL
(
sys_setresgid16
,
sys_ni_syscall
,
sys32_setresgid16_wrapper
)
/
*
170
old
setresgid16
syscall
*/
SYSCALL
(
sys_setresgid16
,
sys_ni_syscall
,
compat_sys_s390_setresgid16
)
/
*
170
old
setresgid16
syscall
*/
SYSCALL
(
sys_getresgid16
,
sys_ni_syscall
,
sys32_getresgid16_wrapper
)
/
*
old
getresgid16
syscall
*/
SYSCALL
(
sys_prctl
,
sys_prctl
,
sys32_prctl_wrapper
)
SYSCALL
(
sys_rt_sigreturn
,
sys_rt_sigreturn
,
sys32_rt_sigreturn
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment