Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
51682036
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
51682036
编写于
12月 25, 2012
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
arm64: switch to generic old sigaction() (compat-only)
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
02323a9d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
1 addition
and
45 deletion
+1
-45
arch/arm64/Kconfig
arch/arm64/Kconfig
+1
-0
arch/arm64/kernel/signal32.c
arch/arm64/kernel/signal32.c
+0
-45
未找到文件。
arch/arm64/Kconfig
浏览文件 @
51682036
...
@@ -210,6 +210,7 @@ config COMPAT
...
@@ -210,6 +210,7 @@ config COMPAT
select COMPAT_BINFMT_ELF
select COMPAT_BINFMT_ELF
select HAVE_UID16
select HAVE_UID16
select OLD_SIGSUSPEND3
select OLD_SIGSUSPEND3
select COMPAT_OLD_SIGACTION
help
help
This option enables support for a 32-bit EL0 running under a 64-bit
This option enables support for a 32-bit EL0 running under a 64-bit
kernel at EL1. AArch32-specific components such as system calls,
kernel at EL1. AArch32-specific components such as system calls,
...
...
arch/arm64/kernel/signal32.c
浏览文件 @
51682036
...
@@ -28,13 +28,6 @@
...
@@ -28,13 +28,6 @@
#include <asm/uaccess.h>
#include <asm/uaccess.h>
#include <asm/unistd32.h>
#include <asm/unistd32.h>
struct
compat_old_sigaction
{
compat_uptr_t
sa_handler
;
compat_old_sigset_t
sa_mask
;
compat_ulong_t
sa_flags
;
compat_uptr_t
sa_restorer
;
};
struct
compat_sigcontext
{
struct
compat_sigcontext
{
/* We always set these two fields to 0 */
/* We always set these two fields to 0 */
compat_ulong_t
trap_no
;
compat_ulong_t
trap_no
;
...
@@ -326,44 +319,6 @@ static int compat_restore_vfp_context(struct compat_vfp_sigframe __user *frame)
...
@@ -326,44 +319,6 @@ static int compat_restore_vfp_context(struct compat_vfp_sigframe __user *frame)
return
err
?
-
EFAULT
:
0
;
return
err
?
-
EFAULT
:
0
;
}
}
asmlinkage
int
compat_sys_sigaction
(
int
sig
,
const
struct
compat_old_sigaction
__user
*
act
,
struct
compat_old_sigaction
__user
*
oact
)
{
struct
k_sigaction
new_ka
,
old_ka
;
int
ret
;
compat_old_sigset_t
mask
;
compat_uptr_t
handler
,
restorer
;
if
(
act
)
{
if
(
!
access_ok
(
VERIFY_READ
,
act
,
sizeof
(
*
act
))
||
__get_user
(
handler
,
&
act
->
sa_handler
)
||
__get_user
(
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
=
compat_ptr
(
handler
);
new_ka
.
sa
.
sa_restorer
=
compat_ptr
(
restorer
);
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
(
ptr_to_compat
(
old_ka
.
sa
.
sa_handler
),
&
oact
->
sa_handler
)
||
__put_user
(
ptr_to_compat
(
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
;
}
static
int
compat_restore_sigframe
(
struct
pt_regs
*
regs
,
static
int
compat_restore_sigframe
(
struct
pt_regs
*
regs
,
struct
compat_sigframe
__user
*
sf
)
struct
compat_sigframe
__user
*
sf
)
{
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录