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
nexedi
linux
Commits
72667028
Commit
72667028
authored
Jul 15, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
signal: make sure we don't get stopped with pending task_work
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
1e0ea001
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
kernel/signal.c
kernel/signal.c
+15
-0
No files found.
kernel/signal.c
View file @
72667028
...
...
@@ -1971,6 +1971,13 @@ static void ptrace_do_notify(int signr, int exit_code, int why)
void
ptrace_notify
(
int
exit_code
)
{
BUG_ON
((
exit_code
&
(
0x7f
|
~
0xffff
))
!=
SIGTRAP
);
if
(
unlikely
(
current
->
task_works
))
{
if
(
test_and_clear_ti_thread_flag
(
current_thread_info
(),
TIF_NOTIFY_RESUME
))
{
smp_mb__after_clear_bit
();
task_work_run
();
}
}
spin_lock_irq
(
&
current
->
sighand
->
siglock
);
ptrace_do_notify
(
SIGTRAP
,
exit_code
,
CLD_TRAPPED
);
...
...
@@ -2191,6 +2198,14 @@ int get_signal_to_deliver(siginfo_t *info, struct k_sigaction *return_ka,
struct
signal_struct
*
signal
=
current
->
signal
;
int
signr
;
if
(
unlikely
(
current
->
task_works
))
{
if
(
test_and_clear_ti_thread_flag
(
current_thread_info
(),
TIF_NOTIFY_RESUME
))
{
smp_mb__after_clear_bit
();
task_work_run
();
}
}
if
(
unlikely
(
uprobe_deny_signal
()))
return
0
;
...
...
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