From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: [RFC][PATCH -mm 3/7] Freezer: Prevent new tasks from inheriting TIF_FREEZE set Date: Thu, 12 Jul 2007 00:12:03 +0200 Message-ID: <200707120012.04747.rjw@sisk.pl> References: <200707120006.50095.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <200707120006.50095.rjw@sisk.pl> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: pm list Cc: Matthew Garrett , Oleg Nesterov , Pavel Machek , Miklos Szeredi List-Id: linux-pm@vger.kernel.org From: Rafael J. Wysocki Tasks should go to the refrigerator only if explicitly requested to do th= at by the freezer and not as a result of inheriting the TIF_FREEZE flag set fro= m the parent. =A0Make it happen. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek --- kernel/fork.c | 1 + 1 file changed, 1 insertion(+) Index: linux-2.6.22-rc6-mm1/kernel/fork.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- linux-2.6.22-rc6-mm1.orig/kernel/fork.c 2007-07-11 20:48:04.000000000= +0200 +++ linux-2.6.22-rc6-mm1/kernel/fork.c 2007-07-11 20:50:42.000000000 +020= 0 @@ -932,6 +932,7 @@ static inline void copy_flags(unsigned l if (!(clone_flags & CLONE_PTRACE)) p->ptrace =3D 0; p->flags =3D new_flags; + clear_freeze_flag(p); } =20 asmlinkage long sys_set_tid_address(int __user *tidptr)