Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
a42c6ded
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看板
提交
a42c6ded
编写于
5月 23, 2012
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move key_repace_session_keyring() into tracehook_notify_resume()
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
1227dd77
变更
30
隐藏空白更改
内联
并排
Showing
30 changed file
with
6 addition
and
66 deletion
+6
-66
arch/alpha/kernel/signal.c
arch/alpha/kernel/signal.c
+0
-2
arch/arm/kernel/signal.c
arch/arm/kernel/signal.c
+0
-2
arch/avr32/kernel/signal.c
arch/avr32/kernel/signal.c
+0
-2
arch/blackfin/kernel/signal.c
arch/blackfin/kernel/signal.c
+0
-2
arch/c6x/kernel/signal.c
arch/c6x/kernel/signal.c
+0
-2
arch/cris/kernel/ptrace.c
arch/cris/kernel/ptrace.c
+0
-2
arch/frv/kernel/signal.c
arch/frv/kernel/signal.c
+0
-2
arch/h8300/kernel/signal.c
arch/h8300/kernel/signal.c
+0
-2
arch/hexagon/kernel/signal.c
arch/hexagon/kernel/signal.c
+0
-2
arch/ia64/kernel/process.c
arch/ia64/kernel/process.c
+0
-2
arch/m32r/kernel/signal.c
arch/m32r/kernel/signal.c
+0
-2
arch/m68k/kernel/signal.c
arch/m68k/kernel/signal.c
+1
-4
arch/microblaze/kernel/signal.c
arch/microblaze/kernel/signal.c
+1
-4
arch/mips/kernel/signal.c
arch/mips/kernel/signal.c
+0
-2
arch/mn10300/kernel/signal.c
arch/mn10300/kernel/signal.c
+0
-2
arch/openrisc/kernel/signal.c
arch/openrisc/kernel/signal.c
+0
-2
arch/parisc/kernel/signal.c
arch/parisc/kernel/signal.c
+0
-2
arch/powerpc/kernel/signal.c
arch/powerpc/kernel/signal.c
+0
-2
arch/s390/kernel/signal.c
arch/s390/kernel/signal.c
+0
-2
arch/score/kernel/signal.c
arch/score/kernel/signal.c
+0
-2
arch/sh/kernel/signal_32.c
arch/sh/kernel/signal_32.c
+0
-2
arch/sh/kernel/signal_64.c
arch/sh/kernel/signal_64.c
+0
-2
arch/sparc/kernel/signal_32.c
arch/sparc/kernel/signal_32.c
+0
-2
arch/sparc/kernel/signal_64.c
arch/sparc/kernel/signal_64.c
+0
-2
arch/tile/kernel/process.c
arch/tile/kernel/process.c
+0
-2
arch/um/kernel/process.c
arch/um/kernel/process.c
+1
-4
arch/unicore32/kernel/signal.c
arch/unicore32/kernel/signal.c
+0
-2
arch/x86/kernel/signal.c
arch/x86/kernel/signal.c
+0
-2
arch/xtensa/kernel/signal.c
arch/xtensa/kernel/signal.c
+1
-4
include/linux/tracehook.h
include/linux/tracehook.h
+2
-0
未找到文件。
arch/alpha/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -590,7 +590,5 @@ do_notify_resume(struct pt_regs *regs, struct switch_stack *sw,
if
(
thread_info_flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
arch/arm/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -728,7 +728,5 @@ do_notify_resume(struct pt_regs *regs, unsigned int thread_flags, int syscall)
if
(
thread_flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
arch/avr32/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -321,7 +321,5 @@ asmlinkage void do_notify_resume(struct pt_regs *regs, struct thread_info *ti)
if
(
ti
->
flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
arch/blackfin/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -336,8 +336,6 @@ asmlinkage void do_notify_resume(struct pt_regs *regs)
if
(
test_thread_flag
(
TIF_NOTIFY_RESUME
))
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
arch/c6x/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -364,7 +364,5 @@ asmlinkage void do_notify_resume(struct pt_regs *regs, u32 thread_info_flags,
if
(
thread_info_flags
&
(
1
<<
TIF_NOTIFY_RESUME
))
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
arch/cris/kernel/ptrace.c
浏览文件 @
a42c6ded
...
...
@@ -40,7 +40,5 @@ void do_notify_resume(int canrestart, struct pt_regs *regs,
if
(
thread_info_flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
arch/frv/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -562,8 +562,6 @@ asmlinkage void do_notify_resume(__u32 thread_info_flags)
if
(
thread_info_flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
__frame
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
/* end do_notify_resume() */
arch/h8300/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -513,7 +513,5 @@ asmlinkage void do_notify_resume(struct pt_regs *regs, u32 thread_info_flags)
if
(
thread_info_flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
arch/hexagon/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -273,8 +273,6 @@ void do_notify_resume(struct pt_regs *regs, unsigned long thread_info_flags)
if
(
thread_info_flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
...
...
arch/ia64/kernel/process.c
浏览文件 @
a42c6ded
...
...
@@ -199,8 +199,6 @@ do_notify_resume_user(sigset_t *unused, struct sigscratch *scr, long in_syscall)
if
(
test_thread_flag
(
TIF_NOTIFY_RESUME
))
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
&
scr
->
pt
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
/* copy user rbs to kernel rbs */
...
...
arch/m32r/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -383,8 +383,6 @@ void do_notify_resume(struct pt_regs *regs, __u32 thread_info_flags)
if
(
thread_info_flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
clear_thread_flag
(
TIF_IRET
);
...
...
arch/m68k/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -1193,9 +1193,6 @@ void do_notify_resume(struct pt_regs *regs)
if
(
test_thread_flag
(
TIF_SIGPENDING
))
do_signal
(
regs
);
if
(
test_and_clear_thread_flag
(
TIF_NOTIFY_RESUME
))
{
if
(
test_and_clear_thread_flag
(
TIF_NOTIFY_RESUME
))
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
arch/microblaze/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -401,9 +401,6 @@ void do_notify_resume(struct pt_regs *regs, int in_syscall)
if
(
test_thread_flag
(
TIF_SIGPENDING
))
do_signal
(
regs
,
in_syscall
);
if
(
test_and_clear_thread_flag
(
TIF_NOTIFY_RESUME
))
{
if
(
test_and_clear_thread_flag
(
TIF_NOTIFY_RESUME
))
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
arch/mips/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -636,8 +636,6 @@ asmlinkage void do_notify_resume(struct pt_regs *regs, void *unused,
if
(
thread_info_flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
...
...
arch/mn10300/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -554,7 +554,5 @@ asmlinkage void do_notify_resume(struct pt_regs *regs, u32 thread_info_flags)
if
(
thread_info_flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
current_frame
());
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
arch/openrisc/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -376,7 +376,5 @@ asmlinkage void do_notify_resume(struct pt_regs *regs)
if
(
current_thread_info
()
->
flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
arch/parisc/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -638,7 +638,5 @@ void do_notify_resume(struct pt_regs *regs, long in_syscall)
if
(
test_thread_flag
(
TIF_NOTIFY_RESUME
))
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
arch/powerpc/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -193,8 +193,6 @@ void do_notify_resume(struct pt_regs *regs, unsigned long thread_info_flags)
if
(
thread_info_flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
...
...
arch/s390/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -494,6 +494,4 @@ void do_notify_resume(struct pt_regs *regs)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
arch/score/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -356,7 +356,5 @@ asmlinkage void do_notify_resume(struct pt_regs *regs, void *unused,
if
(
thread_info_flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
arch/sh/kernel/signal_32.c
浏览文件 @
a42c6ded
...
...
@@ -626,7 +626,5 @@ asmlinkage void do_notify_resume(struct pt_regs *regs, unsigned int save_r0,
if
(
thread_info_flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
arch/sh/kernel/signal_64.c
浏览文件 @
a42c6ded
...
...
@@ -685,7 +685,5 @@ asmlinkage void do_notify_resume(struct pt_regs *regs, unsigned long thread_info
if
(
thread_info_flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
arch/sparc/kernel/signal_32.c
浏览文件 @
a42c6ded
...
...
@@ -590,8 +590,6 @@ void do_notify_resume(struct pt_regs *regs, unsigned long orig_i0,
if
(
thread_info_flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
...
...
arch/sparc/kernel/signal_64.c
浏览文件 @
a42c6ded
...
...
@@ -607,8 +607,6 @@ void do_notify_resume(struct pt_regs *regs, unsigned long orig_i0, unsigned long
if
(
thread_info_flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
arch/tile/kernel/process.c
浏览文件 @
a42c6ded
...
...
@@ -569,8 +569,6 @@ int do_work_pending(struct pt_regs *regs, u32 thread_info_flags)
if
(
thread_info_flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
return
1
;
}
if
(
thread_info_flags
&
_TIF_SINGLESTEP
)
{
...
...
arch/um/kernel/process.c
浏览文件 @
a42c6ded
...
...
@@ -117,11 +117,8 @@ void interrupt_end(void)
schedule
();
if
(
test_thread_flag
(
TIF_SIGPENDING
))
do_signal
();
if
(
test_and_clear_thread_flag
(
TIF_NOTIFY_RESUME
))
{
if
(
test_and_clear_thread_flag
(
TIF_NOTIFY_RESUME
))
tracehook_notify_resume
(
&
current
->
thread
.
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
void
exit_thread
(
void
)
...
...
arch/unicore32/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -464,8 +464,6 @@ asmlinkage void do_notify_resume(struct pt_regs *regs,
if
(
thread_flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
...
...
arch/x86/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -821,8 +821,6 @@ do_notify_resume(struct pt_regs *regs, void *unused, __u32 thread_info_flags)
if
(
thread_info_flags
&
_TIF_NOTIFY_RESUME
)
{
clear_thread_flag
(
TIF_NOTIFY_RESUME
);
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
if
(
thread_info_flags
&
_TIF_USER_RETURN_NOTIFY
)
fire_user_return_notifiers
();
...
...
arch/xtensa/kernel/signal.c
浏览文件 @
a42c6ded
...
...
@@ -548,9 +548,6 @@ void do_notify_resume(struct pt_regs *regs)
if
(
test_thread_flag
(
TIF_SIGPENDING
))
do_signal
(
regs
);
if
(
test_and_clear_thread_flag
(
TIF_NOTIFY_RESUME
))
{
if
(
test_and_clear_thread_flag
(
TIF_NOTIFY_RESUME
))
tracehook_notify_resume
(
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
include/linux/tracehook.h
浏览文件 @
a42c6ded
...
...
@@ -183,6 +183,8 @@ static inline void set_notify_resume(struct task_struct *task)
*/
static
inline
void
tracehook_notify_resume
(
struct
pt_regs
*
regs
)
{
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
#endif
/* <linux/tracehook.h> */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录