Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
74008b36
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
74008b36
编写于
2月 23, 2015
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
whack-a-mole: there's no point doing set_fs(USER_DS) in sigframe setup
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
a555ad45
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
0 addition
and
21 deletion
+0
-21
arch/frv/kernel/signal.c
arch/frv/kernel/signal.c
+0
-4
arch/m32r/kernel/signal.c
arch/m32r/kernel/signal.c
+0
-2
arch/microblaze/kernel/signal.c
arch/microblaze/kernel/signal.c
+0
-2
arch/sh/kernel/signal_32.c
arch/sh/kernel/signal_32.c
+0
-4
arch/sh/kernel/signal_64.c
arch/sh/kernel/signal_64.c
+0
-4
arch/xtensa/kernel/signal.c
arch/xtensa/kernel/signal.c
+0
-5
未找到文件。
arch/frv/kernel/signal.c
浏览文件 @
74008b36
...
...
@@ -176,8 +176,6 @@ static int setup_frame(struct ksignal *ksig, sigset_t *set)
struct
sigframe
__user
*
frame
;
int
rsig
,
sig
=
ksig
->
sig
;
set_fs
(
USER_DS
);
frame
=
get_sigframe
(
ksig
,
sizeof
(
*
frame
));
if
(
!
access_ok
(
VERIFY_WRITE
,
frame
,
sizeof
(
*
frame
)))
...
...
@@ -257,8 +255,6 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set)
struct
rt_sigframe
__user
*
frame
;
int
rsig
,
sig
=
ksig
->
sig
;
set_fs
(
USER_DS
);
frame
=
get_sigframe
(
ksig
,
sizeof
(
*
frame
));
if
(
!
access_ok
(
VERIFY_WRITE
,
frame
,
sizeof
(
*
frame
)))
...
...
arch/m32r/kernel/signal.c
浏览文件 @
74008b36
...
...
@@ -214,8 +214,6 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set,
regs
->
r2
=
(
unsigned
long
)
&
frame
->
uc
;
regs
->
bpc
=
(
unsigned
long
)
ksig
->
ka
.
sa
.
sa_handler
;
set_fs
(
USER_DS
);
#if DEBUG_SIG
printk
(
"SIG deliver (%s:%d): sp=%p pc=%p
\n
"
,
current
->
comm
,
current
->
pid
,
frame
,
regs
->
pc
);
...
...
arch/microblaze/kernel/signal.c
浏览文件 @
74008b36
...
...
@@ -236,8 +236,6 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set,
/* Offset to handle microblaze rtid r14, 0 */
regs
->
pc
=
(
unsigned
long
)
ksig
->
ka
.
sa
.
sa_handler
;
set_fs
(
USER_DS
);
#ifdef DEBUG_SIG
pr_info
(
"SIG deliver (%s:%d): sp=%p pc=%08lx
\n
"
,
current
->
comm
,
current
->
pid
,
frame
,
regs
->
pc
);
...
...
arch/sh/kernel/signal_32.c
浏览文件 @
74008b36
...
...
@@ -329,8 +329,6 @@ static int setup_frame(struct ksignal *ksig, sigset_t *set,
if
(
err
)
return
-
EFAULT
;
set_fs
(
USER_DS
);
pr_debug
(
"SIG deliver (%s:%d): sp=%p pc=%08lx pr=%08lx
\n
"
,
current
->
comm
,
task_pid_nr
(
current
),
frame
,
regs
->
pc
,
regs
->
pr
);
...
...
@@ -408,8 +406,6 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set,
if
(
err
)
return
-
EFAULT
;
set_fs
(
USER_DS
);
pr_debug
(
"SIG deliver (%s:%d): sp=%p pc=%08lx pr=%08lx
\n
"
,
current
->
comm
,
task_pid_nr
(
current
),
frame
,
regs
->
pc
,
regs
->
pr
);
...
...
arch/sh/kernel/signal_64.c
浏览文件 @
74008b36
...
...
@@ -457,8 +457,6 @@ static int setup_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs
regs
->
pc
=
neff_sign_extend
((
unsigned
long
)
ksig
->
ka
.
sa
.
sa_handler
);
set_fs
(
USER_DS
);
/* Broken %016Lx */
pr_debug
(
"SIG deliver (#%d,%s:%d): sp=%p pc=%08Lx%08Lx link=%08Lx%08Lx
\n
"
,
signal
,
current
->
comm
,
current
->
pid
,
frame
,
...
...
@@ -547,8 +545,6 @@ static int setup_rt_frame(struct ksignal *kig, sigset_t *set,
regs
->
regs
[
REG_ARG3
]
=
(
unsigned
long
long
)(
unsigned
long
)(
signed
long
)
&
frame
->
uc
.
uc_mcontext
;
regs
->
pc
=
neff_sign_extend
((
unsigned
long
)
ksig
->
ka
.
sa
.
sa_handler
);
set_fs
(
USER_DS
);
pr_debug
(
"SIG deliver (#%d,%s:%d): sp=%p pc=%08Lx%08Lx link=%08Lx%08Lx
\n
"
,
signal
,
current
->
comm
,
current
->
pid
,
frame
,
regs
->
pc
>>
32
,
regs
->
pc
&
0xffffffff
,
...
...
arch/xtensa/kernel/signal.c
浏览文件 @
74008b36
...
...
@@ -405,11 +405,6 @@ static int setup_frame(struct ksignal *ksig, sigset_t *set,
regs
->
areg
[
8
]
=
(
unsigned
long
)
&
frame
->
uc
;
regs
->
threadptr
=
tp
;
/* Set access mode to USER_DS. Nomenclature is outdated, but
* functionality is used in uaccess.h
*/
set_fs
(
USER_DS
);
#if DEBUG_SIG
printk
(
"SIG rt deliver (%s:%d): signal=%d sp=%p pc=%08x
\n
"
,
current
->
comm
,
current
->
pid
,
signal
,
frame
,
regs
->
pc
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录