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
edd63a27
Commit
edd63a27
authored
Apr 27, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set_restore_sigmask() is never called without SIGPENDING (and never should be)
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
6fd84c08
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
8 deletions
+9
-8
arch/ia64/include/asm/thread_info.h
arch/ia64/include/asm/thread_info.h
+1
-1
arch/microblaze/include/asm/thread_info.h
arch/microblaze/include/asm/thread_info.h
+1
-1
arch/powerpc/include/asm/thread_info.h
arch/powerpc/include/asm/thread_info.h
+1
-1
arch/sh/include/asm/thread_info.h
arch/sh/include/asm/thread_info.h
+1
-1
arch/sparc/include/asm/thread_info_64.h
arch/sparc/include/asm/thread_info_64.h
+1
-1
arch/tile/include/asm/thread_info.h
arch/tile/include/asm/thread_info.h
+1
-1
arch/x86/include/asm/thread_info.h
arch/x86/include/asm/thread_info.h
+1
-1
include/linux/thread_info.h
include/linux/thread_info.h
+2
-1
No files found.
arch/ia64/include/asm/thread_info.h
View file @
edd63a27
...
...
@@ -141,7 +141,7 @@ static inline void set_restore_sigmask(void)
{
struct
thread_info
*
ti
=
current_thread_info
();
ti
->
status
|=
TS_RESTORE_SIGMASK
;
set_bit
(
TIF_SIGPENDING
,
&
ti
->
flags
);
WARN_ON
(
!
test_bit
(
TIF_SIGPENDING
,
&
ti
->
flags
)
);
}
static
inline
void
clear_restore_sigmask
(
void
)
{
...
...
arch/microblaze/include/asm/thread_info.h
View file @
edd63a27
...
...
@@ -166,7 +166,7 @@ static inline void set_restore_sigmask(void)
{
struct
thread_info
*
ti
=
current_thread_info
();
ti
->
status
|=
TS_RESTORE_SIGMASK
;
set_bit
(
TIF_SIGPENDING
,
(
unsigned
long
*
)
&
ti
->
flags
);
WARN_ON
(
!
test_bit
(
TIF_SIGPENDING
,
(
unsigned
long
*
)
&
ti
->
flags
)
);
}
static
inline
void
clear_restore_sigmask
(
void
)
{
...
...
arch/powerpc/include/asm/thread_info.h
View file @
edd63a27
...
...
@@ -140,7 +140,7 @@ static inline void set_restore_sigmask(void)
{
struct
thread_info
*
ti
=
current_thread_info
();
ti
->
local_flags
|=
_TLF_RESTORE_SIGMASK
;
set_bit
(
TIF_SIGPENDING
,
&
ti
->
flags
);
WARN_ON
(
!
test_bit
(
TIF_SIGPENDING
,
&
ti
->
flags
)
);
}
static
inline
void
clear_restore_sigmask
(
void
)
{
...
...
arch/sh/include/asm/thread_info.h
View file @
edd63a27
...
...
@@ -169,7 +169,7 @@ static inline void set_restore_sigmask(void)
{
struct
thread_info
*
ti
=
current_thread_info
();
ti
->
status
|=
TS_RESTORE_SIGMASK
;
set_bit
(
TIF_SIGPENDING
,
(
unsigned
long
*
)
&
ti
->
flags
);
WARN_ON
(
!
test_bit
(
TIF_SIGPENDING
,
(
unsigned
long
*
)
&
ti
->
flags
)
);
}
#define TI_FLAG_FAULT_CODE_SHIFT 24
...
...
arch/sparc/include/asm/thread_info_64.h
View file @
edd63a27
...
...
@@ -238,7 +238,7 @@ static inline void set_restore_sigmask(void)
{
struct
thread_info
*
ti
=
current_thread_info
();
ti
->
status
|=
TS_RESTORE_SIGMASK
;
set_bit
(
TIF_SIGPENDING
,
&
ti
->
flags
);
WARN_ON
(
!
test_bit
(
TIF_SIGPENDING
,
&
ti
->
flags
)
);
}
static
inline
void
clear_restore_sigmask
(
void
)
{
...
...
arch/tile/include/asm/thread_info.h
View file @
edd63a27
...
...
@@ -166,7 +166,7 @@ static inline void set_restore_sigmask(void)
{
struct
thread_info
*
ti
=
current_thread_info
();
ti
->
status
|=
TS_RESTORE_SIGMASK
;
set_bit
(
TIF_SIGPENDING
,
&
ti
->
flags
);
WARN_ON
(
!
test_bit
(
TIF_SIGPENDING
,
&
ti
->
flags
)
);
}
static
inline
void
clear_restore_sigmask
(
void
)
{
...
...
arch/x86/include/asm/thread_info.h
View file @
edd63a27
...
...
@@ -248,7 +248,7 @@ static inline void set_restore_sigmask(void)
{
struct
thread_info
*
ti
=
current_thread_info
();
ti
->
status
|=
TS_RESTORE_SIGMASK
;
set_bit
(
TIF_SIGPENDING
,
(
unsigned
long
*
)
&
ti
->
flags
);
WARN_ON
(
!
test_bit
(
TIF_SIGPENDING
,
(
unsigned
long
*
)
&
ti
->
flags
)
);
}
static
inline
void
clear_restore_sigmask
(
void
)
{
...
...
include/linux/thread_info.h
View file @
edd63a27
...
...
@@ -8,6 +8,7 @@
#define _LINUX_THREAD_INFO_H
#include <linux/types.h>
#include <linux/bug.h>
struct
timespec
;
struct
compat_timespec
;
...
...
@@ -125,7 +126,7 @@ static inline int test_ti_thread_flag(struct thread_info *ti, int flag)
static
inline
void
set_restore_sigmask
(
void
)
{
set_thread_flag
(
TIF_RESTORE_SIGMASK
);
set_thread_flag
(
TIF_SIGPENDING
);
WARN_ON
(
!
test_thread_flag
(
TIF_SIGPENDING
)
);
}
static
inline
void
clear_restore_sigmask
(
void
)
{
...
...
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