File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ static inline struct thread_info *current_thread_info(void)
107
107
#define TIF_NEED_RESCHED 3 /* rescheduling necessary */
108
108
/* restore singlestep on return to user mode */
109
109
#define TIF_SINGLESTEP 4
110
+ #define TIF_NOTIFY_SIGNAL 5 /* signal notifications exist */
110
111
#define TIF_MEMDIE 6 /* is terminating due to OOM killer */
111
112
#define TIF_SYSCALL_AUDIT 9 /* syscall auditing active */
112
113
#define TIF_SECCOMP 10 /* secure computing */
@@ -119,6 +120,7 @@ static inline struct thread_info *current_thread_info(void)
119
120
#define _TIF_SIGPENDING (1 << TIF_SIGPENDING)
120
121
#define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)
121
122
#define _TIF_SINGLESTEP (1 << TIF_SINGLESTEP)
123
+ #define _TIF_NOTIFY_SIGNAL (1 << TIF_NOTIFY_SIGNAL)
122
124
#define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG)
123
125
#define _TIF_SYSCALL_AUDIT (1 << TIF_SYSCALL_AUDIT)
124
126
#define _TIF_SECCOMP (1 << TIF_SECCOMP)
Original file line number Diff line number Diff line change @@ -313,7 +313,8 @@ static void do_signal(struct pt_regs *regs, int in_syscall)
313
313
314
314
asmlinkage void do_notify_resume (struct pt_regs * regs , int in_syscall )
315
315
{
316
- if (test_thread_flag (TIF_SIGPENDING ))
316
+ if (test_thread_flag (TIF_SIGPENDING ) ||
317
+ test_thread_flag (TIF_NOTIFY_SIGNAL ))
317
318
do_signal (regs , in_syscall );
318
319
319
320
if (test_thread_flag (TIF_NOTIFY_RESUME ))
You can’t perform that action at this time.
0 commit comments