Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
7eddd99c
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
6
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7eddd99c
编写于
12月 25, 2012
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
s390: switch to generic old sigaction()
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
f036b943
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
3 addition
and
89 deletion
+3
-89
arch/s390/Kconfig
arch/s390/Kconfig
+2
-0
arch/s390/include/asm/signal.h
arch/s390/include/asm/signal.h
+0
-7
arch/s390/kernel/compat_linux.h
arch/s390/kernel/compat_linux.h
+0
-11
arch/s390/kernel/compat_signal.c
arch/s390/kernel/compat_signal.c
+0
-37
arch/s390/kernel/compat_wrapper.S
arch/s390/kernel/compat_wrapper.S
+1
-1
arch/s390/kernel/entry.h
arch/s390/kernel/entry.h
+0
-2
arch/s390/kernel/signal.c
arch/s390/kernel/signal.c
+0
-31
未找到文件。
arch/s390/Kconfig
浏览文件 @
7eddd99c
...
...
@@ -146,6 +146,7 @@ config S390
select GENERIC_COMPAT_RT_SIGPROCMASK
select GENERIC_COMPAT_RT_SIGPENDING
select OLD_SIGSUSPEND3
select OLD_SIGACTION
config SCHED_OMIT_FRAME_POINTER
def_bool y
...
...
@@ -255,6 +256,7 @@ config COMPAT
depends on 64BIT
select COMPAT_BINFMT_ELF if BINFMT_ELF
select ARCH_WANT_OLD_COMPAT_IPC
select COMPAT_OLD_SIGACTION
help
Select this option if you want to enable your system kernel to
handle system-calls from ELF binaries for 31 bit ESA. This option
...
...
arch/s390/include/asm/signal.h
浏览文件 @
7eddd99c
...
...
@@ -21,12 +21,5 @@ typedef struct {
unsigned
long
sig
[
_NSIG_WORDS
];
}
sigset_t
;
struct
old_sigaction
{
__sighandler_t
sa_handler
;
old_sigset_t
sa_mask
;
unsigned
long
sa_flags
;
void
(
*
sa_restorer
)(
void
);
};
#define __ARCH_HAS_SA_RESTORER
#endif
arch/s390/kernel/compat_linux.h
浏览文件 @
7eddd99c
...
...
@@ -17,13 +17,6 @@ struct ipc_kludge_32 {
__s32
msgtyp
;
};
struct
old_sigaction32
{
__u32
sa_handler
;
/* Really a pointer, but need to deal with 32 bits */
compat_old_sigset_t
sa_mask
;
/* A 32 bit mask */
__u32
sa_flags
;
__u32
sa_restorer
;
/* Another 32 bit pointer */
};
/* asm/sigcontext.h */
typedef
union
{
...
...
@@ -81,8 +74,6 @@ struct ucontext32 {
struct
stat64_emu31
;
struct
mmap_arg_struct_emu31
;
struct
fadvise64_64_args
;
struct
old_sigaction32
;
struct
old_sigaction32
;
long
sys32_chown16
(
const
char
__user
*
filename
,
u16
user
,
u16
group
);
long
sys32_lchown16
(
const
char
__user
*
filename
,
u16
user
,
u16
group
);
...
...
@@ -131,6 +122,4 @@ long sys32_read(unsigned int fd, char __user * buf, size_t count);
long
sys32_write
(
unsigned
int
fd
,
const
char
__user
*
buf
,
size_t
count
);
long
sys32_fadvise64
(
int
fd
,
loff_t
offset
,
size_t
len
,
int
advise
);
long
sys32_fadvise64_64
(
struct
fadvise64_64_args
__user
*
args
);
long
sys32_sigaction
(
int
sig
,
const
struct
old_sigaction32
__user
*
act
,
struct
old_sigaction32
__user
*
oact
);
#endif
/* _ASM_S390X_S390_H */
arch/s390/kernel/compat_signal.c
浏览文件 @
7eddd99c
...
...
@@ -157,43 +157,6 @@ int copy_siginfo_from_user32(siginfo_t *to, compat_siginfo_t __user *from)
return
err
;
}
asmlinkage
long
sys32_sigaction
(
int
sig
,
const
struct
old_sigaction32
__user
*
act
,
struct
old_sigaction32
__user
*
oact
)
{
struct
k_sigaction
new_ka
,
old_ka
;
unsigned
long
sa_handler
,
sa_restorer
;
int
ret
;
if
(
act
)
{
compat_old_sigset_t
mask
;
if
(
!
access_ok
(
VERIFY_READ
,
act
,
sizeof
(
*
act
))
||
__get_user
(
sa_handler
,
&
act
->
sa_handler
)
||
__get_user
(
sa_restorer
,
&
act
->
sa_restorer
)
||
__get_user
(
new_ka
.
sa
.
sa_flags
,
&
act
->
sa_flags
)
||
__get_user
(
mask
,
&
act
->
sa_mask
))
return
-
EFAULT
;
new_ka
.
sa
.
sa_handler
=
(
__sighandler_t
)
sa_handler
;
new_ka
.
sa
.
sa_restorer
=
(
void
(
*
)(
void
))
sa_restorer
;
siginitset
(
&
new_ka
.
sa
.
sa_mask
,
mask
);
}
ret
=
do_sigaction
(
sig
,
act
?
&
new_ka
:
NULL
,
oact
?
&
old_ka
:
NULL
);
if
(
!
ret
&&
oact
)
{
sa_handler
=
(
unsigned
long
)
old_ka
.
sa
.
sa_handler
;
sa_restorer
=
(
unsigned
long
)
old_ka
.
sa
.
sa_restorer
;
if
(
!
access_ok
(
VERIFY_WRITE
,
oact
,
sizeof
(
*
oact
))
||
__put_user
(
sa_handler
,
&
oact
->
sa_handler
)
||
__put_user
(
sa_restorer
,
&
oact
->
sa_restorer
)
||
__put_user
(
old_ka
.
sa
.
sa_flags
,
&
oact
->
sa_flags
)
||
__put_user
(
old_ka
.
sa
.
sa_mask
.
sig
[
0
],
&
oact
->
sa_mask
))
return
-
EFAULT
;
}
return
ret
;
}
static
int
save_sigregs32
(
struct
pt_regs
*
regs
,
_sigregs32
__user
*
sregs
)
{
_s390_regs_common32
regs32
;
...
...
arch/s390/kernel/compat_wrapper.S
浏览文件 @
7eddd99c
...
...
@@ -230,7 +230,7 @@ ENTRY(sys32_sigaction_wrapper)
lgfr
%
r2
,%
r2
#
int
llgtr
%
r3
,%
r3
#
const
struct
old_sigaction
*
llgtr
%
r4
,%
r4
#
struct
old_sigaction32
*
jg
sys32
_sigaction
#
branch
to
system
call
jg
compat_sys
_sigaction
#
branch
to
system
call
ENTRY
(
sys32_setreuid16_wrapper
)
llgfr
%
r2
,%
r2
#
__kernel_old_uid_emu31_t
...
...
arch/s390/kernel/entry.h
浏览文件 @
7eddd99c
...
...
@@ -73,8 +73,6 @@ long sys_s390_fadvise64(int fd, u32 offset_high, u32 offset_low,
long
sys_s390_fadvise64_64
(
struct
fadvise64_64_args
__user
*
args
);
long
sys_s390_fallocate
(
int
fd
,
int
mode
,
loff_t
offset
,
u32
len_high
,
u32
len_low
);
long
sys_sigaction
(
int
sig
,
const
struct
old_sigaction
__user
*
act
,
struct
old_sigaction
__user
*
oact
);
long
sys_sigreturn
(
void
);
long
sys_rt_sigreturn
(
void
);
long
sys32_sigreturn
(
void
);
...
...
arch/s390/kernel/signal.c
浏览文件 @
7eddd99c
...
...
@@ -48,37 +48,6 @@ typedef struct
struct
ucontext
uc
;
}
rt_sigframe
;
SYSCALL_DEFINE3
(
sigaction
,
int
,
sig
,
const
struct
old_sigaction
__user
*
,
act
,
struct
old_sigaction
__user
*
,
oact
)
{
struct
k_sigaction
new_ka
,
old_ka
;
int
ret
;
if
(
act
)
{
old_sigset_t
mask
;
if
(
!
access_ok
(
VERIFY_READ
,
act
,
sizeof
(
*
act
))
||
__get_user
(
new_ka
.
sa
.
sa_handler
,
&
act
->
sa_handler
)
||
__get_user
(
new_ka
.
sa
.
sa_restorer
,
&
act
->
sa_restorer
)
||
__get_user
(
new_ka
.
sa
.
sa_flags
,
&
act
->
sa_flags
)
||
__get_user
(
mask
,
&
act
->
sa_mask
))
return
-
EFAULT
;
siginitset
(
&
new_ka
.
sa
.
sa_mask
,
mask
);
}
ret
=
do_sigaction
(
sig
,
act
?
&
new_ka
:
NULL
,
oact
?
&
old_ka
:
NULL
);
if
(
!
ret
&&
oact
)
{
if
(
!
access_ok
(
VERIFY_WRITE
,
oact
,
sizeof
(
*
oact
))
||
__put_user
(
old_ka
.
sa
.
sa_handler
,
&
oact
->
sa_handler
)
||
__put_user
(
old_ka
.
sa
.
sa_restorer
,
&
oact
->
sa_restorer
)
||
__put_user
(
old_ka
.
sa
.
sa_flags
,
&
oact
->
sa_flags
)
||
__put_user
(
old_ka
.
sa
.
sa_mask
.
sig
[
0
],
&
oact
->
sa_mask
))
return
-
EFAULT
;
}
return
ret
;
}
/* Returns non-zero on fault. */
static
int
save_sigregs
(
struct
pt_regs
*
regs
,
_sigregs
__user
*
sregs
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录