[Devel] [PATCH] kernel: check the JOBCTL_TRAPPING_BIT bit correctly

Andrew Vagin avagin at openvz.org
Thu Dec 10 08:06:31 PST 2015


 #define JOBCTL_TRAPPING_BIT     21      /* switching to TRACED */
 #define JOBCTL_TRAPPING         (1 << JOBCTL_TRAPPING_BIT)

https://jira.sw.ru/browse/PSBM-42052

Cc: Andrey Ryabinin <aryabinin at virtuozzo.com>
Signed-off-by: Andrew Vagin <avagin at openvz.org>
---
 kernel/freezer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/freezer.c b/kernel/freezer.c
index 3445d5d..fbd855b 100644
--- a/kernel/freezer.c
+++ b/kernel/freezer.c
@@ -39,7 +39,7 @@ bool freezing_slow_path(struct task_struct *p)
 	if (test_thread_flag(TIF_MEMDIE))
 		return false;
 
-	if (p->jobctl & JOBCTL_TRAPPING_BIT)
+	if (p->jobctl & JOBCTL_TRAPPING)
 		return false;
 
 	if (pm_nosig_freezing || cgroup_freezing(p))
-- 
1.7.1



More information about the Devel mailing list