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
Kirill Smelkov
linux
Commits
a42c6ded
Commit
a42c6ded
authored
May 23, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move key_repace_session_keyring() into tracehook_notify_resume()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
1227dd77
Changes
30
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
6 additions
and
66 deletions
+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
No files found.
arch/alpha/kernel/signal.c
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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> */
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